Class LlmTool
Homeless static builder for . Use when the
tool descriptor is authored outside of an
(e.g. registered directly in DI via services.AddLlmTool(LlmTool.Define(...).Build())),
or when the same descriptor needs to be shared across multiple routes.
Pairs with the fluent route-level DSL .AsLlmTool(name) (see
) and the attribute-driven
form. All three styles produce the
same contract.
var tool = LlmTool.Define("get_order")
.EndpointUri("direct:order-lookup")
.Description("Returns order details by id.")
.Input("""{"type":"object","properties":{"orderId":{"type":"string"}},"required":["orderId"]}""")
.SideEffect(ToolSideEffect.ReadOnly)
.Cost(ToolCostClass.Cheap)
.Build();
services.AddLlmTool(tool);
public static class LlmTool
Inheritance
Methods
Define(string)
Starts a fluent definition for a tool descriptor with the given name.
public static LlmToolStaticBuilder Define(string name)