struct

AI::OpenAI::OpenAIChatFunctionTool

Inherits JSON::Serializable < Struct < Value < Object

Function tool definition for API request.

Constructors

new(name : String, description : String | Nil, parameters : JSON::Any, strict : Bool | Nil = nil)
Source
new(function : OpenAIChatFunctionDefinition)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

function
Source
type
Source