Skip to main content

store_memory

Method
This is a method of the Agent class in the agent module.
Store content in memory.

Signature

def store_memory(content: str, memory_type: str) -> Any

Parameters

content
str
required
Content to store
memory_type
str
default:"'short_term'"
Type of memory (short_term, long_term, entity, episodic) **kwargs: Additional arguments for the memory method

Returns

Returns
Any
The result of the operation.

Uses

  • add_short_term
  • add_long_term
  • add_entity
  • add_episodic

Source

View on GitHub

praisonaiagents/agent/agent.py at line 2827