Class AssistantStreamEvent.ThreadCreated
-
- All Implemented Interfaces:
public final class AssistantStreamEvent.ThreadCreated
Occurs when a new thread is created.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
AssistantStreamEvent.ThreadCreated.Builder
A builder for ThreadCreated.
-
Method Summary
Modifier and Type Method Description final Thread
data()
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.Builder
toBuilder()
final AssistantStreamEvent.ThreadCreated
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static AssistantStreamEvent.ThreadCreated.Builder
builder()
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()
-
-
-
-