struct
AI::Provider::LanguageModel::ToolResult
- AI::Provider::LanguageModel::ToolResult
- Struct
- Value
- Object
Overview
Result of a tool call.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/language_model/types.crConstructors
- .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)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#dynamic : Bool | Nil
Whether the tool is dynamic.
-
#is_error : Bool | Nil
Whether the result is an error.
-
#preliminary : Bool | Nil
Whether the result is preliminary.
-
#provider_metadata : Shared::ProviderMetadata | Nil
Provider-specific metadata.
-
#result : JSON::Any
Result of the tool call (JSON-serializable).
-
#tool_call_id : String
ID of the tool call this result is associated with.
-
#tool_name : String
Name of the tool that generated this result.
- #type : String