> ## 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 • AI Agent SDK

> add: Add a new entry to the store.

# add

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

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

Add a new entry to the store.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def add(content: str, metadata: Optional[Dict[str, Any]]) -> Dict[str, Any]
```

## Parameters

<ParamField query="content" type="str" required={true}>
  The content to store
</ParamField>

<ParamField query="metadata" type="Optional" required={false}>
  Optional metadata dictionary
</ParamField>

### Returns

<ResponseField name="Returns" type="Dict[str, Any]">
  Dictionary with entry details including 'id'
</ResponseField>

## Used By

* [`AutonomyTrigger.recommend_stage`](../functions/AutonomyTrigger-recommend_stage)
* [`DeepResearchResponse.get_all_sources`](../functions/DeepResearchResponse-get_all_sources)
* [`AgentTeam.wait_for_completions`](../functions/AgentTeam-wait_for_completions)
* [`AgentTeam.await_for_completions`](../functions/AgentTeam-await_for_completions)
* [`PermissionAllowlist.add_tool`](../functions/PermissionAllowlist-add_tool)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/memory/learn/protocols.py#L44">
  `praisonaiagents/memory/learn/protocols.py` at line 44
</Card>
