VALID_MEMORY_EMBEDDING_PROVIDERS (schemas/memory-storage.ts)

vellum-assistant · assistant/src/config/schemas/memory-storage.ts · typescript · MIT
ai, AI / Agents

Schema definitions for memory embedding providers and Qdrant config.

// Source: https://github.com/vellum-ai/vellum-assistant | License: MIT | Copyright 2025 Vellum AI
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from "zod";

export const VALID_MEMORY_EMBEDDING_PROVIDERS = [
  "auto",
  "local",
  "openai",
  "gemini",
  "ollama",
  "custom",
] as const;

const VALID_QDRANT_QUANTIZATION = ["scalar", "none"] as const;

export const MemoryEmbeddingsConfigSchema = z
  .object({
    required: z
      .boolean({ error: "memory.embeddings.required must be a boolean" })
      .default(true)
      .describe(
        "Whether embedding generation is required for memory to function (if false, memory works without embeddings)",
      ),
    provider: z
      .enum(VALID_MEMORY_EMBEDDING_PROVIDERS, {
        error: `memory.embeddings.pr

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key