> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# store • AI Agent SDK

> store: Store a memory.

# store

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**Knowledge**](../classes/Knowledge) class in the [**knowledge**](../modules/knowledge) module.

Store a memory.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def store(content: Any, user_id: Any, agent_id: Any, run_id: Any, metadata: Any, is_content: Any) -> Any
```

## Parameters

<ParamField query="content" type="Any" required={true}>
  No description available.
</ParamField>

<ParamField query="user_id" type="Any" required={false}>
  No description available.
</ParamField>

<ParamField query="agent_id" type="Any" required={false}>
  No description available.
</ParamField>

<ParamField query="run_id" type="Any" required={false}>
  No description available.
</ParamField>

<ParamField query="metadata" type="Any" required={false}>
  No description available.
</ParamField>

<ParamField query="is_content" type="Any" required={false} default="False">
  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()`.
</ParamField>

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `add`
* `logger.error`

## Used By

* [`ContextManager.truncate_tool_output`](../functions/ContextManager-truncate_tool_output)
* [`Memory.commit_memory_batch`](../functions/Memory-commit_memory_batch)
* [`Memory.acommit_memory_batch`](../functions/Memory-acommit_memory_batch)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/knowledge/knowledge.py#L359">
  `praisonaiagents/knowledge/knowledge.py` at line 359
</Card>
