@ax-llm/ax 17.0.0 → 17.0.2
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/index.cjs +60 -3
- package/index.cjs.map +1 -1
- package/index.d.cts +10 -6
- package/index.d.ts +10 -6
- package/index.global.js +94 -37
- package/index.global.js.map +1 -1
- package/index.js +60 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/ax-agent.md +8 -8
- package/skills/ax-llm.md +1 -1
package/package.json
CHANGED
package/skills/ax-agent.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ax-agent
|
|
3
3
|
description: This skill helps with building AxAgent-based agents using @ax-llm/ax. Use when the user asks about agent(), AxAgent, child agents, tool functions, smart model routing, RLM mode, stopping agents, or composing multi-agent hierarchies.
|
|
4
|
-
version: "17.0.
|
|
4
|
+
version: "17.0.2"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# AxAgent Guide (@ax-llm/ax)
|
|
@@ -470,12 +470,12 @@ In RLM mode, the agent gets a `codeInterpreter` tool. The LLM's typical workflow
|
|
|
470
470
|
|
|
471
471
|
### Custom Interpreters
|
|
472
472
|
|
|
473
|
-
The built-in `AxJSRuntime` uses Web Workers for sandboxed code execution. For other environments, implement the `
|
|
473
|
+
The built-in `AxJSRuntime` uses Web Workers for sandboxed code execution. For other environments, implement the `AxCodeRuntime` interface:
|
|
474
474
|
|
|
475
475
|
```typescript
|
|
476
|
-
import type {
|
|
476
|
+
import type { AxCodeRuntime, AxCodeSession } from '@ax-llm/ax';
|
|
477
477
|
|
|
478
|
-
class MyBrowserInterpreter implements
|
|
478
|
+
class MyBrowserInterpreter implements AxCodeRuntime {
|
|
479
479
|
readonly language = 'JavaScript';
|
|
480
480
|
|
|
481
481
|
createSession(globals?: Record<string, unknown>): AxCodeSession {
|
|
@@ -507,17 +507,17 @@ RLM mode does not support true streaming. When using `streamingForward`, RLM run
|
|
|
507
507
|
```typescript
|
|
508
508
|
interface AxRLMConfig {
|
|
509
509
|
contextFields: string[]; // Input fields holding long context
|
|
510
|
-
runtime?:
|
|
511
|
-
interpreter?:
|
|
510
|
+
runtime?: AxCodeRuntime; // Preferred runtime key
|
|
511
|
+
interpreter?: AxCodeRuntime; // Legacy alias (deprecated)
|
|
512
512
|
maxLlmCalls?: number; // Cap on sub-LM calls (default: 50)
|
|
513
513
|
subModel?: string; // Model for llmQuery sub-calls
|
|
514
514
|
}
|
|
515
515
|
```
|
|
516
516
|
|
|
517
|
-
### `
|
|
517
|
+
### `AxCodeRuntime`
|
|
518
518
|
|
|
519
519
|
```typescript
|
|
520
|
-
interface
|
|
520
|
+
interface AxCodeRuntime {
|
|
521
521
|
readonly language: string;
|
|
522
522
|
createSession(globals?: Record<string, unknown>): AxCodeSession;
|
|
523
523
|
}
|
package/skills/ax-llm.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ax-llm
|
|
3
3
|
description: This skill helps with using the @ax-llm/ax TypeScript library for building LLM applications. Use when the user asks about ax(), ai(), f(), s(), agent(), flow(), AxGen, AxAgent, AxFlow, signatures, streaming, or mentions @ax-llm/ax.
|
|
4
|
-
version: "17.0.
|
|
4
|
+
version: "17.0.2"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Ax Library (@ax-llm/ax) Usage Guide
|