Package com.openai.models.beta.realtime
Class ConversationCreatedEvent
-
- All Implemented Interfaces:
public final class ConversationCreatedEvent
Returned when a conversation is created. Emitted right after session creation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ConversationCreatedEvent.Builder
A builder for ConversationCreatedEvent.
public final class
ConversationCreatedEvent.Conversation
The conversation resource.
-
Method Summary
Modifier and Type Method Description final ConversationCreatedEvent.Conversation
conversation()
The conversation resource. final String
eventId()
The unique ID of the server event. final JsonValue
_type()
The event type, must be conversation.created
.final JsonField<ConversationCreatedEvent.Conversation>
_conversation()
Returns the raw JSON value of conversation. final JsonField<String>
_eventId()
Returns the raw JSON value of eventId. final Map<String, JsonValue>
_additionalProperties()
final ConversationCreatedEvent.Builder
toBuilder()
final ConversationCreatedEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ConversationCreatedEvent.Builder
builder()
Returns a mutable builder for constructing an instance of ConversationCreatedEvent. -
-
Method Detail
-
conversation
final ConversationCreatedEvent.Conversation conversation()
The conversation resource.
-
_type
final JsonValue _type()
The event type, must be
conversation.created
.Expected to always return the following:
JsonValue.from("conversation.created")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_conversation
final JsonField<ConversationCreatedEvent.Conversation> _conversation()
Returns the raw JSON value of conversation.
Unlike conversation, this method doesn't throw if the JSON field has an unexpected type.
-
_eventId
final JsonField<String> _eventId()
Returns the raw JSON value of eventId.
Unlike eventId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ConversationCreatedEvent.Builder toBuilder()
-
validate
final ConversationCreatedEvent validate()
-
builder
final static ConversationCreatedEvent.Builder builder()
Returns a mutable builder for constructing an instance of ConversationCreatedEvent.
The following fields are required:
.conversation() .eventId()
-
-
-
-