UpdateMemoryInput
¶
Source code in docs_src/capo_opensearchmemory/types/update_memory_input.py
actor_id
instance-attribute
¶
actor_id: NotRequired[ActorId]
The ID of the actor that the memory must belong to. Omit it to skip this check. If it doesn't match the stored memory, the call fails with ResourceNotFoundException, as if the memory did not exist.
content
instance-attribute
¶
content: NotRequired[MemoryUpdateContent]
Replacement memory text. Supplying it re-embeds the memory. Omit to leave the text unchanged.
metadata
instance-attribute
¶
metadata: NotRequired[MetadataMap]
The metadata tags to apply. By default this map replaces the stored metadata, and any key not present is removed. Set metadataMode to MERGE to keep the keys you don't supply. Limits apply to the resulting metadata, not to the request. Keys that begin with x-amz- and the key documentS3Source are reserved: a request that sets one fails with ValidationException.
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.
metadata_mode
instance-attribute
¶
metadata_mode: NotRequired[MetadataMode]
How metadata combines with what is stored. The default is REPLACE.
space_id
instance-attribute
¶
space_id: SpaceId
The ID of the space that owns the memory, for example sp-02864597b164.
strategy_name
instance-attribute
¶
strategy_name: NotRequired[StrategyName]
The name of the strategy that the memory must belong to. Omit it to skip this check. If it doesn't match the stored memory, the call fails with ResourceNotFoundException, as if the memory did not exist.