Skip to main content

tool_task_support

Function tool_task_support 

Source
pub async fn tool_task_support(
    handler: &dyn DynToolHandler,
    name: &str,
    ctx: &Context<'_>,
) -> TaskSupport
Expand description

The task-augmentation support a tool declares (Tool.execution.taskSupport).

Defaults to Forbidden when the tool is unknown or declares nothing. Used to gate a task-augmented tools/call before creating the task. Shared by the stdio runtime and the HTTP adapters.