shutdown() for graceful shutdown, shutdownTelemetry() for observability
Example
import { VoltAgent } from "@voltagent/core";
import { honoServer } from "@voltagent/server-hono";
const app = new VoltAgent({
agents: { agent },
workflows: { workflow },
server: honoServer(),
});
await app.startServer();
1---2name: voltagent-core-reference3description: VoltAgent Core Reference4---56# VoltAgent Core Reference78Reference for the VoltAgent class in `@voltagent/core`.910Source files:11- packages/core/src/voltagent.ts12- packages/core/src/types.ts1314---1516## Options Overview1718`VoltAgentOptions` supports:1920- `agents`: Record of `Agent` instances to register.21- `workflows`: Record of `Workflow` or `WorkflowChain` instances.22- `memory`: Default `Memory` used for agents and workflows.23- `agentMemory`: Default `Memory` for agents (falls back to `memory`).24- `workflowMemory`: Default `Memory` for workflows (falls back to `memory`).25- `toolRouting`: Global `ToolRoutingConfig` defaults.26- `triggers`: `VoltAgentTriggersConfig` handlers.27- `server`: Server provider factory (for example `honoServer()`).28- `serverless`: Serverless provider factory for fetch runtimes.29- `voltOpsClient`: Shared `VoltOpsClient` instance.30- `observability`: `VoltAgentObservability` instance.31- `logger`: Shared `Logger` instance.32- `mcpServers`: Record of MCP servers or factories.33- `a2aServers`: Record of A2A servers or factories.34- `checkDependencies`: Set to `false` to skip dependency checks.3536Deprecated options:37- `port`38- `autoStart`39- `customEndpoints`40- `enableSwaggerUI`4142---4344## Lifecycle Notes4546- Registers agents and workflows on construction.47- Auto-starts the server if a server provider is supplied.48- Applies default memory to agents and workflows.49- Auto-configures VoltOps client from `VOLTAGENT_PUBLIC_KEY` and `VOLTAGENT_SECRET_KEY` if not provided.50- Initializes MCP and A2A servers and starts MCP transports after server start.5152---5354## Methods5556- `registerAgent(agent)`, `registerAgents(agents)`57- `registerWorkflow(workflow)`, `registerWorkflows(workflows)`58- `registerTrigger(name, config)`, `registerTriggers(triggers)`59- `getAgent(id)`, `getAgents()`, `getAgentCount()`60- `getWorkflow(id)`, `getWorkflows()`, `getWorkflowCount()`61- `getObservability()`62- `startServer()`, `stopServer()`, `getServerInstance()`63- `serverless()` to access the serverless provider64- `shutdown()` for graceful shutdown, `shutdownTelemetry()` for observability6566---6768## Example6970```typescript71import { VoltAgent } from "@voltagent/core";72import { honoServer } from "@voltagent/server-hono";7374const app = new VoltAgent({75 agents: { agent },76 workflows: { workflow },77 server: honoServer(),78});7980await app.startServer();81```
Run npx skillmds@latest add pinkpixel-dev/voltagent-core-reference in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
VoltAgent Core Reference It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
pinkpixel-dev (@pinkpixel-dev) published this skill. Their other Agent Skills are listed on their SkillMD profile.