Agent skill
voltagent-core-reference
Install this agent skill to your Project
npx add-skill https://github.com/VoltAgent/skills/tree/main/skills/voltagent-core-reference
SKILL.md
VoltAgent Core Reference
Reference for the VoltAgent class in @voltagent/core.
Source files:
- packages/core/src/voltagent.ts
- packages/core/src/types.ts
Options Overview
VoltAgentOptions supports:
agents: Record ofAgentinstances to register.workflows: Record ofWorkfloworWorkflowChaininstances.memory: DefaultMemoryused for agents and workflows.agentMemory: DefaultMemoryfor agents (falls back tomemory).workflowMemory: DefaultMemoryfor workflows (falls back tomemory).toolRouting: GlobalToolRoutingConfigdefaults.triggers:VoltAgentTriggersConfighandlers.server: Server provider factory (for examplehonoServer()).serverless: Serverless provider factory for fetch runtimes.voltOpsClient: SharedVoltOpsClientinstance.observability:VoltAgentObservabilityinstance.logger: SharedLoggerinstance.mcpServers: Record of MCP servers or factories.a2aServers: Record of A2A servers or factories.checkDependencies: Set tofalseto skip dependency checks.
Deprecated options:
portautoStartcustomEndpointsenableSwaggerUI
Lifecycle Notes
- Registers agents and workflows on construction.
- Auto-starts the server if a server provider is supplied.
- Applies default memory to agents and workflows.
- Auto-configures VoltOps client from
VOLTAGENT_PUBLIC_KEYandVOLTAGENT_SECRET_KEYif not provided. - Initializes MCP and A2A servers and starts MCP transports after server start.
Methods
registerAgent(agent),registerAgents(agents)registerWorkflow(workflow),registerWorkflows(workflows)registerTrigger(name, config),registerTriggers(triggers)getAgent(id),getAgents(),getAgentCount()getWorkflow(id),getWorkflows(),getWorkflowCount()getObservability()startServer(),stopServer(),getServerInstance()serverless()to access the serverless providershutdown()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();
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
voltagent-docs-bundle
Look up VoltAgent documentation embedded in node_modules/@voltagent/core/docs for version-matched docs. Use for API signatures, guides, and examples.
create-voltagent
Skill for creating AI agent projects using the VoltAgent framework. Guide for CLI setup and manual bootstrapping.
voltagent-best-practices
VoltAgent architectural patterns and conventions. Covers agents vs workflows, project layout, memory, servers, and observability.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
Didn't find tool you were looking for?