class

Crig::AgentRunner(M)

Inherits Reference < Object

Constructors

new(model : M)
Source

Instance methods

add_hook(h : AgentHook) : self
Source
additional_params(v : JSON::Any) : self
Source
chat_history(v : Array(Completion::Message) | Nil) : self
Source
chat_history
Source
concurrency
Source
ignore_unhandled_invalid_tool_calls
Source
max_invalid_tool_call_retries(v : Int32) : self
Source
max_tokens(v : UInt64) : self
Source
max_turns(v : Int32) : self
Source
max_turns
Source
output_mode(v : OutputMode) : self
Source
output_schema(v : JSON::Any | Nil) : self
Source
output_tool(name : String, description : String = "Structured output") : self
Source
preamble(v : String) : self
Source
run(prompt : Completion::Message) : PromptResponse
Source
static_context(v : Array(Completion::Request::Document)) : self
Source
static_tools(v : Array(Completion::ToolDefinition)) : self
Source
stream(prompt : Completion::Message) : Channel(StreamItem)
Source
temperature(v : Float64) : self
Source
tool_choice(v : Completion::ToolChoice) : self
Source
tool_concurrency(v : Int32) : self
Source
tool_context(v : Tool::ToolContext) : self
Source
tool_server_handle(h : ToolServerHandle) : self
Source
without_additional_params
Source
without_max_tokens
Source
without_preamble
Source
without_temperature
Source
without_tool_choice
Source