Arcana::AI::Chat::Request
Constructors
from_history(history : History, model : String = "gpt-4o-mini", temperature : Float64 = 0.7, max_tokens : Int32 = 150, tools : Array(Tool) | Nil = nil, tool_choice : String | Nil = nil, trace_tags : Hash(String, String) | Nil = nil) : self
Build from a History object.
new(messages : Array(Message), model : String = "gpt-4o-mini", temperature : Float64 = 0.7, max_tokens : Int32 = 150, tools : Array(Tool) | Nil = nil, server_tools : Array(ServerTool) | Nil = nil, tool_choice : String | Nil = nil, thinking : ThinkingConfig | Nil = nil, trace_tags : Hash(String, String) | Nil = nil)
SourceInstance methods
max_tokens
Sourcemessages
Sourcemodel
Sourceserver_tools
Sourcetemperature
Sourcethinking
Sourcethinking=(thinking : ThinkingConfig | Nil)
Sourcetool_choice
Sourcetools
Sourcetrace_tags
Source