Skip to content

Capabilities ​

Core is split into focused package entry points. The root export contains common authoring APIs; advanced and environment-specific APIs remain on subpaths.

CapabilityEntry pointPackage responsibility
Agents@anvia/core/agentBounded model/tool loops, sessions, event stores, dynamic context, agent-as-tool
Completions@anvia/core/completionProvider-neutral requests, streams, messages, usage, documents, structured parsing
Tools@anvia/core/toolZod validation, approvals, middleware, tool sets, dynamic discovery, result normalization
Hooks@anvia/core/hooksTyped run, turn, completion, and tool interception and control
Guardrails@anvia/core/guardrailsInput/final-output allow, block, and rewrite policies
Memory@anvia/core/memoryConversation store, inspection, save policy, durable compaction contracts
Retrieval@anvia/core/embeddings, @anvia/core/vector-storeDense/sparse embedding helpers, filters, in-memory search, search-tool contracts
Pipelines@anvia/core/pipelineTyped composition, parallel branches, batch execution, graphs, run observers
Extraction@anvia/core/extractorAgent-backed schema extraction with retry support
Media@anvia/core/image-generation, audio-generation, transcriptionProvider-neutral request builders and model interfaces
MCP and skills@anvia/core/mcp, @anvia/core/skillsMCP transports/tool discovery and validated local skill loading
Observability@anvia/core/observabilityRun, generation, tool, trace, and streaming observer contracts
Evaluations@anvia/core/evalsCases, metrics, suites, reporters, traces, CLI results, cost/usage totals
UI protocol@anvia/core/uiUI messages, stream events, resume cursors, Core/UI conversion

Capability boundaries ​

Core does not call a model without an injected model implementation. It does not ship durable database or vector infrastructure, authenticate users, authorize tools, schedule background jobs, or host a browser UI.

Provider support also varies. A completion adapter may not implement embeddings, images, audio, transcription, model listing, provider tools, or every structured-output feature. Use the provider capability matrix before assuming parity.

Some entry points have additional runtime requirements. MCP stdio, local skill loading, and file/PDF loading belong on a server with process or filesystem access. ReadableStream helpers need Web Streams support.

For exact exports, see the API reference. For composition guidance, use architecture and patterns.

Built for Anvia.