struct

Crig::PromptRequest(S, M)

Inherits Struct < Value < Object

Constructors

from_agent(agent : Crig::Agent(M), prompt : Crig::Completion::Message | String) : self
Source
new(agent : Crig::Agent(M), prompt : Crig::Completion::Message, runner : AgentRunner(M), memory : Crig::Memory::ConversationMemory | Nil = nil, conversation_id : String | Nil = nil)
Source

Instance methods

additional_params(params : JSON::Any) : self
Source
agent
Source
chat_history
Source
concurrency
Source
conversation(id : String) : self
Source
conversation_id
Source
extended_details
Source
max_tokens(max_tokens : Int) : self
Source
max_turns(depth : Int) : self
Source
max_turns
Source
memory
Source
preamble(preamble : String) : self
Source
prompt
Source
runner
Source
send
Source
send_async
Source
temperature(temperature : Float64) : self
Source
tool_choice(tool_choice : Completion::ToolChoice) : self
Source
tool_context(context : Tool::ToolContext) : self
Source
with_history(history : Array(Crig::Completion::Message)) : self
Source
with_hook(hook : AgentHook) : self
Source
with_tool_concurrency(concurrency : Int) : self
Source
without_additional_params
Source
without_max_tokens
Source
without_memory
Source
without_preamble
Source
without_temperature
Source
without_tool_choice
Source