rig-derive 0.42.0

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

// `qurey` does not name a parameter; a typo must not silently advertise a
// nonexistent required field.
#[rig_tool(required(qurey))]
fn search(query: String) -> Result<String, rig_core::tool::ToolExecutionError> {
    Ok(query)
}

fn main() {}