Class CreateResponseRequest
This event instructs the server to create a Response, which means triggering model inference. When in Server VAD mode, the server will create Responses automatically. A Response will include at least one Item, and may have two, in which case the second will be a function call. These Items will be appended to the conversation history. The server will respond with a response.created event, events for Items and content created, and finally a response.done event to indicate the Response is complete. The response.create event includes inference configuration like instructions, and temperature. These fields will override the Session's configuration for this Response only.
public sealed class CreateResponseRequest : BaseRealtimeEvent, IClientEvent, IRealtimeEvent
- Inheritance
-
CreateResponseRequest
- Implements
- Inherited Members
Constructors
CreateResponseRequest()
public CreateResponseRequest()
CreateResponseRequest(RealtimeResponseCreateParams)
Constructor.
public CreateResponseRequest(RealtimeResponseCreateParams options)
Parameters
options
RealtimeResponseCreateParamsCreate a new Realtime response with these parameters.
Properties
EventId
The unique ID of the server event.
[JsonInclude]
[JsonPropertyName("event_id")]
public override string EventId { get; }
Property Value
Options
[JsonInclude]
[JsonPropertyName("response")]
public RealtimeResponseCreateParams Options { get; }
Property Value
Type
[JsonInclude]
[JsonPropertyName("type")]
public override string Type { get; protected set; }