Skip to main content

dispatch

Function dispatch 

Source
pub async fn dispatch(
    state: &AppState,
    name: &str,
    args: Value,
    ct: &CancellationToken,
) -> Option<Result<Call, ErrorData>>
Expand description

Runs the named tool, or returns None when the name is not one of this module’s tools.