mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-17 14:42:06 +00:00
fix(agent): preserve none vs unknown tool effects (#61783)
* fix(agent): persist truthful tool effect dispositions * fix(agent): preserve successful siblings during orphan recovery * fix(agent): narrow effect dispositions to none and unknown
This commit is contained in:
parent
5ecc07986f
commit
a0a6cd80f5
13 changed files with 253 additions and 38 deletions
|
|
@ -222,6 +222,12 @@ class TestMakeToolResultMessage:
|
|||
"tool_call_id": "call_1",
|
||||
}
|
||||
|
||||
def test_effect_disposition_is_internal_message_metadata(self):
|
||||
msg = make_tool_result_message(
|
||||
"terminal", "timed out", "call_effect", effect_disposition="unknown"
|
||||
)
|
||||
assert msg["effect_disposition"] == "unknown"
|
||||
|
||||
def test_high_risk_message_content_wrapped(self):
|
||||
msg = make_tool_result_message("web_extract", SAMPLE_LONG_TEXT, "call_2")
|
||||
assert msg["role"] == "tool"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue