struct OpenAI::ChatTool

Included Modules

Extended Modules

Defined in:

openai/api/chat.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(type : ToolType = ToolType::Function, function : ChatFunction | Nil = nil) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(type _type = @type, function _function = @function) #

[View source]
def function : ChatFunction | Nil #

def type : ToolType #