feat: standardize long-running tool workflows
This commit is contained in:
@@ -31,8 +31,14 @@ replacement = """ tool_call_iterations = 0
|
||||
# Per-tool and exact-repeat limits below prevent one low-level MCP
|
||||
# operation from consuming the whole turn.
|
||||
tool_call_executions = 0
|
||||
max_tool_call_executions = 40
|
||||
max_executions_per_tool = 12
|
||||
long_operator_task = bool(
|
||||
(metadata or {}).get('mikeai_long_operator_task', False)
|
||||
)
|
||||
# Research stays tightly bounded. Explicit long-running host work
|
||||
# receives a larger, still finite budget so discovery cannot consume
|
||||
# the calls needed for execution, verification and cleanup.
|
||||
max_tool_call_executions = 64 if long_operator_task else 40
|
||||
max_executions_per_tool = 24 if long_operator_task else 12
|
||||
# Inlet filters only see the first request, not later internal
|
||||
# tool continuations. Bound the evidence injected into those
|
||||
# continuations so one broad inventory cannot consume context.
|
||||
|
||||
Reference in New Issue
Block a user