CreateEventInput
¶
Source code in docs_src/capo_opensearchmemory/types/create_event_input.py
actor_id
instance-attribute
¶
actor_id: ActorId
The ID of the actor (end user or agent) that the event belongs to.
client_token
instance-attribute
¶
client_token: NotRequired[ClientToken]
A unique, case-sensitive identifier that makes the request idempotent. Within 2 hours of the first request, a retry with the same token and the same request, including the same sessionId, returns the same event. If you omit sessionId, the service generates a new one on each attempt, so a retry fails with ConflictException. Reusing the token with different request content also fails with ConflictException. eventTimestamp isn't compared. After 2 hours, the token starts a new event.
event_timestamp
instance-attribute
¶
event_timestamp: NotRequired[EventTimestamp]
When the event occurred. The default is the time that the service receives the request.
infer
instance-attribute
¶
infer: NotRequired[bool]
Specifies whether to extract memories from this event. The default is true. Set it to false to store the event without extraction: the service skips strategies that infer memories, and still indexes the event's turns for SearchEvents. A document submitted as a blob is still extracted.
metadata
instance-attribute
¶
metadata: NotRequired[MetadataMap]
Metadata tags to store with the event. Memories derived from the event carry the same tags. Keys that begin with x-amz-, the keys documentS3Source and documentS3Url, and other keys that the service uses internally are reserved: a request that sets one fails with ValidationException, and the message names the key.
A space can use at most 50 distinct metadata keys across all of its events and memories. A request that would add a key beyond that fails with ValidationException. Reuse an existing key instead.
session_id
instance-attribute
¶
session_id: NotRequired[SessionId]
The session the event belongs to. Send every event of one conversation with the same session ID, so that SUMMARY strategies summarize the conversation as one session. If you omit it, the service generates a session ID and returns it.