Skip to content

Event

Source code in docs_src/capo_opensearchmemory/types/event.py
class Event(TypedDict, closed=True):
    event_id: "capo_opensearchmemory.types.event_id.EventId"
    """<p>The event's ID.</p>"""
    space_id: "capo_opensearchmemory.types.space_id.SpaceId"
    """<p>The ID of the space.</p>"""
    actor_id: "capo_opensearchmemory.types.actor_id.ActorId"
    """<p>The ID of the actor the event belongs to.</p>"""
    session_id: "capo_opensearchmemory.types.session_id.SessionId"
    """<p>The ID of the session the event belongs to.</p>"""
    payload: "capo_opensearchmemory.types.event_payload.EventPayload"
    """<p>The event's content, as submitted to <code>CreateEvent</code>.</p>"""
    metadata: NotRequired["capo_opensearchmemory.types.metadata_map.MetadataMap"]
    """<p>The event's metadata tags, as supplied to <code>CreateEvent</code>. May be empty.</p>"""
    event_timestamp: "capo_opensearchmemory.types.event_timestamp.EventTimestamp"
    """<p>The time the event occurred.</p>"""

actor_id instance-attribute

actor_id: ActorId

The ID of the actor the event belongs to.

event_id instance-attribute

event_id: EventId

The event's ID.

event_timestamp instance-attribute

event_timestamp: EventTimestamp

The time the event occurred.

metadata instance-attribute

metadata: NotRequired[MetadataMap]

The event's metadata tags, as supplied to CreateEvent. May be empty.

payload instance-attribute

payload: EventPayload

The event's content, as submitted to CreateEvent.

session_id instance-attribute

session_id: SessionId

The ID of the session the event belongs to.

space_id instance-attribute

space_id: SpaceId

The ID of the space.