Skip to content

CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.

381 B
Raw Blame
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]