Package com.openai.models.realtime
Class ConversationCreatedEvent
-
- All Implemented Interfaces:
public final class ConversationCreatedEventReturned when a conversation is created. Emitted right after session creation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classConversationCreatedEvent.BuilderA builder for ConversationCreatedEvent.
public final classConversationCreatedEvent.ConversationThe conversation resource.
-
Method Summary
Modifier and Type Method Description final ConversationCreatedEvent.Conversationconversation()The conversation resource. final StringeventId()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.BuildertoBuilder()final ConversationCreatedEventvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ConversationCreatedEvent.Builderbuilder()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()
-
-
-
-