mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 07:00:48 +08:00
Cut WA alarm re-query loops, auto-deliver xlsx, and add ops schedule templates.
TTL-cache UME alarm/diagnostics MCP calls, mark write_xlsx deliverable on WhatsApp unless explicitly false, and expose built-in recipe_template_id playbooks for daily tally / critical xlsx / license checks. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
7373e516f0
commit
d2693d1c63
9 changed files with 431 additions and 5 deletions
|
|
@ -30,11 +30,17 @@ _MCP_TOOL_TIMEOUT_OVERRIDES_S: dict[str, float] = {
|
|||
"aggregateUmeAlarms": 60.0,
|
||||
}
|
||||
|
||||
# Read-mostly inventory/list tools that agents re-call in tight self-loops on WhatsApp.
|
||||
# Read-mostly inventory/list/alarm tools that agents re-call in tight self-loops on WhatsApp.
|
||||
_MCP_LIST_CACHE_TTL_S: dict[str, float] = {
|
||||
"listCliTargets": 120.0,
|
||||
"listManagedNe": 120.0,
|
||||
"queryUmeNeInventory": 90.0,
|
||||
# Short TTL: cut identical alarm/diagnostics re-query loops in the same turn.
|
||||
"queryUmeAlarms": 45.0,
|
||||
"queryUmeAlarmsRaw": 45.0,
|
||||
"aggregateUmeAlarms": 45.0,
|
||||
"aggregateUmeAlarmsRaw": 45.0,
|
||||
"runUmeDiagnostics": 60.0,
|
||||
}
|
||||
|
||||
_MCP_LIST_CACHE_LOCK = threading.Lock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue