Class RealtimeItem
A realtime Item is of three types: message, function_call, or function_call_output.
A message item can contain text or audio.
A function_call item indicates a model's desire to call a tool.
A function_call_output item indicates a function response.
The client may add and remove message and function_call_output Items using conversation.item.create and conversation.item.delete.
Inheritance
object
RealtimeItem
Assembly: .dll
Syntax
public class RealtimeItem
Properties
Arguments
The arguments of the function call (for "function_call" items).
Declaration
public string Arguments { get; set; }
Property Value
CallId
The ID of the function call (for "function_call" items).
Declaration
public string CallId { get; set; }
Property Value
Content
Declaration
public RealtimeItemContent[] Content { get; set; }
Property Value
Id
The unique ID of the item.
Declaration
public string Id { get; set; }
Property Value
Name
The name of the function being called (for "function_call" items).
Declaration
public string Name { get; set; }
Property Value
Object
Declaration
public string Object { get; set; }
Property Value
Output
The list of output items generated by the response.
Declaration
public RealtimeItem[] Output { get; set; }
Property Value
Role
The role associated with the item.
Declaration
public ChatRole? Role { get; set; }
Property Value
Status
Declaration
public RealtimeItemStatus? Status { get; set; }
Property Value
StatusDetails
Additional details about the status.
Declaration
public RealtimeItemStatusDetails StatusDetails { get; set; }
Property Value
Type
Declaration
public RealtimeItemType Type { get; set; }
Property Value
Usage
Usage statistics for the response.
Declaration
public Usage Usage { get; set; }
Property Value
Methods
GetOutputText()
Declaration
public string GetOutputText()
Returns
GetTranscript()
Declaration
public string GetTranscript()
Returns
ToStatusString()
Declaration
public string ToStatusString()
Returns
UserAudio(string)
Declaration
public static RealtimeItem UserAudio(string base64EncodedAudio)
Parameters
Type |
Name |
Description |
string |
base64EncodedAudio |
|
Returns
UserMessage(string)
Declaration
public static RealtimeItem UserMessage(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Returns