mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-02 07:11:49 +00:00
fix(delegate): tool_trace false-positive error detection for short outputs
This commit is contained in:
parent
4279da4db6
commit
7d09bb1915
1 changed files with 1 additions and 1 deletions
|
|
@ -1649,7 +1649,7 @@ def _run_single_child(
|
|||
trace_by_id[tc_id] = entry_t
|
||||
elif msg.get("role") == "tool":
|
||||
content = msg.get("content", "")
|
||||
is_error = bool(content and "error" in content[:80].lower())
|
||||
is_error = _looks_like_error_output(content)
|
||||
result_meta = {
|
||||
"result_bytes": len(content),
|
||||
"status": "error" if is_error else "ok",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue