Store Memory • AI Agent SDK
store_memory: Store content in memory.
store_memory
Method
</div>
Store content in memory.
Signature
def store_memory(content: str, memory_type: str, action: str) -> NoneParameters
ParamField
strContent to store
ParamField
strType of memory (short_term, long_term, entity, episodic)
ParamField
strType of operation (“add”, “replace”, “remove”) **kwargs: Additional arguments for the memory method
Uses
ValueErrorstore_short_termadd_short_termstore_long_termadd_long_termadd_entityadd_episodiclogging.warningasyncio.get_running_loopspawn_background
Source
View on GitHubpraisonaiagents/agent/agent.py at line 6501