struct AI::Provider::LanguageModel::ToolApprovalResponsePart

Overview

Tool approval response content part.

Included Modules

Defined in:

ai/provider/language_model/prompt.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def approved? : Bool #

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

[View source]
def reason : String | Nil #

[View source]
def type : String #

[View source]