Expand description
Composition layer — adapters bridging kernel ports into each other.
ToolBridge adapts a (DynamicToolSource, ToolDefinition)
pair into a plain Tool. It is the executor’s dynamic-dispatch
adapter (ToolExecutor::execute_with_limits wraps a dynamic call in a
bridge so it runs the same static path as a local tool) and the
canonical home of the ToolExecutionError → status mapping. Hosts that
prefer snapshot semantics (list once, register as static tools) reuse
the same bridge directly; for live catalogs prefer
ToolExecutor::register_dynamic.
Structs§
- Tool
Bridge - A single dynamic-source tool exposed through the plain
Toolinterface. The bridge routesexecutetoDynamicToolSource::invoke_with_store(the source de-namespaces the call; the host’s artifact store is forwarded for media ingest) and maps invoke errors onto structured results: a timeout or cancellation isUnknownOutcome(the call may have run server-side), an out-of-catalog name isRejected, unavailability and protocol failures areFailedwith a model-readable message. The bridge returns the recorded result only — what anUnknownOutcomeresult does next is the caller’s configuration (the executor resolves it; a standalone bridge consumer chooses).