rig-derive 0.41.0

Internal crate that implements Rig derive macros.
Documentation
1
2
3
4
5
6
7
8
9
use rig_derive::rig_tool;

// A non-string description used to be silently dropped; it must error.
#[rig_tool(params(limit = 3))]
fn search(limit: i64) -> Result<i64, rig_core::tool::ToolExecutionError> {
    Ok(limit)
}

fn main() {}