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.Engine.Storage Show all

redb.Route.Llm.Engine.Storage

Classes

C ApprovalRecord An approval decision joined with the request that triggered it.
C BatchJobRecord A persisted batch-submission record.
C ConversationMessage A persisted conversation message with its tree placement and metadata.
C ConversationMessageMeta Queryable metadata that lives on the message node — hoisted from
C EvalIterationRecord Per-iteration metric inside an .
C EvalRunRecord An evaluation run snapshot.
C InMemoryApprovalStore In-memory approval store — sufficient for tests and demos.
C InMemoryBatchStore In-memory — entries live only for the process lifetime.
C InMemoryConversationStore In-memory conversation store — suitable for unit tests and demos.
C InMemoryCostBudgetStore In-memory cost/token store. Replace with the redb-backed implementation in production.
C InMemoryEvalRunStore In-memory eval run store — used by unit tests; production swaps in the redb implementation.
C InMemoryKnowledgeStore In-memory knowledge store — does an O(N) cosine-similarity scan on every
C InMemoryPromptTemplateRegistry In-memory registry — registered templates live only for the process lifetime.
C InMemoryToolCacheStore In-memory tool cache. TTL is honoured lazily — entries are dropped on read.
C InMemoryToolIdempotencyStore In-memory idempotency store backed by a thin
C KnowledgeChunk A single embedded knowledge chunk.
C KnowledgeSearchResult A chunk returned by , with score.
C PromptTemplate A versioned prompt template.
C ToolIdempotencyReservation Outcome of .

Interfaces

I IApprovalStore Persists approval decisions for audit and replay. Every call answered by
I IBatchStore Tracks async-batch jobs submitted to LLM providers (Anthropic Message
I IConversationStore Persists conversation transcripts so that an agent run can be resumed,
I ICostBudgetStore Persists running cost / token usage per conversation so that an
I IEvalRunStore Persists the outcome of a recorded evaluation run. Used by the eval harness
I IKnowledgeStore Persists embedding-backed knowledge chunks for retrieval-augmented agent
I IPromptTemplateRegistry Resolves a named prompt template into the actual system / user text the
I IToolCacheStore Caches deterministic / read-only tool outputs by a content-hash key so repeated calls can skip
I IToolIdempotencyStore Tracks tool invocations so that retried or duplicated tool calls produce a