tokenless-core 1.0.0

Shared core types for tokenless
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Example: basic `Config` usage.
#![allow(clippy::unwrap_used, clippy::expect_used)]

use tokenless_core::Config;

fn main() {
    let config = Config::new("tokenless")
        .expect("valid name")
        .with_description("LLM token optimization toolkit");

    println!("Config name: {}", config.name());
    if let Some(desc) = config.description() {
        println!("Description: {desc}");
    }
}