class

Cri::Agent

Inherits Reference < Object

Constants

MAX_INPUT_BYTES = 256_i64 * 1024_i64
MAX_RESPONSE_BYTES = (4_i64 * 1024_i64) * 1024_i64
MAX_STEPS = 16
MAX_TOOL_ARGUMENT_BYTES = 256_i64 * 1024_i64
MAX_TOOL_CALLS_PER_STEP = 8
MAX_TOOL_RESULT_BYTES = (1_i64 * 1024_i64) * 1024_i64

Constructors

new(provider : Provider, tools : ToolExecutor, events : EventBus = EventBus.new, session : Session = Session.new, max_steps : Int32 = MAX_STEPS, max_input_bytes : Int64 = MAX_INPUT_BYTES, max_tool_calls_per_step : Int32 = MAX_TOOL_CALLS_PER_STEP, max_tool_argument_bytes : Int64 = MAX_TOOL_ARGUMENT_BYTES, max_tool_result_bytes : Int64 = MAX_TOOL_RESULT_BYTES, max_response_bytes : Int64 = MAX_RESPONSE_BYTES)
Source

Instance methods

events
Source
max_input_bytes
Source
max_response_bytes
Source
max_steps
Source
max_tool_argument_bytes
Source
max_tool_calls_per_step
Source
max_tool_result_bytes
Source
provider
Source
run_turn(input : String) : String
Source
run_turn(input : String, &on_text : String -> Nil) : String
Source
session
Source
tools
Source

Nested types