class

OpenAI::CustomToolCall

Inherits JSON::Serializable < Reference < Object

A call to a custom tool created by the model.

Constructors

new(type_value : CustomToolCallType = CustomToolCallType::CustomToolCall, id : String | Nil = nil, call_id : String = "", name : String = "", input : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

call_id

An identifier used to map this custom tool call to a tool call output.

Source
call_id=(call_id : String)

An identifier used to map this custom tool call to a tool call output.

Source
id

The unique ID of the custom tool call in the OpenAI platform.

Source
id=(id : String | Nil)

The unique ID of the custom tool call in the OpenAI platform.

Source
input

The input for the custom tool call generated by the model.

Source
input=(input : String)

The input for the custom tool call generated by the model.

Source
name

The name of the custom tool being called.

Source
name=(name : String)

The name of the custom tool being called.

Source
type_value

The type of the custom tool call. Always custom_tool_call.

Source
type_value=(type_value : CustomToolCallType)

The type of the custom tool call. Always custom_tool_call.

Source