struct

AI::Provider::LanguageModel::ToolResult

Inherits JSON::Serializable < Struct < Value < Object

Result of a tool call.

Constructors

new(tool_call_id : String, tool_name : String, result : JSON::Any, is_error : Bool | Nil = nil, preliminary : Bool | Nil = nil, dynamic : Bool | Nil = nil, provider_metadata : Shared::ProviderMetadata | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

dynamic

Whether the tool is dynamic.

Source
is_error

Whether the result is an error.

Source
preliminary

Whether the result is preliminary.

Source
provider_metadata

Provider-specific metadata.

Source
result

Result of the tool call (JSON-serializable).

Source
tool_call_id

ID of the tool call this result is associated with.

Source
tool_name

Name of the tool that generated this result.

Source
type
Source