pub fn from_fn_simple<I, O, F, Fut>(
name: &str,
description: &str,
handler: F,
) -> AppResult<Box<dyn Callable>>Expand description
Convenience: create a tool from a simpler handler that returns a Serialize type.
The handler takes only the input (no Context) and returns AppResult<O>.
The output is automatically serialized to JSON.