Skip to main content

tool

Function tool 

Source
pub fn tool<'a, D: JsonSchema + DeserializeOwned, R, Fut: Future<Output = ControlFlow<R, String>>, F: FnMut(D) -> Fut>(
    name: &'static str,
    description: &'static str,
    invoke: F,
) -> impl Tool<R>