Agentica 0.36.0
· release
Agentica 0.36.0 is out. It is a small release. This post lists what changed; the full list is in the changelog.
What is new #
agentica test –max-steps #
Every test has a step budget, so a test that runs too long fails with RUNTIME-STEP-LIMIT instead of running on. The default is 1,000,000 steps. agentica test --max-steps N sets the budget for a run, and --max-steps unlimited takes the limit away.
Here is a test file with a short test and a long one:
def test_fast_sum() -> Result[Void]
Test.eq([1, 2, 3].sum(), 6)
end
def test_long_loop() -> Result[Void]
n = 0
while n < 300000
n = n + 1
end
Test.eq(n, 300000)
endWith a budget of 5,000 steps, the long test stops:
agentica test --max-steps 5000 test/steps_test.agcOutput
PASS test/steps_test.agc / fast sum
FAIL test/steps_test.agc / long loop
test/steps_test.agc:8:5 [RUNTIME-STEP-LIMIT] execution step budget exhausted
stack, innermost first:
test_long_loop at test/steps_test.agc:8:5
task spawned at test/steps_test.agc:5:1
1 passed, 1 failed, 0 skipped, 0 not executed, 0 file errors, seed 1786224240With unlimited, both tests pass:
agentica test --max-steps unlimited test/steps_test.agcOutput
PASS test/steps_test.agc / fast sum
PASS test/steps_test.agc / long loop
2 passed, 0 failed, 0 skipped, 0 not executed, 0 file errorsThe tests of one file share a budget: N times the number of tests, plus one. See agentica test.
Also #
agentica --max-steps N testnow sets the budget too. Before, the flag in front oftestwas ignored.- The native modules page has a section on a native handle in generic data, so a package can hold a backend’s resource through a generic type. See native modules.
To install or upgrade, see getting started. The archives for Linux, macOS and Windows are on the 0.36.0 release page.