struct
AI::Provider::LanguageModel::ToolCall
- AI::Provider::LanguageModel::ToolCall
- Struct
- Value
- Object
Overview
Tool call generated by the model.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/language_model/types.crConstructors
- .new(tool_call_id : String, tool_name : String, input : String, provider_executed : 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 (defined at runtime).
-
#input : String
Stringified JSON arguments for the tool.
-
#provider_executed : Bool | Nil
Whether the tool will be executed by the provider.
-
#provider_metadata : Shared::ProviderMetadata | Nil
Provider-specific metadata.
-
#tool_call_id : String
Unique identifier for the tool call.
-
#tool_name : String
Name of the tool to call.
- #type : String