@ax-llm/ax-tools 21.0.14 → 22.0.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 +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ npm install @ax-llm/ax-tools
|
|
|
34
34
|
### Basic MCP Stdio Transport
|
|
35
35
|
|
|
36
36
|
```typescript
|
|
37
|
-
import { AxMCPClient } from "@ax-llm/ax";
|
|
37
|
+
import { ai, AxMCPClient } from "@ax-llm/ax";
|
|
38
38
|
import { AxMCPStdioTransport } from "@ax-llm/ax-tools";
|
|
39
39
|
|
|
40
40
|
// Create a stdio transport for an MCP server
|
|
@@ -69,7 +69,7 @@ const transport = axCreateMCPStdioTransport({
|
|
|
69
69
|
Use `AxJSRuntime` from `@ax-llm/ax`:
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
|
-
import { AxJSRuntime, AxJSRuntimePermission } from "@ax-llm/ax";
|
|
72
|
+
import { ai, AxJSRuntime, AxJSRuntimePermission } from "@ax-llm/ax";
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
### Configuration Options
|
|
@@ -93,7 +93,7 @@ See `@ax-llm/ax` docs for `AxJSRuntimePermission`.
|
|
|
93
93
|
### Memory Server
|
|
94
94
|
|
|
95
95
|
```typescript
|
|
96
|
-
import {
|
|
96
|
+
import { ai, AxAgent, AxMCPClient } from "@ax-llm/ax";
|
|
97
97
|
import { AxMCPStdioTransport } from "@ax-llm/ax-tools";
|
|
98
98
|
|
|
99
99
|
// Initialize MCP client with memory server
|
|
@@ -114,7 +114,7 @@ const agent = new AxAgent({
|
|
|
114
114
|
});
|
|
115
115
|
|
|
116
116
|
// Use with AI
|
|
117
|
-
const ai =
|
|
117
|
+
const ai = ai({
|
|
118
118
|
name: "openai",
|
|
119
119
|
apiKey: process.env.OPENAI_APIKEY!,
|
|
120
120
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ax-llm/ax-tools",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ax tools package",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"keywords": [],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ax-llm/ax": "
|
|
16
|
+
"@ax-llm/ax": "22.0.0"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"**/*"
|