class

OpenAI::RealtimeConversationItemFunctionCall

Inherits JSON::Serializable < Reference < Object

A function call item in a Realtime conversation.

Constructors

new(id : String | Nil = nil, object : RealtimeConversationItemFunctionCallObject | Nil = nil, type_value : RealtimeConversationItemFunctionCallType = RealtimeConversationItemFunctionCallType::FunctionCall, status : RealtimeConversationItemFunctionCallStatus | Nil = nil, call_id : String | Nil = nil, name : String = "", arguments : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

arguments

The arguments of the function call. This is a JSON-encoded string representing the arguments passed to the function, for example {"arg1": "value1", "arg2": 42}.

Source
arguments=(arguments : String)

The arguments of the function call. This is a JSON-encoded string representing the arguments passed to the function, for example {"arg1": "value1", "arg2": 42}.

Source
call_id

The ID of the function call.

Source
call_id=(call_id : String | Nil)

The ID of the function call.

Source
id

The unique ID of the item. This may be provided by the client or generated by the server.

Source
id=(id : String | Nil)

The unique ID of the item. This may be provided by the client or generated by the server.

Source
name

The name of the function being called.

Source
name=(name : String)

The name of the function being called.

Source
object

Identifier for the API object being returned - always realtime.item. Optional when creating a new item.

Source
object=(object : RealtimeConversationItemFunctionCallObject | Nil)

Identifier for the API object being returned - always realtime.item. Optional when creating a new item.

Source
status

The status of the item. Has no effect on the conversation.

Source
status=(status : RealtimeConversationItemFunctionCallStatus | Nil)

The status of the item. Has no effect on the conversation.

Source
type_value

The type of the item. Always function_call.

Source
type_value=(type_value : RealtimeConversationItemFunctionCallType)

The type of the item. Always function_call.

Source