llm-tool 0.1.3

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

// The template has variables, but we did NOT provide context = ... or params(...).
#[llm_tool(template = "/tmp/dynamic_desc_test.tmpl.md")]
fn missing_context(
    x: i64,
) -> Result<String, String> {
    Ok(format!("{x}"))
}

fn main() {}