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
style(capability): consolidate ThinkingLevel import at top
xf gongd41004840446
diff --git a/cubepi/providers/capability.py b/cubepi/providers/capability.pyindex b8c8918..b5e0d0d 100644--- a/cubepi/providers/capability.py+++ b/cubepi/providers/capability.py@@ -9,6 +9,8 @@ from typing import Any, Literalfrom pydantic import BaseModel, Field, model_validator+from cubepi.providers.base import ThinkingLevel+class TemperatureSpec(BaseModel):mode: Literal["free", "fixed", "ignored"] = "free"@@ -115,9 +117,6 @@ def apply_temperature(kwargs: dict[str, Any], spec: TemperatureSpec) -> None:kwargs["temperature"] = max(spec.min, min(spec.max, value))-from cubepi.providers.base import ThinkingLevel--def _resolve_level_value(spec: ReasoningLevelSpec, level: ThinkingLevel) -> Any | None:"""Return the wire value for ``level`` per ``spec``, or None to skip writing."""if spec.kind == "int_budget":