store • AI Agent SDK

store: Store a memory.

store

Method

</div>

This is a method of the Knowledge class in the knowledge module.

Store a memory.

Signature

python
def store(content: Any, user_id: Any, agent_id: Any, run_id: Any, metadata: Any, is_content: Any) -> Any

Parameters

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

When True, `content is treated as literal text and the file-path heuristic is skipped. Callers that have already read a file's contents (e.g. chunks from _process_single_input) must set this so a chunk ending in .txt/.pdf/.doc/.docx is not mistaken for a path and re-dispatched to add()`.

Returns

ResponseField Any

The result of the operation.

Uses

  • add
  • logger.error

Used By

Source

View on GitHub

praisonaiagents/knowledge/knowledge.py at line 363