rig-derive 0.41.0

Internal crate that implements Rig derive macros.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![allow(unused_imports)]

use rig_agent::tool::ToolContext;
use rig_derive::rig_tool;

#[rig_tool]
fn immutable_context(
    #[rig(context)] context: &ToolContext,
) -> Result<(), rig_core::tool::ToolExecutionError> {
    let _ = context;
    Ok(())
}

fn main() {}