struct AI::Provider::LanguageModel::ProviderTool

Overview

A provider-specific tool definition.

Included Modules

Defined in:

ai/provider/language_model/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String, name : String, args : Hash(String, JSON::Any) = {} of String => JSON::Any) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def args : Hash(String, JSON::Any) #

Arguments for configuring the tool.


[View source]
def id : String #

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


[View source]
def name : String #

The name of the tool.


[View source]
def type : String #

Always "provider" for provider tools.


[View source]