struct

OpenAI::ChatTool

Inherits JSON::Serializable / Struct / Value / Object

Constructors

new(pull : JSON::PullParser)
Source
new(type : ToolType = ToolType::Function, function : ChatFunction | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
copy_with(type _type = @type, function _function = @function)
Source
function
type

Nested types