struct AI::Provider::LanguageModel::ToolCallPart

Overview

Tool call content part (for prompts).

Included Modules

Defined in:

ai/provider/language_model/prompt.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(tool_call_id : String, tool_name : String, input : String | JSON::Any, provider_executed : Bool | Nil = nil, provider_options : Shared::ProviderOptions | 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 input : String | JSON::Any #

[View source]
def provider_executed : Bool | Nil #

[View source]
def provider_options : Shared::ProviderOptions | Nil #

[View source]
def tool_call_id : String #

[View source]
def tool_name : String #

[View source]
def type : String #

[View source]