MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _tool_result_is_routine_success

Function _tool_result_is_routine_success

uncommon_route/proxy.py:1403–1410  ·  view source on GitHub ↗
(text: str, is_error: bool, command: str)

Source from the content-addressed store, hash-verified

1401
1402
1403def _tool_result_is_routine_success(text: str, is_error: bool, command: str) -> bool:
1404 if is_error or _contains_tool_failure_signal(text, command):
1405 return False
1406 return (
1407 bool(_SUCCESSFUL_TEST_SUMMARY_RE.search(text or ""))
1408 or bool(_GENERIC_ROUTINE_SUCCESS_RE.search(text or ""))
1409 or _contains_risk_marker(command, _ROUTINE_SUCCESS_COMMAND_MARKERS)
1410 )
1411
1412
1413def _tool_result_is_short_success_observation(text: str, is_error: bool, command: str) -> bool:

Callers 3

_estimate_step_riskFunction · 0.85

Calls 2

_contains_risk_markerFunction · 0.85

Tested by

no test coverage detected