Search Short Term • AI Agent SDK
search_short_term: Search MongoDB short-term collection.
search_short_term
Method
</div>
This is a method of the MongoDBMemoryAdapter class in the factories module.
Search MongoDB short-term collection.
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.
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 587