@voltagent/core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/dist/index.d.ts +2643 -0
- package/dist/index.js +5409 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +5366 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +44 -0
- package/src/agent/history/index.spec.ts +287 -0
- package/src/agent/history/index.ts +437 -0
- package/src/agent/history/types.ts +25 -0
- package/src/agent/hooks/index.spec.ts +118 -0
- package/src/agent/hooks/index.ts +68 -0
- package/src/agent/index.spec.ts +920 -0
- package/src/agent/index.ts +1311 -0
- package/src/agent/providers/base/index.ts +1 -0
- package/src/agent/providers/base/types.ts +368 -0
- package/src/agent/providers/index.ts +1 -0
- package/src/agent/subagent/index.spec.ts +242 -0
- package/src/agent/subagent/index.ts +288 -0
- package/src/agent/types.ts +314 -0
- package/src/events/index.spec.ts +69 -0
- package/src/events/index.ts +458 -0
- package/src/events/types.ts +45 -0
- package/src/index.ts +138 -0
- package/src/mcp/client/index.spec.ts +484 -0
- package/src/mcp/client/index.ts +323 -0
- package/src/mcp/configuration/index.spec.ts +550 -0
- package/src/mcp/configuration/index.ts +333 -0
- package/src/mcp/index.ts +3 -0
- package/src/mcp/types.ts +229 -0
- package/src/memory/in-memory/index.spec.ts +745 -0
- package/src/memory/in-memory/index.ts +519 -0
- package/src/memory/index.ts +9 -0
- package/src/memory/libsql/index.spec.ts +526 -0
- package/src/memory/libsql/index.ts +1012 -0
- package/src/memory/manager/index.spec.ts +846 -0
- package/src/memory/manager/index.ts +757 -0
- package/src/memory/types.ts +209 -0
- package/src/retriever/index.ts +8 -0
- package/src/retriever/retriever.spec.ts +91 -0
- package/src/retriever/retriever.ts +74 -0
- package/src/retriever/tools/index.spec.ts +97 -0
- package/src/retriever/tools/index.ts +48 -0
- package/src/retriever/types.ts +47 -0
- package/src/server/api.ts +730 -0
- package/src/server/index.ts +186 -0
- package/src/server/registry.ts +160 -0
- package/src/server/types.ts +35 -0
- package/src/tool/index.spec.ts +91 -0
- package/src/tool/index.ts +104 -0
- package/src/tool/manager/index.spec.ts +165 -0
- package/src/tool/manager/index.ts +163 -0
- package/src/types/npm-check.d.ts +34 -0
- package/src/types.ts +44 -0
- package/src/utils/createPrompt/index.spec.ts +103 -0
- package/src/utils/createPrompt/index.ts +41 -0
- package/src/utils/createPrompt/prompt.example.ts +60 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/node-utils.ts +44 -0
- package/src/utils/toolParser/index.spec.ts +200 -0
- package/src/utils/toolParser/index.ts +105 -0
- package/src/utils/update/index.ts +325 -0
- package/src/voice/index.ts +1 -0
- package/src/voice/types.ts +129 -0
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# @voltagent/core
|
|
2
|
+
|
|
3
|
+
Core package for the VoltAgent framework - a framework for building AI-powered agents.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
You can install the package via npm, yarn, or pnpm:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# npm
|
|
11
|
+
npm install @voltagent/core
|
|
12
|
+
|
|
13
|
+
# yarn
|
|
14
|
+
yarn add @voltagent/core
|
|
15
|
+
|
|
16
|
+
# pnpm
|
|
17
|
+
pnpm add @voltagent/core
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Basic Usage
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { log, initVoltAgent } from "@voltagent/core";
|
|
24
|
+
|
|
25
|
+
// Initialize the framework with debug mode
|
|
26
|
+
initVoltAgent({ debug: true });
|
|
27
|
+
|
|
28
|
+
// Use logging function
|
|
29
|
+
log("Application started");
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## API Reference
|
|
33
|
+
|
|
34
|
+
### `initVoltAgent(options?: VoltAgentOptions)`
|
|
35
|
+
|
|
36
|
+
Initializes the VoltAgent framework.
|
|
37
|
+
|
|
38
|
+
### `log(message: string, level?: LogLevel)`
|
|
39
|
+
|
|
40
|
+
Logs a message with the VoltAgent prefix.
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
MIT
|