Memory Store • AI Agent SDK
memory_store: Emit memory store event for tracking memory writes.
memory_store
Method
</div>
This is a method of the ContextTraceEmitter class in the context_events module.
Emit memory store event for tracking memory writes.
Signature
def memory_store(agent_name: str, memory_type: str, content_length: int, metadata: Optional[Dict[str, Any]]) -> NoneParameters
ParamField
strName of the agent storing memory
ParamField
strType of memory (short_term, long_term, entity, user)
ParamField
intLength of content being stored
ParamField
OptionalOptional metadata about the storage
Uses
ContextEventtime.time
Source
View on GitHubpraisonaiagents/trace/context_events.py at line 1392