Class AssistantStreamEvent.ThreadCreated
-
- All Implemented Interfaces:
public final class AssistantStreamEvent.ThreadCreatedOccurs when a new thread is created.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAssistantStreamEvent.ThreadCreated.BuilderA builder for ThreadCreated.
-
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 AssistantStreamEvent.ThreadCreated.BuildertoBuilder()final AssistantStreamEvent.ThreadCreatedvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static AssistantStreamEvent.ThreadCreated.Builderbuilder()Returns a mutable builder for constructing an instance of ThreadCreated. -
-
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 AssistantStreamEvent.ThreadCreated.Builder toBuilder()
-
validate
final AssistantStreamEvent.ThreadCreated validate()
-
builder
final static AssistantStreamEvent.ThreadCreated.Builder builder()
Returns a mutable builder for constructing an instance of ThreadCreated.
The following fields are required:
.data()
-
-
-
-