Store Memory • AI Agent SDK

store_memory: Store content in memory.

store_memory

Method

</div>

This is a method of the Agent class in the agent module.

Store content in memory.

Signature

python
def store_memory(content: str, memory_type: str, action: str) -> None

Parameters

ParamField str

Content to store

ParamField str

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

ParamField str

Type of operation (“add”, “replace”, “remove”) **kwargs: Additional arguments for the memory method

Uses

  • ValueError
  • store_short_term
  • add_short_term
  • store_long_term
  • add_long_term
  • add_entity
  • add_episodic
  • logging.warning
  • asyncio.get_running_loop
  • spawn_background

Source

View on GitHub

praisonaiagents/agent/agent.py at line 6501


Related Documentation