struct
AI::Provider::LanguageModel::ProviderTool
- AI::Provider::LanguageModel::ProviderTool
- Struct
- Value
- Object
Overview
A provider-specific tool definition.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/language_model/types.crConstructors
- .new(id : String, name : String, args : Hash(String, JSON::Any) = {} of String => JSON::Any)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#args : Hash(String, JSON::Any)
Arguments for configuring the tool.
-
#id : String
The ID of the tool (format: provider.tool_name).
-
#name : String
The name of the tool.
-
#type : String
Always "provider" for provider tools.
Constructor Detail
def self.new(id : String, name : String, args : Hash(String, JSON::Any) = {} of String => JSON::Any)
#