ConversationItemAddedEvent class

Conversation item added event.

The server emits conversation.item.added when a new item is appended to the conversation (e.g., immediately after the client sends conversation.item.create). For most flows this is the primary item-creation signal; conversation.item.created is emitted for item_reference lookup paths in some flows.

Implemented types
Annotations
  • @immutable

Constructors

ConversationItemAddedEvent({required String eventId, String? previousItemId, required Map<String, dynamic> item})
Creates a ConversationItemAddedEvent.
const
ConversationItemAddedEvent.fromJson(Map<String, dynamic> json)
Creates a ConversationItemAddedEvent from JSON.
factory

Properties

eventId String
The event ID.
final
hashCode int
The hash code for this object.
no setteroverride
item Map<String, dynamic>
The newly added item.
final
previousItemId String?
The ID of the previous item, if any.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The event type.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override