core/agent: add model-friendly hint to truncated tool results

This commit is contained in:
2026-08-01 01:42:17 +08:00
parent 49a3ef0004
commit 3fe1c4cf91
5 changed files with 44 additions and 7 deletions
+1 -1
View File
@@ -848,7 +848,7 @@ async def test_tool_result_char_budget() -> None:
tool_msgs = [m for m in messages if isinstance(m, ToolChatMessage)]
assert len(tool_msgs) == 1
assert tool_msgs[0].content.startswith("x" * 20)
assert "truncated" in tool_msgs[0].content
assert "Truncated" in tool_msgs[0].content
async def test_empty_completion_raises() -> None: