Class LlmRequest

Assembly: redb.Route.Llm.dll

Single completion request sent to a provider.

public sealed class LlmRequest

Inheritance

Object→LlmRequest

Properties

CacheSystemPrompt

Ask the provider to mark the system prompt as cacheable, so repeated turns re-read it

public bool CacheSystemPrompt { get; init; }

MaxTokens

Maximum output tokens.

public int? MaxTokens { get; init; }

Messages

Conversation history including the current user turn.

public IReadOnlyList<LlmMessage> Messages { get; init; }

ModelId

Model identifier (overrides the factory default when set).

public string? ModelId { get; init; }

StopSequences

Optional stop sequences.

public IReadOnlyList<string>? StopSequences { get; init; }

SystemPrompt

Optional system prompt.

public string? SystemPrompt { get; init; }

Temperature

Sampling temperature.

public double? Temperature { get; init; }

Tools

Tool capabilities exposed to the model. Empty = no tools.

public IReadOnlyList<LlmToolCapability> Tools { get; init; }

TopP

Top-p sampling parameter.

public double? TopP { get; init; }