struct AI::Provider::LanguageModel::ToolCall

Overview

Tool call generated by the model.

Included Modules

Defined in:

ai/provider/language_model/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def dynamic : Bool | Nil #

Whether the tool is dynamic (defined at runtime).


[View source]
def input : String #

Stringified JSON arguments for the tool.


[View source]
def provider_executed : Bool | Nil #

Whether the tool will be executed by the provider.


[View source]
def provider_metadata : Shared::ProviderMetadata | Nil #

Provider-specific metadata.


[View source]
def tool_call_id : String #

Unique identifier for the tool call.


[View source]
def tool_name : String #

Name of the tool to call.


[View source]
def type : String #

[View source]