llm-tool 0.1.2

Framework-agnostic Rust tool definitions for LLM agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use llm_tool::llm_tool;

/// Has a parameter without a doc comment.
#[llm_tool]
fn undocumented_param(
    /// This one is fine.
    a: i64,
    b: i64,
) -> Result<String, String> {
    Ok(format!("{}", a + b))
}

fn main() {}