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

python
def memory_store(agent_name: str, memory_type: str, content_length: int, metadata: Optional[Dict[str, Any]]) -> None

Parameters

ParamField str

Name of the agent storing memory

ParamField str

Type of memory (short_term, long_term, entity, user)

ParamField int

Length of content being stored

ParamField Optional

Optional metadata about the storage

Uses

  • ContextEvent
  • time.time

Source

View on GitHub

praisonaiagents/trace/context_events.py at line 1392


Related Documentation