Package com.openai.models.responses
Class ResponseQueuedEvent
-
- All Implemented Interfaces:
public final class ResponseQueuedEventEmitted when a response is queued and waiting to be processed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseQueuedEvent.BuilderA builder for ResponseQueuedEvent.
-
Method Summary
Modifier and Type Method Description final Responseresponse()The full response object that is queued. final LongsequenceNumber()The sequence number for this event. final JsonValue_type()The type of the event. final JsonField<Response>_response()Returns the raw JSON value of response. final JsonField<Long>_sequenceNumber()Returns the raw JSON value of sequenceNumber. final Map<String, JsonValue>_additionalProperties()final ResponseQueuedEvent.BuildertoBuilder()final ResponseQueuedEventvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseQueuedEvent.Builderbuilder()Returns a mutable builder for constructing an instance of ResponseQueuedEvent. -
-
Method Detail
-
sequenceNumber
final Long sequenceNumber()
The sequence number for this event.
-
_type
final JsonValue _type()
The type of the event. Always 'response.queued'.
Expected to always return the following:
JsonValue.from("response.queued")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_response
final JsonField<Response> _response()
Returns the raw JSON value of response.
Unlike response, this method doesn't throw if the JSON field has an unexpected type.
-
_sequenceNumber
final JsonField<Long> _sequenceNumber()
Returns the raw JSON value of sequenceNumber.
Unlike sequenceNumber, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseQueuedEvent.Builder toBuilder()
-
validate
final ResponseQueuedEvent validate()
-
builder
final static ResponseQueuedEvent.Builder builder()
Returns a mutable builder for constructing an instance of ResponseQueuedEvent.
The following fields are required:
.response() .sequenceNumber()
-
-
-
-