Skip to main content

BoxToolService

Type Alias BoxToolService 

Source
pub type BoxToolService = BoxCloneService<ToolRequest, CallToolResult, Infallible>;
Expand description

A boxed, cloneable tool service with Error = Infallible.

This is the internal service type that tools use. Middleware errors are caught and converted to CallToolResult::error() responses, so the service never fails at the Tower level.

Aliased Typeยง

pub struct BoxToolService(/* private fields */);