@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ax-llm/ax",
3
- "version": "17.0.0",
3
+ "version": "17.0.2",
4
4
  "type": "module",
5
5
  "description": "The best library to work with LLMs",
6
6
  "repository": {
@@ -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.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 `AxCodeInterpreter` interface:
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 { AxCodeInterpreter, AxCodeSession } from '@ax-llm/ax';
476
+ import type { AxCodeRuntime, AxCodeSession } from '@ax-llm/ax';
477
477
 
478
- class MyBrowserInterpreter implements AxCodeInterpreter {
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?: AxCodeInterpreter; // Preferred runtime key
511
- interpreter?: AxCodeInterpreter; // Legacy alias (deprecated)
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
- ### `AxCodeInterpreter`
517
+ ### `AxCodeRuntime`
518
518
 
519
519
  ```typescript
520
- interface AxCodeInterpreter {
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.0"
4
+ version: "17.0.2"
5
5
  ---
6
6
 
7
7
  # Ax Library (@ax-llm/ax) Usage Guide