Crig::StreamingPromptRequest(M)
Deprecated: use agent.runner(prompt).stream() instead.
Constructors
new(agent : Crig::Agent(M), prompt : Crig::Completion::Message, chat_history : Array(Crig::Completion::Message) | Nil = nil, max_turns : Int32 = 1, memory : Crig::Memory::ConversationMemory | Nil = nil, conversation_id : String | Nil = nil)
SourceInstance methods
agent
Sourcechat_history
Sourceconversation(id : String) : self
Set the conversation id used to load and persist memory for this request.
conversation_id
Sourcemax_turns
Sourcememory
Sourceprompt
Sourcesend
Sourcesend_async
Sourcesend_items
Sourcewith_hook(hook : AgentHook) : self
Source