1 2 3 4 5 6 7 8 9
use rig_derive::rig_tool; // A repeated `params(...)` key used to silently last-win; it must error. #[rig_tool(params(query = "first", query = "second"))] fn search(query: String) -> Result<String, rig_core::tool::ToolExecutionError> { Ok(query) } fn main() {}