Read Graph
read_graphRetrieve the complete knowledge graph to access stored user information across conversations for persistent memory.
Instructions
Read the entire knowledge graph
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entities | Yes | ||
| relations | Yes |
Implementation Reference
- The implementation of the read_graph tool in the KnowledgeGraphManager class. It retrieves the knowledge graph by calling the _check_cache helper method, which handles loading from a file and caching.
async def read_graph(self) -> KnowledgeGraph: """ Read the entire knowledge graph using the cached version if available. """ return await self._check_cache()