struct AI::Provider::LanguageModel::ToolApprovalRequest

Overview

Tool approval request for provider-executed tools.

Included Modules

Defined in:

ai/provider/language_model/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(approval_id : String, tool_call_id : String, 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 approval_id : String #

ID of the approval request.


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

Provider-specific metadata.


[View source]
def tool_call_id : String #

The tool call ID this approval is for.


[View source]
def type : String #

[View source]