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 (an invocation binding wraps a dynamic definition in a
bridge so it runs the same path as a local tool) and the
canonical home of the ToolExecutionError → status mapping. Hosts that
prefer snapshot semantics (describe once, register as static tools) reuse
the same bridge directly, passing each tool’s hints to
ToolBridge::with_hints; for live catalogs prefer
ToolExecutor::register_dynamic.
Structs§
- Tool
Bridge - A single dynamic-source tool exposed through the plain
Toolinterface. The bridge routesexecutetoDynamicToolSource::invoke(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 caller’s responsibility (the runner commits the complete batch and stops; a standalone bridge consumer chooses how to use its result).