update • AI Agent SDK

update: Update an existing entry.

update

Method

</div>

This is a method of the LearnProtocol class in the protocols module.

Update an existing entry.

Signature

python
def update(entry_id: str, content: str, metadata: Optional[Dict[str, Any]]) -> Optional[Dict[str, Any]]

Parameters

ParamField str

Entry identifier

ParamField str

New content

ParamField Optional

Optional metadata to merge

Returns

ResponseField Optional[Dict[str, Any]]

Updated entry or None if not found

Source

View on GitHub

praisonaiagents/memory/learn/protocols.py at line 108