Class LlmProducer

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

LLM producer. Treats the inbound exchange as a single user turn, runs the
agent engine to completion, and writes the assistant text into exchange.Out.Body.

public sealed class LlmProducer : ConnectableProducer, IProducer, IProcessor

Inheritance

Object→ConnectableProducer→LlmProducer

Implements

Inherited Members

Properties

ProducerEndpoint

The endpoint this producer sends to.

protected override IEndpoint ProducerEndpoint { get; }

ProducerName

Display name for logging (e.g. "http:https://api.example.com", "kafka:orders").

protected override string ProducerName { get; }

Methods

ConnectAsync(CancellationToken)

Set up connection/resources. Awaited by Start() to completion before IsStarted flips to

protected override Task ConnectAsync(CancellationToken ct)

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public override Task Process(IExchange exchange, CancellationToken ct = default)

Constructors