Class AssistantStreamEvent.ThreadMessageInProgress
-
- All Implemented Interfaces:
public final class AssistantStreamEvent.ThreadMessageInProgress
Occurs when a message moves to an
in_progress
state.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
AssistantStreamEvent.ThreadMessageInProgress.Builder
A builder for ThreadMessageInProgress.
-
Method Summary
Modifier and Type Method Description final Message
data()
Represents a message within a thread. final JsonValue
_event()
Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("thread.message.in_progress")
final JsonField<Message>
_data()
Returns the raw JSON value of data. final Map<String, JsonValue>
_additionalProperties()
final AssistantStreamEvent.ThreadMessageInProgress.Builder
toBuilder()
final AssistantStreamEvent.ThreadMessageInProgress
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static AssistantStreamEvent.ThreadMessageInProgress.Builder
builder()
Returns a mutable builder for constructing an instance of ThreadMessageInProgress. -
-
Method Detail
-
_event
final JsonValue _event()
Expected to always return the following:
JsonValue.from("thread.message.in_progress")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_data
final JsonField<Message> _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.ThreadMessageInProgress.Builder toBuilder()
-
validate
final AssistantStreamEvent.ThreadMessageInProgress validate()
-
builder
final static AssistantStreamEvent.ThreadMessageInProgress.Builder builder()
Returns a mutable builder for constructing an instance of ThreadMessageInProgress.
The following fields are required:
.data()
-
-
-
-