Anvia
Core

Core Reference

Public exports from @anvia/core and its subpaths.

@anvia/core is the provider-neutral runtime package. The root entry point re-exports the public APIs from each core subpath.

Import Paths

Import pathArea
@anvia/coreRoot export that re-exports the public core subpaths
@anvia/core/agentAgents, prompt requests, hooks, approvals, and run events
@anvia/core/completionProvider-facing completion messages, requests, responses, usage, and model contracts
@anvia/core/toolTool definitions, registries, tool sets, serialization, and tool errors
@anvia/core/pipelineTyped pipelines and batch execution
@anvia/core/extractorStructured extraction helpers
@anvia/core/embeddingsEmbedding models, documents, and vector math
@anvia/core/vector-storeIn-memory vector store, vector filters, and vector search tools
@anvia/core/mcpMCP connection helpers and normalized MCP types
@anvia/core/observabilityObserver interfaces, trace options, and score contracts
@anvia/core/skillsSkill loading, local skill discovery, validation, and generated skill tools
@anvia/core/streamingConversion from async iterables to web ReadableStream

Root Export Notes

The root @anvia/core export is the convenient application import path. Subpaths are useful when provider packages or libraries need tighter import boundaries.

import { AgentBuilder, createTool, Message, PipelineBuilder } from "@anvia/core";
import type { CompletionModel } from "@anvia/core/completion";

For workflow guidance, start with Core Concepts.