tinyagents 0.2.0

A recursive language-model (RLM) harness for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Unit tests for run-scoped limit enforcement.
//!
//! Smoke-checks that default [`RunLimits`] build a [`LimitTracker`] and that
//! recording a model call advances the counter.

#[test]
fn smoke_default_limits_compile() {
    use super::{LimitTracker, RunLimits};
    let limits = RunLimits::default();
    let mut tracker = LimitTracker::new(limits);
    tracker.record_model_call().unwrap();
    assert_eq!(tracker.model_calls(), 1);
}