Package com.openai.models.responses
Class ResponseCreatedEvent
-
- All Implemented Interfaces:
public final class ResponseCreatedEvent
An event that is emitted when a response is created.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseCreatedEvent.Builder
A builder for ResponseCreatedEvent.
-
Method Summary
Modifier and Type Method Description final Response
response()
The response that was created. final JsonValue
_type()
The type of the event. final JsonField<Response>
_response()
Returns the raw JSON value of response. final Map<String, JsonValue>
_additionalProperties()
final ResponseCreatedEvent.Builder
toBuilder()
final ResponseCreatedEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseCreatedEvent.Builder
builder()
Returns a mutable builder for constructing an instance of ResponseCreatedEvent. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the event. Always
response.created
.Expected to always return the following:
JsonValue.from("response.created")
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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseCreatedEvent.Builder toBuilder()
-
validate
final ResponseCreatedEvent validate()
-
builder
final static ResponseCreatedEvent.Builder builder()
Returns a mutable builder for constructing an instance of ResponseCreatedEvent.
The following fields are required:
.response()
-
-
-
-