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
fix(hitl): add return type annotation to Agent.in_flight_hitl_request
xf gong4f735cdf5806
diff --git a/cubepi/agent/agent.py b/cubepi/agent/agent.pyindex eee5804..04a3906 100644--- a/cubepi/agent/agent.py+++ b/cubepi/agent/agent.py@@ -6,7 +6,7 @@ from dataclasses import dataclass, fieldfrom typing import Any, Callable, Generic, TypeVarfrom cubepi.agent.loop import run_agent_loop, run_agent_loop_continue-from cubepi.hitl import HitlError+from cubepi.hitl import HitlError, HitlRequestfrom cubepi.hitl.channel import HitlChannelfrom cubepi.middleware.base import Middleware, compose_middlewarefrom cubepi.agent.types import (@@ -194,7 +194,7 @@ class Agent(Generic[TMessage]):return self._channel@property- def in_flight_hitl_request(self):+ def in_flight_hitl_request(self) -> HitlRequest | None:if self._channel is None:raise HitlError("agent has no channel bound; pass channel= to Agent()")return self._channel.pending