Class StubProvider

Assembly: redb.Route.Llm.dll

Deterministic provider for tests, demos, and Phase-0 smoke. Echoes the last
user message back as an assistant text block, ending the turn without tool calls.

public sealed class StubProvider : ILlmProvider

Inheritance

Object→StubProvider

Implements

Properties

FixedReply

Optional fixed reply — when set, overrides the echo behaviour.

public string? FixedReply { get; init; }

ModelId

Model identifier this provider was configured with.

public string ModelId { get; }

ProviderId

Provider identifier ("anthropic", "openai", "stub", ...).

public string ProviderId { get; }

Methods

CompleteAsync(LlmRequest, CancellationToken)

Performs a single non-streaming completion call.

public Task<LlmResponse> CompleteAsync(LlmRequest request, CancellationToken ct = default)

Constructors

StubProvider(LlmConnectionFactory)

Creates a stub provider bound to a connection factory.