RedBase Documentation

Welcome to the RedBase documentation portal. Browse the API reference, explore code examples, and learn how to build with REDB.

API Reference

Browse the REDB API documentation. Select a namespace or type from the tree on the left, or click on items below.

Showing: redb.Route.Llm.Providers Show all

redb.Route.Llm.Providers

Classes

C AnthropicProvider Transport for Anthropic's Messages API (POST {baseUrl}/v1/messages).
C LlmContentBlock Base type for content blocks (text, tool-use, tool-result, thinking).
C LlmHttpErrors Turns a failed HTTP response into the right provider exception. One place, because the
C LlmMessage Single message in the conversation transcript sent to the provider.
C LlmRateLimitException Provider signalled rate limiting (HTTP 429). Distinct from
C LlmRequest Single completion request sent to a provider.
C LlmResponse Single completion response from a provider.
C LlmStreamChunk Single chunk yielded by . Non-final chunks have =
C LlmTextBlock Plain text block.
C LlmThinkingBlock Thinking / reasoning block returned by a provider that exposes its chain of thought —
C LlmTimeoutException A limit of the call to the model ran out ().
C LlmToolResultBlock Tool-result block sent back to the assistant on the next turn.
C LlmToolUseBlock Tool-use block emitted by the assistant — engine must dispatch the tool and
C LlmTransientException Transient provider failure that is safe to retry (HTTP 5xx, Anthropic's
C LlmUsage Token usage reported by the provider.
C OpenAiEmbeddingProvider Transport for any OpenAI-compatible embeddings endpoint
C OpenAiProvider Transport for any OpenAI-compatible Chat Completions endpoint
C OpenAiTranscriptionProvider Transport for any OpenAI-compatible speech endpoint
C ReplayProvider Deterministic backed by a JSON fixture on disk.
C StubProvider Deterministic provider for tests, demos, and Phase-0 smoke. Echoes the last

Interfaces

I IEmbeddingProvider Pure transport over an embeddings API — turns text into vectors. The sibling
I ILlmProvider Pure transport abstraction over an LLM API. Implementations are responsible
I ITranscriptionProvider Pure transport over a speech-to-text API — turns recorded audio into text. The

Structs

S AnthropicModelProfile Capability descriptor for an Anthropic model: which request fields the target
S TranscriptionRequest One recording to transcribe.
S TranscriptionResult What came back.

Enums

E AnthropicModelTier Contract generation of an Anthropic model, as it affects how a Messages-API
E AnthropicSamplingPolicy How the target model accepts the sampling knobs (temperature/top_p).
E LlmStopReason Reason the provider stopped generating.
E LlmTimeoutKind Which limit of a model call ran out.
E ReplayMode Mode for .