struct

AI::Provider::LanguageModel::ProviderTool

Inherits JSON::Serializable < Struct < Value < Object

A provider-specific tool definition.

Constructors

new(id : String, name : String, args : Hash(String, JSON::Any) = {} of String => JSON::Any)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

args

Arguments for configuring the tool.

Source
id

The ID of the tool (format: provider.tool_name).

Source
name

The name of the tool.

Source
type

Always "provider" for provider tools.

Source