Banks
Get statistics for memory bank
Changed onGet statistics about nodes and links for a specific agent
get/v1/default/banks/{bank_id}/stats
Request
- Base URLhttps://hindsight.vectorize.io (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
bank_idstring required
Query parameters
refreshboolean
Force a fresh recompute, bypassing the cached value (and refreshing the cache).
Headers
authorizationstring nullable
Response
Successful Response
Example response
{
"bank_id": "user123",
"failed_consolidation": 0,
"failed_operations": 0,
"last_consolidated_at": "2024-01-15T10:30:00Z",
"last_memory_write_at": "2024-01-15T11:05:00Z",
"links_breakdown": {
"fact": {
"entity": 40,
"semantic": 60,
"temporal": 100
}
},
"links_by_fact_type": {
"fact": 200,
"observation": 40,
"preference": 60
},
"links_by_link_type": {
"entity": 50,
"semantic": 100,
"temporal": 150
},
"nodes_by_fact_type": {
"fact": 100,
"observation": 20,
"preference": 30
},
"paused_mental_models": 0,
"pending_consolidation": 0,
"pending_operations": 2,
"total_documents": 10,
"total_links": 300,
"total_nodes": 150,
"total_observations": 45
}Changes
- info
added the optional property
to the response with the status
- info
- warning
removed the optional property
//from the response with the status - info
added the new optional
queryrequest parameterrefresh - info
added the non-success response with the status
- info
added the optional property
to the response with the status
- warning