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
def update(entry_id: str, content: str, metadata: Optional[Dict[str, Any]]) -> Optional[Dict[str, Any]]Parameters
ParamField
strEntry identifier
ParamField
strNew content
ParamField
OptionalOptional metadata to merge
Returns
ResponseField
Optional[Dict[str, Any]]Updated entry or None if not found
Source
View on GitHubpraisonaiagents/memory/learn/protocols.py at line 108