Class ResponseCancelRequest
Send this event to cancel an in-progress response.
The server will respond with a response.cancelled
event or an error if there is no response to cancel.
public sealed class ResponseCancelRequest : BaseRealtimeEvent, IClientEvent, IRealtimeEvent
- Inheritance
-
ResponseCancelRequest
- Implements
- Inherited Members
Constructors
ResponseCancelRequest()
Default Constructor.
public ResponseCancelRequest()
ResponseCancelRequest(string)
Constructor.
public ResponseCancelRequest(string responseId)
Parameters
responseId
stringA specific response ID to cancel - if not provided, will cancel an in-progress response in the default conversation.
Properties
EventId
The unique ID of the server event.
[JsonInclude]
[JsonPropertyName("event_id")]
public override string EventId { get; }
Property Value
ResponseId
A specific response ID to cancel - if not provided, will cancel an in-progress response in the default conversation.
[JsonInclude]
[JsonPropertyName("response_id")]
public string ResponseId { get; }
Property Value
Type
[JsonInclude]
[JsonPropertyName("type")]
public override string Type { get; protected set; }