add • AI Agent SDK
add: Add a new entry to the store.
add
Method
</div>
This is a method of the LearnProtocol class in the protocols module.
Add a new entry to the store.
Signature
def add(content: str, metadata: Optional[Dict[str, Any]]) -> Dict[str, Any]Parameters
ParamField
strThe content to store
ParamField
OptionalOptional metadata dictionary
Returns
ResponseField
Dict[str, Any]Dictionary with entry details including ‘id’
Used By
AutonomyTrigger.recommend_stageDeepResearchResponse.get_all_sourcesAgentTeam.wait_for_completionsAgentTeam.await_for_completionsPermissionAllowlist.add_tool
Source
View on GitHubpraisonaiagents/memory/learn/protocols.py at line 44