Class RouteToolBridge

Assembly: redb.Route.Llm.Abstractions.dll

Bridges a fixed redb.Route endpoint into the LLM tool surface as an
. The engine forwards the model's JSON
input to on a linked child of the agent exchange,
inheriting its transaction scope, DI scope, properties and route id.
Headers are propagated by policy rather than inherited — see
.

public sealed class RouteToolBridge : ILlmToolDescriptor

Inheritance

Object→RouteToolBridge

Implements

Properties

Capability

Capability metadata the engine projects to the provider (name, description, input schema)

public LlmToolCapability Capability { get; }

EndpointUri

The fixed target endpoint URI this descriptor dispatches to (e.g. direct:order-lookup).

public string EndpointUri { get; }

Methods

BuildEndpointUri(string, IExchange)

Computes the endpoint URI to which the engine forwards the tool call.

public string BuildEndpointUri(string inputJson, IExchange parentExchange)

FromAttribute<THandler>(string)

Creates a bridge descriptor from a class decorated with .

public static RouteToolBridge FromAttribute<THandler>(string endpointUri)

Constructors

RouteToolBridge(LlmToolCapability, string)

Creates a bridge descriptor that forwards calls to endpointUri.