Search Short Term • AI Agent SDK
search_short_term: Search mem0 (treated as long-term since mem0 doesn't distinguish).
search_short_term
Method
</div>
This is a method of the Mem0MemoryAdapter class in the factories module.
Search mem0 (treated as long-term since mem0 doesn’t distinguish).
Signature
def search_short_term(query: str, limit: int) -> List[Dict[str, Any]]Parameters
ParamField
strNo description available.
ParamField
intNo description available.
Returns
ResponseField
List[Dict[str, Any]]The result of the operation.
Uses
search_long_term
Used By
AgentTeam.restore_session_stateMemory.search_short_termMemory.delete_memories_matchingMemory.build_context_for_task
Source
View on GitHubpraisonaiagents/memory/adapters/factories.py at line 233