File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ updates:
1515 directories :
1616 - ' /'
1717 - ' /agents/agent-mastra/'
18+ - ' /agents/agent-voltagent/'
1819 - ' /basic/cdk/'
1920 - ' /basic/app/'
2021 - ' /mpc/clients/langgraph-mpc-client/'
Original file line number Diff line number Diff line change 55 "main" : " index.js" ,
66 "scripts" : {
77 "dev" : " mastra dev" ,
8- "build" : " tsc && mastra build" ,
8+ "build" : " mastra build" ,
99 "lint" : " eslint" ,
1010 "lint-fix" : " eslint --fix"
1111 },
1616 "dependencies" : {
1717 "@ai-sdk/amazon-bedrock" : " ^2.2.11" ,
1818 "@ai-sdk/azure" : " ^1.3.24" ,
19- "@mastra/core" : " ^ 0.10.11" ,
19+ "@mastra/core" : " 0.10.11" ,
2020 "langfuse-vercel" : " ^3.38.4" ,
2121 "zod" : " ^3.25.76"
2222 },
2929 "eslint-import-resolver-typescript" : " ^4.4.4" ,
3030 "eslint-plugin-import" : " ^2.32.0" ,
3131 "eslint-plugin-promise" : " ^7.2.1" ,
32- "mastra" : " ^ 0.10.11" ,
32+ "mastra" : " 0.10.11" ,
3333 "tsx" : " ^4.20.3" ,
3434 "typescript" : " ^5.8.3" ,
3535 "typescript-eslint" : " ^8.36.0"
Original file line number Diff line number Diff line change 1+ # Dependencies
2+ node_modules
3+ .pnp
4+ .pnp.js
5+
6+ # Build outputs
7+ dist
8+ build
9+ .turbo
10+
11+ # Environment
12+ .env
13+ .env.local
14+ .env.development.local
15+ .env.test.local
16+ .env.production.local
17+
18+ # Logs
19+ logs
20+ * .log
21+ npm-debug.log *
22+ yarn-debug.log *
23+ yarn-error.log *
24+ pnpm-debug.log *
25+ lerna-debug.log *
26+
27+ # Cache
28+ .eslintcache
29+ .DS_Store
30+ * .tsbuildinfo
31+ .cache
32+
33+ # Editor directories and files
34+ .idea
35+ .vscode /*
36+ ! .vscode /extensions.json
37+ ! .vscode /settings.json
38+ * .suo
39+ * .ntvs *
40+ * .njsproj
41+ * .sln
42+ * .sw ?
43+
44+ # Test coverage
45+ coverage
46+ .nyc_output
47+
48+ # Yarn 2 non zero-install
49+ .yarn /*
50+ ! .yarn /patches
51+ ! .yarn /plugins
52+ ! .yarn /releases
53+ ! .yarn /sdks
54+ ! .yarn /versions
55+ .pnp. *
56+
57+ # Diagnostic reports (https://nodejs.org/api/report.html)
58+ report. [0-9 ]* . [0-9 ]* . [0-9 ]* . [0-9 ]* .json
59+
60+ # Runtime data
61+ pids
62+ * .pid
63+ * .seed
64+ * .pid.lock
65+
66+ # Directory for instrumented libs generated by jscoverage/JSCover
67+ lib-cov
68+
69+ # Coverage directory used by tools like istanbul
70+ coverage
71+ * .lcov
72+
73+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
74+ .grunt
75+
76+ # Bower dependency directory (https://bower.io/)
77+ bower_components
78+
79+ # node-waf configuration
80+ .lock-wscript
81+
82+ # Compiled binary addons (https://nodejs.org/api/addons.html)
83+ build /Release
84+
85+ # Dependency directories
86+ jspm_packages /
87+
88+ # Snowpack dependency directory (https://snowpack.dev/)
89+ web_modules /
90+
91+ # parcel-bundler cache (https://parceljs.org/)
92+ .parcel-cache
93+
94+ # Next.js build output
95+ .next
96+ out
97+
98+ # Nuxt.js build / generate output
99+ .nuxt
100+ dist
101+
102+ # Gatsby files
103+ .cache /
104+ # Comment in the public line in if your project uses Gatsby and not Next.js
105+ # https://nextjs.org/blog/next-9-1#public-directory-support
106+ # public
107+
108+ # vuepress build output
109+ .vuepress /dist
110+
111+ # vuepress v2.x temp and cache directory
112+ .temp
113+ .cache
114+
115+ # Docusaurus cache and generated files
116+ .docusaurus
117+
118+ # Serverless directories
119+ .serverless /
120+
121+ # FuseBox cache
122+ .fusebox /
123+
124+ # DynamoDB Local files
125+ .dynamodb /
126+
127+ # TernJS port file
128+ .tern-port
129+
130+ # Stores VSCode versions used for testing VSCode extensions
131+ .vscode-test
132+
133+ # yarn v2
134+ .yarn /cache
135+ .yarn /unplugged
136+ .yarn /build-state.yml
137+ .yarn /install-state.gz
138+ .pnp. *
139+
140+
141+ # NX
142+ .nx
143+
144+
145+ .voltagent
146+
147+ # Create VoltAgent App
148+ ! packages /create-voltagent-app /templates /base /.env
149+
150+ # cursor
151+ .cursor
Original file line number Diff line number Diff line change 1+ # agent-voltagent
2+
3+ An [ VoltAgent] ( https://github.com/vercel/voltagent ) application.
4+
5+ ## Getting Started
6+
7+ ### Prerequisites
8+
9+ - Node.js (v20 or newer)
10+ - npm, yarn, or pnpm
11+
12+ ### Installation
13+
14+ 1 . Clone this repository
15+ 2 . Install dependencies
16+
17+ ``` bash
18+ pnpm install
19+ ```
20+
21+ ### Development
22+
23+ Run the development server:
24+
25+ ``` bash
26+ pnpm dev
27+ ```
28+
29+ ## Features
30+
31+ This project uses VoltAgent, a framework for building AI agents with the following capabilities:
32+
33+ - ** Core** - The foundation for building and running AI agents
34+ - ** Vercel AI Provider** - Integration with Vercel AI SDK for LLM access
35+ - ** Custom Tools** - Add your own capabilities for your agents
36+
37+ ## Project Structure
38+
39+ ```
40+ .
41+ ├── src/
42+ │ └── index.ts # Main application entry point with agent definition
43+ ├── .voltagent/ # Auto-generated folder for agent memory
44+ ├── package.json
45+ ├── tsconfig.json
46+ └── README.md
47+ ```
48+
49+ ## License
50+
51+ MIT
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " agent-voltagent" ,
3+ "private" : true ,
4+ "keywords" : [
5+ " voltagent" ,
6+ " ai" ,
7+ " agent"
8+ ],
9+ "license" : " MIT" ,
10+ "author" : " " ,
11+ "type" : " module" ,
12+ "scripts" : {
13+ "build" : " tsc" ,
14+ "dev" : " tsx watch --env-file=.env ./src " ,
15+ "start" : " node dist/index.js" ,
16+ "volt" : " volt"
17+ },
18+ "dependencies" : {
19+ "@ai-sdk/amazon-bedrock" : " ^2.2.11" ,
20+ "@voltagent/cli" : " ^0.1.9" ,
21+ "@voltagent/core" : " ^0.1.58" ,
22+ "@voltagent/vercel-ai" : " ^0.1.13" ,
23+ "zod" : " 3.24.2"
24+ },
25+ "devDependencies" : {
26+ "@types/node" : " ^22.16.3" ,
27+ "tsx" : " ^4.20.3" ,
28+ "typescript" : " ^5.8.3"
29+ }
30+ }
Original file line number Diff line number Diff line change 1+ import { VoltAgent , Agent } from "@voltagent/core" ;
2+ import { VercelAIProvider } from "@voltagent/vercel-ai" ;
3+
4+ import { bedrock } from "@ai-sdk/amazon-bedrock" ;
5+
6+ const agent = new Agent ( {
7+ name : "agent-voltagent" ,
8+ instructions : "A helpful assistant that answers questions without using tools" ,
9+ llm : new VercelAIProvider ( ) ,
10+ model : bedrock ( 'us.amazon.nova-premier-v1:0' ) ,
11+ tools : [ ] ,
12+ } ) ;
13+
14+ new VoltAgent ( {
15+ agents : {
16+ agent,
17+ } ,
18+ } ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "compilerOptions" : {
3+ "target" : " ES2022" ,
4+ "module" : " NodeNext" ,
5+ "moduleResolution" : " NodeNext" ,
6+ "esModuleInterop" : true ,
7+ "forceConsistentCasingInFileNames" : true ,
8+ "strict" : true ,
9+ "outDir" : " dist" ,
10+ "skipLibCheck" : true
11+ },
12+ "include" : [" src" ],
13+ "exclude" : [" node_modules" , " dist" ]
14+ }
You can’t perform that action at this time.
0 commit comments