Path: redb-route/redb.Route.Llm/LlmComponent.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Llm/LlmComponent.cs
----
using redb.Route.Abstractions;
using redb.Route.Core;
namespace redb.Route.Llm;
///
/// LLM transport component for redb.Route.
/// Scheme: llm.
///
/// URI format: llm://<connectionFactoryName>?temperature=0.2&maxTokens=1024.
/// Producer/consumer behaviour is selected by From/To as in any other
/// connector — there is no separate llm-agent:// or llm-stream:// scheme.
///
///
public sealed class LlmComponent : ComponentBase
{
///
public override string Scheme => "llm";
///
public override IEndpoint CreateEndpoint(EndpointUri uri)
{
ArgumentNullException.ThrowIfNull(uri);
var options = new LlmEndpointOptions();
options.BindFromUri(uri.RawParameters);
options.Validate();
return new LlmEndpoint(uri, this, options);
}
}