Class ThreadStreamEvent
-
- All Implemented Interfaces:
public final class ThreadStreamEventOccurs when a new thread is created.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classThreadStreamEvent.BuilderA builder for ThreadStreamEvent.
-
Method Summary
Modifier and Type Method Description final Threaddata()Represents a thread that contains messages. final JsonValue_event()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("thread.created")final Optional<Boolean>enabled()Whether to enable input audio transcription. final JsonField<Thread>_data()Returns the raw JSON value of data. final JsonField<Boolean>_enabled()Returns the raw JSON value of enabled. final Map<String, JsonValue>_additionalProperties()final ThreadStreamEvent.BuildertoBuilder()final ThreadStreamEventvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ThreadStreamEvent.Builderbuilder()Returns a mutable builder for constructing an instance of ThreadStreamEvent. -
-
Method Detail
-
_event
final JsonValue _event()
Expected to always return the following:
JsonValue.from("thread.created")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_data
final JsonField<Thread> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_enabled
final JsonField<Boolean> _enabled()
Returns the raw JSON value of enabled.
Unlike enabled, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ThreadStreamEvent.Builder toBuilder()
-
validate
final ThreadStreamEvent validate()
-
builder
final static ThreadStreamEvent.Builder builder()
Returns a mutable builder for constructing an instance of ThreadStreamEvent.
The following fields are required:
.data()
-
-
-
-