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 = "")
SourceInstance 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}.
Sourcearguments=(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}.
Sourcecall_id
The ID of the function call.
Sourcecall_id=(call_id :
String |
Nil)
The ID of the function call.
Sourceid
The unique ID of the item. This may be provided by the client or generated by the server.
SourceThe unique ID of the item. This may be provided by the client or generated by the server.
Sourcename
The name of the function being called.
SourceThe name of the function being called.
Sourceobject
Identifier for the API object being returned - always realtime.item. Optional when creating a new item.
Sourceobject=(object : RealtimeConversationItemFunctionCallObject | Nil)
Identifier for the API object being returned - always realtime.item. Optional when creating a new item.
Sourcestatus
The status of the item. Has no effect on the conversation.
Sourcestatus=(status : RealtimeConversationItemFunctionCallStatus | Nil)
The status of the item. Has no effect on the conversation.
Sourcetype_value
The type of the item. Always function_call.
Sourcetype_value=(type_value : RealtimeConversationItemFunctionCallType)
The type of the item. Always function_call.
Source