OpenAI::RunToolCallObject
Inherits JSON::Serializable < Reference < Object
Tool call objects
Constructors
new(pull : JSON::PullParser)
Sourcenew(id : String = "", type_value : RunToolCallObjectType = RunToolCallObjectType::Function, function : RunToolCallObjectFunction = RunToolCallObjectFunction.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
id
The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the Submit tool outputs to run endpoint.
id=(id : String)
The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the Submit tool outputs to run endpoint.
type_value
The type of tool call the output is required for. For now, this is always function.
type_value=(type_value : RunToolCallObjectType)
The type of tool call the output is required for. For now, this is always function.