Skip to main content

driver_source

Function driver_source 

Source
pub fn driver_source(id: &str) -> String
Expand description

The ToolOrigin::source of every tool driver id serves: driver:<id> (spec 3.2 §7.7).

A driver’s tools report their own source rather than the mcp:<server> of an MCP server the harness starts, so a manifest’s classes apply only to the tools the kernel supervises.

§Example

assert_eq!(adk_kernel::drivers::driver_source("email"), "driver:email");
assert_eq!(adk_kernel::drivers::driver_of("driver:email"), Some("email"));
assert_eq!(adk_kernel::drivers::driver_of("mcp:email"), None);