Class LlmConsumer

Namespace: redb.Route.Llm
Assembly: redb.Route.Llm.dll

LLM consumer. Fires the connection factory on a fixed interval and pushes
the agent response into the route pipeline as a normal exchange.

Supported schedule formats:
30s / 5m / 1h — fixed interval via .A cron expression — rejected with a redirect to From("quartz://...")
which already handles cron scheduling.

The initial user message comes from .
A leading # turns the value into a registry reference: ?initialBodyRef=#daily-brief
resolves daily-brief first via (latest version),
then via 's named-object registry. Any other route can
rewrite the same key at runtime, giving the scheduled agent a fresh prompt every tick
without touching the route definition. Plain values are used verbatim.

public sealed class LlmConsumer : IConsumer

Inheritance

Object→LlmConsumer

Implements

Properties

Endpoint

The endpoint this consumer is attached to (for diagnostics/logging).

public IEndpoint? Endpoint { get; }

Methods

Start(CancellationToken)

Starts consuming messages.

public Task Start(CancellationToken ct = default)

Stop(CancellationToken)

Stops consuming messages.

public Task Stop(CancellationToken ct = default)

Constructors