struct

AI::Provider::LanguageModel::ToolCall

Inherits JSON::Serializable < Struct < Value < Object

Tool call generated by the model.

Constructors

new(tool_call_id : String, tool_name : String, input : String, provider_executed : Bool | Nil = nil, dynamic : Bool | Nil = nil, provider_metadata : Shared::ProviderMetadata | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

dynamic

Whether the tool is dynamic (defined at runtime).

Source
input

Stringified JSON arguments for the tool.

Source
provider_executed

Whether the tool will be executed by the provider.

Source
provider_metadata

Provider-specific metadata.

Source
tool_call_id

Unique identifier for the tool call.

Source
tool_name

Name of the tool to call.

Source
type
Source