RecallTool
Tool for retrieving content from agent memory.
Constructor
RecallTool(self, memory: cogency.memory.base.BaseMemory)
Methods
get_schema
Return tool call schema for LLM formatting. Returns: String representation of the tool's parameter schema
get_schema(self) -> str
get_usage_examples
Return example tool calls.
get_usage_examples(self) -> List[str]
run
Retrieve content from memory. Expected kwargs: query (str): Search query limit (int, optional): Maximum number of results tags (List[str], optional): Filter by tags
run(self, **kwargs: Any) -> Dict[str, Any]
validate_and_run
Validate parameters then run the tool.
validate_and_run(self, **kwargs: Any) -> Dict[str, Any]