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

# update • AI Agent SDK

> update: Update an existing item.

# update

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

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

Update an existing item.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def update(item_id: str, content: Any) -> AddResult
```

## Parameters

<ParamField query="item_id" type="str" required={true}>
  ID of the item to update
</ParamField>

<ParamField query="content" type="Any" required={true}>
  New content \*\*kwargs: Backend-specific options
</ParamField>

### Returns

<ResponseField name="Returns" type="AddResult">
  AddResult with operation status
</ResponseField>

## Source

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