Method AddLlmToolsFromType<T>(IServiceCollection, Func<string, string>?)
Scans T for class-level and method-level
declarations and registers a
descriptor for each one. The caller is
responsible for mounting the actual route on the produced endpoint URI
(e.g. From("direct:llm.tools.weather").Process(...)) — this
helper only exposes descriptors to the model.
The endpoint URI for each tool is built via endpointUriFactory;
when omitted the default is direct:llm.tools.{toolName}.
public static IServiceCollection AddLlmToolsFromType<T>(this IServiceCollection services, Func<string, string>? endpointUriFactory = null)