mirror of
https://gitea.ingwaz.work/Ingwaz/openbrain-mcp.git
synced 2026-03-31 14:49:06 +00:00
Add TTL expiry for transient facts
This commit is contained in:
@@ -30,6 +30,10 @@ pub fn get_tool_definitions() -> Vec<Value> {
|
||||
"metadata": {
|
||||
"type": "object",
|
||||
"description": "Optional metadata to attach to the memory"
|
||||
},
|
||||
"ttl": {
|
||||
"type": "string",
|
||||
"description": "Optional time-to-live for transient facts, like 30s, 15m, 1h, 7d, or 2w"
|
||||
}
|
||||
},
|
||||
"required": ["content"]
|
||||
@@ -45,6 +49,10 @@ pub fn get_tool_definitions() -> Vec<Value> {
|
||||
"type": "string",
|
||||
"description": "Unique identifier for the agent storing the memories (default: 'default')"
|
||||
},
|
||||
"ttl": {
|
||||
"type": "string",
|
||||
"description": "Optional default time-to-live applied to entries without their own ttl"
|
||||
},
|
||||
"entries": {
|
||||
"type": "array",
|
||||
"description": "Array of 1-50 memory entries to store atomically",
|
||||
@@ -58,6 +66,10 @@ pub fn get_tool_definitions() -> Vec<Value> {
|
||||
"metadata": {
|
||||
"type": "object",
|
||||
"description": "Optional metadata to attach to the memory"
|
||||
},
|
||||
"ttl": {
|
||||
"type": "string",
|
||||
"description": "Optional per-entry time-to-live override like 30s, 15m, 1h, 7d, or 2w"
|
||||
}
|
||||
},
|
||||
"required": ["content"]
|
||||
|
||||
Reference in New Issue
Block a user