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

python
def memory_search(agent_name: str, query: str, result_count: int, memory_type: str, top_score: Optional[float]) -> None

Parameters

ParamField str

Name of the agent searching memory

ParamField str

Search query

ParamField int

Number of results returned

ParamField str

Type of memory searched

ParamField Optional[float]

Score of top result (if available)

Uses

  • ContextEvent
  • time.time

Source

View on GitHub

praisonaiagents/trace/context_events.py at line 1421


Related Documentation