CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.
Python agent-frameworkagent-harnessagent-runtimeagentic-aiai-agentsai-frameworkanthropicharnessharness-engineeringharness-frameworklanggraphlanggraph-alternativellmmcpopenaipi-agentpi-agent-corepythonpython-agent
test: add ToolResultMessage usage to satisfy lint unused-import check
xf gonge6730aac96aa
diff --git a/tests/agent/test_types.py b/tests/agent/test_types.pyindex c2cd2ed..2cc83d7 100644--- a/tests/agent/test_types.py+++ b/tests/agent/test_types.py@@ -175,3 +175,14 @@ class TestTypedMessages:msg = UserMessage(content=[TextContent(text="hi")])event = MessageStartEvent(message=msg)assert event.message.role == "user"++ def test_turn_end_event_typed_tool_results(self):+ msg = AssistantMessage(content=[TextContent(text="done")])+ tr = ToolResultMessage(+ tool_call_id="t1",+ tool_name="search",+ content=[TextContent(text="result")],+ )+ event = TurnEndEvent(message=msg, tool_results=[tr])+ assert len(event.tool_results) == 1+ assert event.tool_results[0].role == "tool_result"