Class AssistantStreamEvent.ErrorEvent
-
- All Implemented Interfaces:
public final class AssistantStreamEvent.ErrorEventOccurs when an error occurs. This can happen due to an internal server error or a timeout.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAssistantStreamEvent.ErrorEvent.BuilderA builder for ErrorEvent.
-
Method Summary
Modifier and Type Method Description final ErrorObjectdata()final JsonValue_event()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("error")final JsonField<ErrorObject>_data()Returns the raw JSON value of data. final Map<String, JsonValue>_additionalProperties()final AssistantStreamEvent.ErrorEvent.BuildertoBuilder()final AssistantStreamEvent.ErrorEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static AssistantStreamEvent.ErrorEvent.Builderbuilder()Returns a mutable builder for constructing an instance of ErrorEvent. -
-
Method Detail
-
data
final ErrorObject data()
-
_event
final JsonValue _event()
Expected to always return the following:
JsonValue.from("error")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_data
final JsonField<ErrorObject> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final AssistantStreamEvent.ErrorEvent.Builder toBuilder()
-
validate
final AssistantStreamEvent.ErrorEvent validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static AssistantStreamEvent.ErrorEvent.Builder builder()
Returns a mutable builder for constructing an instance of ErrorEvent.
The following fields are required:
.data()
-
-
-
-