> ## 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.

# add • Rust AI Agent SDK

> add: Add content to the store

# add

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

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

Add content to the store

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def add(
        &mut self,
        content: &str,
        user_id: Option<&str>,
        agent_id: Option<&str>,
        metadata: Option<HashMap<String, String>>,
    ) -> Result<AddResult>
```

## Parameters

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

<ParamField query="user_id" type="Option<&str>" required={true}>
  No description available.
</ParamField>

<ParamField query="agent_id" type="Option<&str>" required={true}>
  No description available.
</ParamField>

<ParamField query="metadata" type="Option<HashMap<String" required={true}>
  No description available.
</ParamField>

### Returns

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