Memory Search • AI Agent SDK
memory_search: Emit memory search event for tracking memory reads.
memory_search
Method
</div>
This is a method of the ContextTraceEmitter class in the context_events module.
Emit memory search event for tracking memory reads.
Signature
def memory_search(agent_name: str, query: str, result_count: int, memory_type: str, top_score: Optional[float]) -> NoneParameters
ParamField
strName of the agent searching memory
ParamField
strSearch query
ParamField
intNumber of results returned
ParamField
strType of memory searched
ParamField
Optional[float]Score of top result (if available)
Uses
ContextEventtime.time
Source
View on GitHubpraisonaiagents/trace/context_events.py at line 1421