class

Crig::Completion::PromptError

Inherits Exception < Reference < Object

Constructors

completion_error(error : CompletionError) : self
Source
max_turns_exceeded(max_turns : Int32, chat_history : Array(Message), prompt : Message) : self
Source
memory_error(error : Crig::Memory::MemoryError) : self
Source
new(message : String, kind : Kind = Kind::Other, chat_history : Array(Message) | Nil = nil, prompt : Message | Nil = nil, max_turns : Int32 | Nil = nil, reason : String | Nil = nil, completion_error : CompletionError | Nil = nil, memory_error : Crig::Memory::MemoryError | Nil = nil, tool_error : Crig::ToolSetError | Nil = nil, tool_server_error : Crig::ToolServerError | Nil = nil, tool_name : String | Nil = nil, available_tools : Array(String) | Nil = nil, allowed_tools : Array(String) | Nil = nil)
Source
prompt_cancelled(chat_history : Array(Message), reason : String) : self
Source
tool_error(error : Crig::ToolSetError) : self
Source
tool_server_error(error : Crig::ToolServerError) : self
Source
unknown_tool_call(tool_name : String, available_tools : Array(String), allowed_tools : Array(String), chat_history : Array(Message)) : self
Source

Instance methods

allowed_tools
Source
available_tools
Source
chat_history
Source
completion_error
Source
kind
Source
max_turns
Source
memory_error
Source
prompt
Source
reason
Source
tool_error
Source
tool_name
Source
tool_server_error
Source

Nested types