struct

AI::Provider::LanguageModel::ToolResultOutput

Inherits JSON::Serializable < Struct < Value < Object

Tool result output.

Constructors

content(value : Array(JSON::Any), provider_options : Shared::ProviderOptions | Nil = nil) : ToolResultOutput
Source
error_json(value : JSON::Any, provider_options : Shared::ProviderOptions | Nil = nil) : ToolResultOutput
Source
error_text(value : String, provider_options : Shared::ProviderOptions | Nil = nil) : ToolResultOutput
Source
execution_denied(reason : String | Nil = nil, provider_options : Shared::ProviderOptions | Nil = nil) : ToolResultOutput
Source
json(value : JSON::Any, provider_options : Shared::ProviderOptions | Nil = nil) : ToolResultOutput
Source
new(type : ToolResultOutputType, text_value : String | Nil = nil, json_value : JSON::Any | Nil = nil, reason : String | Nil = nil, content_value : Array(JSON::Any) | Nil = nil, provider_options : Shared::ProviderOptions | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
text(value : String, provider_options : Shared::ProviderOptions | Nil = nil) : ToolResultOutput
Source

Instance methods

content_value
Source
json_value
Source
provider_options
Source
reason
Source
text_value
Source
type
Source