class

OpenAI::RunToolCallObject

Inherits JSON::Serializable < Reference < Object

Tool call objects

Constructors

new(id : String = "", type_value : RunToolCallObjectType = RunToolCallObjectType::Function, function : RunToolCallObjectFunction = RunToolCallObjectFunction.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

function

The function definition.

Source
function=(function : RunToolCallObjectFunction)

The function definition.

Source
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.

Source
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.

Source
type_value

The type of tool call the output is required for. For now, this is always function.

Source
type_value=(type_value : RunToolCallObjectType)

The type of tool call the output is required for. For now, this is always function.

Source