Skip to main content

wrap_native_tool_interactive

Function wrap_native_tool_interactive 

Source
pub fn wrap_native_tool_interactive<T>(
    tool: T,
    workspace_root: PathBuf,
) -> ToolFacade<TypedToolCtx<InteractiveCtx, T>>
where T: Tool + Send + Sync + 'static,
Expand description

Wrap a concrete tool instance in an interactive CGP facade without erasing it to Arc<dyn Tool> first.

Prefer this path when the caller still owns the tool and does not need shared ownership.