Model explicit request takes priority; fallback to heuristic.
(tool_name: str, tool_input: dict)
| 327 | |
| 328 | |
| 329 | def should_run_background(tool_name: str, tool_input: dict) -> bool: |
| 330 | """Model explicit request takes priority; fallback to heuristic.""" |
| 331 | if tool_input.get("run_in_background"): |
| 332 | return True |
| 333 | return is_slow_operation(tool_name, tool_input) |
| 334 | |
| 335 | |
| 336 | def execute_tool(block) -> str: |
no test coverage detected