Class LlmEndpointOptions

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

Typed options for . Bound from URI query parameters via reflection.

The set of accepted parameters is intentionally narrow — model, provider, version
and credentials must come from , not the URI.

public sealed class LlmEndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→LlmEndpointOptions

Inherited Members

Properties

Audit

Comma-separated audit tags expressed as key=value pairs (each

public string? Audit { get; set; }

BudgetCostUsd

Per-run cost ceiling in USD. Null or 0 = no ceiling. A positive value requires an

public decimal? BudgetCostUsd { get; set; }

BudgetInputTokens

Per-run input-token budget (summed across iterations). Null = no ceiling; 0 also means no

public int? BudgetInputTokens { get; set; }

BudgetOutputTokens

Per-run output-token budget (summed across iterations). Null or 0 = no ceiling.

public int? BudgetOutputTokens { get; set; }

CacheSystemPrompt

cacheSystemPrompt=true — ask the provider to cache the system prompt so repeated

public bool CacheSystemPrompt { get; set; }

ConnectionFactory

Name of the registered in the route registry.

[RegistryReference(typeof(LlmConnectionFactory))]
public string? ConnectionFactory { get; set; }

Conversation

Conversation identifier strategy. Recognised values:

public string Conversation { get; set; }

InitialBodyRef

Optional reference to a body template used by scheduled consumers.

public string? InitialBodyRef { get; set; }

MaxIterations

Maximum tool-loop iterations the agent engine may consume for one call.

public int MaxIterations { get; set; }

MaxTokens

Optional per-call max-tokens override.

public int? MaxTokens { get; set; }

PromptTemplateName

Prompt-template name persisted alongside every row of the run as

public string? PromptTemplateName { get; set; }

PromptTemplateVersion

Prompt-template version paired with .

public string? PromptTemplateVersion { get; set; }

PropagateToolHeaders

Comma-separated extra header names propagated from the agent exchange to

public string? PropagateToolHeaders { get; set; }

Redb

Optional name of the the LLM stores

public string? Redb { get; set; }

Schedule

Schedule expression for consumer mode (cron or fixed interval). When set on

public string? Schedule { get; set; }

Stream

Streaming mode (): stream=calls or stream=body; absent means no

public LlmStreamMode Stream { get; set; }

SystemPromptRef

Reference to a system-prompt template stored in the prompt registry

public string? SystemPromptRef { get; set; }

Temperature

Optional per-call temperature override.

public double? Temperature { get; set; }

Tools

Tool exposure filter. Recognised values:

public string? Tools { get; set; }

TopP

Optional per-call top-p override.

public double? TopP { get; set; }

User

Principal identifier expression for audit. Either a literal value

public string? User { get; set; }

Methods

OptionValueHint(string)

What each streaming mode does, added to the core refusal of a value that names none.

protected override string? OptionValueHint(string optionName)

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()