Anvia

Models

Choose and configure completion and embedding models for Anvia agents.

Anvia treats models as capabilities. A completion model can answer prompts and call tools. An embedding model can turn text into vectors for retrieval.

Provider clients create those capabilities, then agents, extractors, pipelines, and retrieval code consume them through provider-neutral interfaces.

import { AgentBuilder } from "@anvia/core";
import { OpenAIClient } from "@anvia/openai";

const openai = new OpenAIClient({ apiKey });
const model = openai.completionModel("gpt-5");

const agent = new AgentBuilder("support", model)
  .instructions("Answer clearly and ask for missing details.")
  .build();

Model Categories

CategoryUse it for
CompletionAgents, extractors, prompt steps, streaming, and tool calls
EmbeddingsRetrieval, document search, semantic routing, and vector stores
Compatible providersOpenAI-compatible APIs through OpenAIClient({ baseUrl, apiKey })
Vertex AIGemini through GeminiClient({ vertexai: true, project, location })

Providers

ProviderPage
OpenAIOpenAI Models
AnthropicAnthropic Models
Google GeminiGoogle Gemini Models
OpenAI-compatibleCompatible Provider Models