Class StubProvider
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
Implements
Properties
FixedReply
Optional fixed reply — when set, overrides the echo behaviour.
public string? FixedReply { get; init; }
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.