llm-tool 0.1.4

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;

struct MyStruct;

impl MyStruct {
    /// Does something with self.
    #[llm_tool]
    fn with_self(&self) -> Result<String, String> {
        Ok("hello".to_string())
    }
}

fn main() {}