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
import pytest
from cubeloop.agent.types import ForkOnceResult
def test_fork_once_result_constructs_and_is_frozen():
r = ForkOnceResult(text="hi", messages=[], stop_reason="end_turn")
assert r.text == "hi"
assert r.messages == []
assert r.stop_reason == "end_turn"
with pytest.raises((AttributeError, Exception)):
r.text = "mut" # type: ignore[misc]