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
def store(content: Any, user_id: Any, agent_id: Any, run_id: Any, metadata: Any, is_content: Any) -> AnyParameters
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyWhen 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
AnyThe result of the operation.
Uses
addlogger.error
Used By
Source
View on GitHubpraisonaiagents/knowledge/knowledge.py at line 363