struct

Arcana::AI::Chat::ToolCall

Inherits JSON::Serializable < Struct < Value < Object

A tool call returned by the model in an assistant message.

Constructors

new(id : String, type : String, function : FunctionCall)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

function
Source
function=(function : FunctionCall)
Source
id=(id : String)
Source
parsed_arguments

Parse the arguments JSON into a Hash.

Source
type
Source
type=(type : String)
Source

Nested types