struct AI::OpenAI::OpenAIChatFunctionDefinition

Overview

Function definition in tool.

Included Modules

Defined in:

ai/openai/chat/openai_chat_api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, description : String | Nil, parameters : JSON::Any, strict : Bool | Nil = nil) #

[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 description : String | Nil #

[View source]
def name : String #

[View source]
def parameters : JSON::Any #

[View source]
def strict : Bool | Nil #

[View source]