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