OpenAI::RealtimeClientEventResponseCancel
Inherits JSON::Serializable < Reference < Object
Send this event to cancel an in-progress response. The server will respond
with a response.done event with a status of response.status=cancelled. If
there is no response to cancel, the server will respond with an error. It's safe
to call response.cancel even if no response is in progress, an error will be
returned the session will remain unaffected.
Constructors
new(pull : JSON::PullParser)
Sourcenew(event_id : String | Nil = nil, type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, response_id : String | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
response_id
A specific response ID to cancel - if not provided, will cancel an in-progress response in the default conversation.
A specific response ID to cancel - if not provided, will cancel an in-progress response in the default conversation.