Interface ILlmToolDescriptor
A tool exposable to the LLM. Implementations are declarative — they carry the
shown to the model and a
hook that the engine uses to dispatch the call onto a redb.Route endpoint via
IProducerTemplate.RequestBody.
Descriptors are typically registered as DI singletons (they are stateless metadata).
Per-call state is not carried by the descriptor: the engine dispatches the tool on a
linked child of the agent exchange, so the parent's Properties,
RouteId, DI scope (hence every scoped service the conversation resolved) and
ambient transaction are the tool's as well.
Headers are the exception — they are filtered, not inherited. A tool receives
the conversation id, both correlation-id spellings, the run's resolved principal
(llm.user.id) and its resolved audit tags (llm.audit.*), plus whatever
the route author named via .PropagateToolHeaders(...). The inbound transport's
header set is never forwarded implicitly. See ToolHeaderPolicy in
redb.Route.Llm.
public interface ILlmToolDescriptor
Properties
Capability
Capability metadata the engine projects to the provider (name, description, input schema)
LlmToolCapability Capability { get; }
Methods
BuildEndpointUri(string, IExchange)
Computes the endpoint URI to which the engine forwards the tool call.
string BuildEndpointUri(string inputJson, IExchange parentExchange)