@axlsdk/axl 0.25.0 → 0.25.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/README.md CHANGED
@@ -105,7 +105,7 @@ import { lookupOrder } from '../tools/db.js';
105
105
 
106
106
  export const supportAgent = agent({
107
107
  name: 'support',
108
- model: 'openai-responses:gpt-5.5',
108
+ model: 'openai-responses:gpt-6-sol',
109
109
  system: 'You are a customer support agent. Use tools to look up order information.',
110
110
  tools: [lookupOrder],
111
111
  });
@@ -206,13 +206,12 @@ import { agent } from '@axlsdk/axl';
206
206
 
207
207
  const researcher = agent({
208
208
  name: 'researcher',
209
- model: 'openai-responses:gpt-5.5',
209
+ model: 'openai-responses:gpt-6-sol',
210
210
  system: 'You are a research assistant.',
211
211
  tools: [calculator],
212
212
  effort: 'high',
213
213
  maxTurns: 10,
214
214
  timeout: '30s',
215
- temperature: 0.7,
216
215
  version: 'v1.2',
217
216
  });
218
217
  ```
@@ -223,8 +222,8 @@ Dynamic model and system prompt selection:
223
222
  const dynamicAgent = agent({
224
223
  model: (ctx) =>
225
224
  ctx.metadata?.tier === 'premium'
226
- ? 'openai-responses:gpt-5.5'
227
- : 'openai-responses:gpt-5-nano',
225
+ ? 'openai-responses:gpt-6-sol'
226
+ : 'openai-responses:gpt-6-luna',
228
227
  system: (ctx) => `You are a ${ctx.metadata?.role ?? 'general'} assistant.`,
229
228
  });
230
229
  ```
@@ -263,7 +262,7 @@ for precedence, nested asks, and provider timing details.
263
262
 
264
263
  ```typescript
265
264
  const router = agent({
266
- model: 'openai-responses:gpt-5-mini',
265
+ model: 'openai-responses:gpt-6-luna',
267
266
  system: 'Route to the right specialist.',
268
267
  handoffs: (ctx) => {
269
268
  const base = [
@@ -298,7 +297,7 @@ The `effort` parameter provides a unified way to control reasoning depth across
298
297
  ```typescript
299
298
  // Simple levels — works on any provider
300
299
  const reasoner = agent({
301
- model: 'anthropic:claude-opus-4-7',
300
+ model: 'anthropic:claude-opus-5-5',
302
301
  system: 'You are a careful analyst.',
303
302
  effort: 'high', // 'none' | 'low' | 'medium' | 'high' | 'xhigh' | 'max'
304
303
  });
@@ -402,8 +401,8 @@ To observe events between `ctx.ask()` calls — e.g., streaming `partial_object`
402
401
  // compiles standalone.
403
402
  const outlineSchema = z.object({ outline: z.array(z.string()) });
404
403
  const draftSchema = z.object({ draft: z.string() });
405
- const planner = agent({ model: 'openai:gpt-4o', system: 'Plan an outline.' });
406
- const writer = agent({ model: 'openai:gpt-4o', system: 'Write a draft.' });
404
+ const planner = agent({ model: 'openai-responses:gpt-6-sol', system: 'Plan an outline.' });
405
+ const writer = agent({ model: 'openai-responses:gpt-6-sol', system: 'Write a draft.' });
407
406
 
408
407
  const wf = workflow({
409
408
  name: 'two-step',
@@ -631,7 +630,7 @@ const containsPII = (text: string) => /\b\d{3}-\d{2}-\d{4}\b/.test(text);
631
630
  const isOffTopic = (text: string) => !text.toLowerCase().includes('support');
632
631
 
633
632
  const safe = agent({
634
- model: 'openai-responses:gpt-5.5',
633
+ model: 'openai-responses:gpt-6-sol',
635
634
  system: 'You are a helpful assistant.',
636
635
  guardrails: {
637
636
  input: async (prompt, ctx) => {
@@ -786,7 +785,7 @@ const session = runtime.session('user-123', {
786
785
  history: {
787
786
  maxMessages: 100,
788
787
  summarize: true,
789
- summaryModel: 'openai-responses:gpt-5-mini',
788
+ summaryModel: 'openai-responses:gpt-6-luna',
790
789
  },
791
790
  persist: true,
792
791
  });
@@ -826,10 +825,10 @@ import {
826
825
  Four native adapters using the `provider:model` URI scheme (plus the OpenAI-compatible presets above):
827
826
 
828
827
  ```
829
- openai-responses:gpt-5.5 # OpenAI Responses API (preferred over Chat Completions)
830
- openai:gpt-5.4 # OpenAI Chat Completions
831
- anthropic:claude-opus-4-8 # Anthropic (supports effort: 'xhigh' and 'max')
832
- google:gemini-3.1-pro-preview # Google Gemini
828
+ openai-responses:gpt-6-sol # OpenAI Responses API (preferred over Chat Completions)
829
+ openai:gpt-6-sol # OpenAI Chat Completions (text; use Responses for tools)
830
+ anthropic:claude-sonnet-5-5 # Anthropic (also claude-haiku-5-5, claude-opus-5-5)
831
+ google:gemini-3.8-flash # Google Gemini
833
832
  ```
834
833
 
835
834
  See [docs/providers.md](../../docs/providers.md) for the full model list including reasoning models.