loopflow 0.12.13

Run steps and flows with coding agents
Documentation
1
2
3
4
5
6
7
8
9
use loopflow::engine::count_tokens;

#[test]
fn token_counting() {
    assert_eq!(count_tokens(""), 1);
    assert_eq!(count_tokens("hello"), 1);
    let long = "a".repeat(30);
    assert_eq!(count_tokens(&long), 5);
}