agentfootprint 2.11.1 → 2.11.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.
Files changed (67) hide show
  1. package/dist/core/Agent.js +81 -1238
  2. package/dist/core/Agent.js.map +1 -1
  3. package/dist/core/agent/AgentBuilder.js +489 -0
  4. package/dist/core/agent/AgentBuilder.js.map +1 -0
  5. package/dist/core/agent/buildAgentChart.js +227 -0
  6. package/dist/core/agent/buildAgentChart.js.map +1 -0
  7. package/dist/core/agent/buildToolRegistry.js +115 -0
  8. package/dist/core/agent/buildToolRegistry.js.map +1 -0
  9. package/dist/core/agent/stages/breakFinal.js +28 -0
  10. package/dist/core/agent/stages/breakFinal.js.map +1 -0
  11. package/dist/core/agent/stages/callLLM.js +129 -0
  12. package/dist/core/agent/stages/callLLM.js.map +1 -0
  13. package/dist/core/agent/stages/iterationStart.js +24 -0
  14. package/dist/core/agent/stages/iterationStart.js.map +1 -0
  15. package/dist/core/agent/stages/prepareFinal.js +45 -0
  16. package/dist/core/agent/stages/prepareFinal.js.map +1 -0
  17. package/dist/core/agent/stages/route.js +36 -0
  18. package/dist/core/agent/stages/route.js.map +1 -0
  19. package/dist/core/agent/stages/seed.js +95 -0
  20. package/dist/core/agent/stages/seed.js.map +1 -0
  21. package/dist/core/agent/stages/toolCalls.js +250 -0
  22. package/dist/core/agent/stages/toolCalls.js.map +1 -0
  23. package/dist/esm/core/Agent.js +83 -1239
  24. package/dist/esm/core/Agent.js.map +1 -1
  25. package/dist/esm/core/agent/AgentBuilder.js +485 -0
  26. package/dist/esm/core/agent/AgentBuilder.js.map +1 -0
  27. package/dist/esm/core/agent/buildAgentChart.js +223 -0
  28. package/dist/esm/core/agent/buildAgentChart.js.map +1 -0
  29. package/dist/esm/core/agent/buildToolRegistry.js +111 -0
  30. package/dist/esm/core/agent/buildToolRegistry.js.map +1 -0
  31. package/dist/esm/core/agent/stages/breakFinal.js +24 -0
  32. package/dist/esm/core/agent/stages/breakFinal.js.map +1 -0
  33. package/dist/esm/core/agent/stages/callLLM.js +125 -0
  34. package/dist/esm/core/agent/stages/callLLM.js.map +1 -0
  35. package/dist/esm/core/agent/stages/iterationStart.js +20 -0
  36. package/dist/esm/core/agent/stages/iterationStart.js.map +1 -0
  37. package/dist/esm/core/agent/stages/prepareFinal.js +41 -0
  38. package/dist/esm/core/agent/stages/prepareFinal.js.map +1 -0
  39. package/dist/esm/core/agent/stages/route.js +32 -0
  40. package/dist/esm/core/agent/stages/route.js.map +1 -0
  41. package/dist/esm/core/agent/stages/seed.js +91 -0
  42. package/dist/esm/core/agent/stages/seed.js.map +1 -0
  43. package/dist/esm/core/agent/stages/toolCalls.js +246 -0
  44. package/dist/esm/core/agent/stages/toolCalls.js.map +1 -0
  45. package/dist/types/core/Agent.d.ts +5 -333
  46. package/dist/types/core/Agent.d.ts.map +1 -1
  47. package/dist/types/core/agent/AgentBuilder.d.ts +348 -0
  48. package/dist/types/core/agent/AgentBuilder.d.ts.map +1 -0
  49. package/dist/types/core/agent/buildAgentChart.d.ts +74 -0
  50. package/dist/types/core/agent/buildAgentChart.d.ts.map +1 -0
  51. package/dist/types/core/agent/buildToolRegistry.d.ts +62 -0
  52. package/dist/types/core/agent/buildToolRegistry.d.ts.map +1 -0
  53. package/dist/types/core/agent/stages/breakFinal.d.ts +23 -0
  54. package/dist/types/core/agent/stages/breakFinal.d.ts.map +1 -0
  55. package/dist/types/core/agent/stages/callLLM.d.ts +54 -0
  56. package/dist/types/core/agent/stages/callLLM.d.ts.map +1 -0
  57. package/dist/types/core/agent/stages/iterationStart.d.ts +16 -0
  58. package/dist/types/core/agent/stages/iterationStart.d.ts.map +1 -0
  59. package/dist/types/core/agent/stages/prepareFinal.d.ts +20 -0
  60. package/dist/types/core/agent/stages/prepareFinal.d.ts.map +1 -0
  61. package/dist/types/core/agent/stages/route.d.ts +19 -0
  62. package/dist/types/core/agent/stages/route.d.ts.map +1 -0
  63. package/dist/types/core/agent/stages/seed.d.ts +54 -0
  64. package/dist/types/core/agent/stages/seed.d.ts.map +1 -0
  65. package/dist/types/core/agent/stages/toolCalls.d.ts +50 -0
  66. package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -0
  67. package/package.json +1 -1
@@ -18,13 +18,15 @@ import type { CachePolicy, CacheStrategy } from '../cache/types.js';
18
18
  import { type RunnerPauseOutcome } from './pause.js';
19
19
  import type { MemoryDefinition } from '../memory/define.types.js';
20
20
  import type { Injection } from '../lib/injection-engine/types.js';
21
- import { type OutputFallbackOptions, type ResolvedOutputFallback } from './outputFallback.js';
21
+ import { type ResolvedOutputFallback } from './outputFallback.js';
22
22
  import { type AgentRunCheckpoint } from './runCheckpoint.js';
23
- import { type OutputSchemaOptions, type OutputSchemaParser } from './outputSchema.js';
23
+ import { type OutputSchemaParser } from './outputSchema.js';
24
24
  import { RunnerBase } from './RunnerBase.js';
25
- import type { Tool, ToolRegistryEntry } from './tools.js';
25
+ import type { ToolRegistryEntry } from './tools.js';
26
26
  import type { ToolProvider } from '../tool-providers/types.js';
27
27
  import type { AgentInput, AgentOptions, AgentOutput } from './agent/types.js';
28
+ import { AgentBuilder } from './agent/AgentBuilder.js';
29
+ export { AgentBuilder };
28
30
  export type { AgentInput, AgentOptions, AgentOutput };
29
31
  export declare class Agent extends RunnerBase<AgentInput, AgentOutput> {
30
32
  readonly name: string;
@@ -243,334 +245,4 @@ export declare class Agent extends RunnerBase<AgentInput, AgentOutput> {
243
245
  private finalizeResult;
244
246
  private buildChart;
245
247
  }
246
- /**
247
- * Fluent builder. `tool()` accepts any Tool<TArgs, TResult> and registers
248
- * it by its schema.name. Duplicate names throw at build time.
249
- */
250
- export declare class AgentBuilder {
251
- private readonly opts;
252
- private systemPromptValue;
253
- /**
254
- * Cache policy for the base system prompt. Set via the optional
255
- * 2nd argument to `.system(text, { cache })`. Default `'always'` —
256
- * the base prompt is stable per-turn and an ideal cache anchor.
257
- */
258
- private systemPromptCachePolicy;
259
- /**
260
- * Global cache kill switch. Set via `Agent.create({ caching: 'off' })`
261
- * (handled in `AgentOptions` propagation). Defaults to `false`
262
- * (caching enabled). When `true`, the CacheGate decider routes to
263
- * `'no-markers'` every iteration regardless of other rules.
264
- */
265
- private cachingDisabledValue;
266
- /**
267
- * Optional explicit CacheStrategy override. Default: undefined,
268
- * which means the agent auto-resolves from
269
- * `getDefaultCacheStrategy(provider.name)` at construction. Power
270
- * users override here for custom backends or test mocks.
271
- */
272
- private cacheStrategyOverride?;
273
- private readonly registry;
274
- private readonly injectionList;
275
- private readonly memoryList;
276
- /**
277
- * Optional terminal contract — see `outputSchema()`. Stored on the
278
- * builder, propagated to the Agent at `.build()` time.
279
- */
280
- private outputSchemaParser?;
281
- /** 3-tier output fallback chain — set via `.outputFallback({...})`.
282
- * Optional; absent = current throw-on-validation-failure behavior. */
283
- private outputFallbackCfg?;
284
- /**
285
- * Optional `ToolProvider` set via `.toolProvider()`. Propagated to
286
- * the Agent's Tools slot subflow + tool-call dispatcher; consulted
287
- * per iteration so dynamic chains (`gatedTools`, `skillScopedTools`)
288
- * react to current activation state.
289
- */
290
- private toolProviderRef?;
291
- /**
292
- * Optional override for `AgentOptions.maxIterations`. When set via
293
- * the `.maxIterations()` builder method, takes precedence over the
294
- * value passed to `Agent.create({ maxIterations })`.
295
- */
296
- private maxIterationsOverride?;
297
- /**
298
- * Recorders collected via `.recorder()`. Attached to the built Agent
299
- * before `build()` returns (each via `agent.attach(rec)`).
300
- */
301
- private readonly recorderList;
302
- private appNameValue;
303
- private commentaryOverrides;
304
- private thinkingOverrides;
305
- constructor(opts: AgentOptions);
306
- /**
307
- * Set the base system prompt.
308
- *
309
- * @param prompt - The system prompt text. Stable per-turn.
310
- * @param options - Optional config. `cache` controls how the
311
- * CacheDecision subflow treats this prompt block:
312
- * - `'always'` (default) — cache the base prompt as a stable
313
- * prefix anchor. Highest cache-hit rate; recommended for
314
- * production agents whose system prompt rarely changes.
315
- * - `'never'` — skip caching. Use if the prompt contains volatile
316
- * content (timestamps, per-request user IDs).
317
- * - `'while-active'` — semantically equivalent to `'always'` for
318
- * the base prompt (it's always active by definition).
319
- * - `{ until }` — conditional invalidation (e.g., flush after iter 5).
320
- */
321
- system(prompt: string, options?: {
322
- readonly cache?: CachePolicy;
323
- }): this;
324
- tool<TArgs, TResult>(tool: Tool<TArgs, TResult>): this;
325
- /**
326
- * Register many tools at once. Convenience for tool sources that
327
- * return a list (e.g., `await mcpClient(...).tools()`). Each tool
328
- * is registered via `.tool()` so duplicate-name validation still
329
- * fires per-entry.
330
- */
331
- tools(tools: ReadonlyArray<Tool>): this;
332
- /**
333
- * Wire a chainable `ToolProvider` (from `agentfootprint/tool-providers`)
334
- * as the agent's per-iteration tool source.
335
- *
336
- * The provider is consulted EVERY iteration via `provider.list(ctx)`
337
- * with `ctx = { iteration, activeSkillId, identity }`. Tools the
338
- * provider emits flow into the Tools slot alongside any static
339
- * tools registered via `.tool()` / `.tools()`. The tool-call
340
- * dispatcher also consults the provider so dynamic chains
341
- * (`gatedTools`, `skillScopedTools`) dispatch correctly when their
342
- * visible-set changes mid-turn.
343
- *
344
- * Throws if called more than once on the same builder (avoids
345
- * silent override surprises).
346
- *
347
- * @example Permission-gated baseline
348
- * import { gatedTools, staticTools } from 'agentfootprint/tool-providers';
349
- * import { PermissionPolicy } from 'agentfootprint/security';
350
- *
351
- * const policy = PermissionPolicy.fromRoles({
352
- * readonly: ['lookup', 'list_skills', 'read_skill'],
353
- * admin: ['lookup', 'list_skills', 'read_skill', 'delete'],
354
- * }, 'readonly');
355
- *
356
- * const provider = gatedTools(
357
- * staticTools(allTools),
358
- * (toolName) => policy.isAllowed(toolName),
359
- * );
360
- *
361
- * const agent = Agent.create({ provider: llm, model })
362
- * .system('You answer.')
363
- * .toolProvider(provider)
364
- * .build();
365
- */
366
- toolProvider(provider: ToolProvider): this;
367
- /**
368
- * Override the ReAct iteration cap set via `Agent.create({
369
- * maxIterations })`. Convenience for builder-style code that prefers
370
- * fluent setters over constructor opts. Last call wins.
371
- *
372
- * Throws if `n` is not a positive integer or exceeds the hard cap
373
- * (`clampIterations`'s upper bound).
374
- */
375
- maxIterations(n: number): this;
376
- /**
377
- * Attach a footprintjs `CombinedRecorder` to the built Agent. Wired
378
- * via `agent.attach(rec)` immediately after construction, so the
379
- * recorder sees every event from the very first run.
380
- *
381
- * Equivalent to calling `agent.attach(rec)` post-build; the builder
382
- * method is a convenience for codebases that prefer fully-fluent
383
- * agent assembly. Multiple recorders are supported (each gets its
384
- * own `attach()` call).
385
- */
386
- recorder(rec: import('footprintjs').CombinedRecorder): this;
387
- /**
388
- * Set the agent's display name — substituted as `{{appName}}` in
389
- * commentary + thinking templates. Same place to brand a tenant
390
- * ("Acme Bot"), distinguish multi-agent roles ("Triage" vs
391
- * "Reviewer"), or localize ("Asistente"). Default: `'Chatbot'`.
392
- */
393
- appName(name: string): this;
394
- /**
395
- * Override agentfootprint's bundled commentary templates. Spread on
396
- * top of `defaultCommentaryTemplates`; missing keys fall back. Same
397
- * `Record<string, string>` shape with `{{vars}}` substitution as
398
- * the bundled defaults — see `defaultCommentaryTemplates` for the
399
- * full key list.
400
- *
401
- * Use cases: i18n (`'agent.turn_start': 'El usuario...'`), brand
402
- * voice ("You: {{userPrompt}}"), per-tenant customization.
403
- */
404
- commentaryTemplates(templates: Readonly<Record<string, string>>): this;
405
- /**
406
- * Override agentfootprint's bundled thinking templates. Same
407
- * contract shape as commentary; different vocabulary — first-person
408
- * status the chat bubble shows mid-call. Per-tool overrides go via
409
- * `tool.<toolName>` keys (e.g., `'tool.weather': 'Looking up the
410
- * weather…'`). See `defaultThinkingTemplates` for the full key list.
411
- */
412
- thinkingTemplates(templates: Readonly<Record<string, string>>): this;
413
- /**
414
- * Register any `Injection`. Use this for power-user / custom flavors;
415
- * for built-in flavors use the typed sugar (`.skill`, `.steering`,
416
- * `.instruction`, `.fact`).
417
- */
418
- injection(injection: Injection): this;
419
- /**
420
- * Register a Skill — LLM-activated, system-prompt + tools.
421
- * Auto-attaches the `read_skill` activation tool to the agent.
422
- * Skill stays active for the rest of the turn once activated.
423
- */
424
- skill(injection: Injection): this;
425
- /**
426
- * Bulk-register every Skill in a `SkillRegistry`. Use for shared
427
- * skill catalogs across multiple Agents — register skills once on
428
- * the registry; attach the same registry to every consumer Agent.
429
- *
430
- * @example
431
- * const registry = new SkillRegistry();
432
- * registry.register(billingSkill).register(refundSkill);
433
- * const supportAgent = Agent.create({ provider }).skills(registry).build();
434
- * const escalationAgent = Agent.create({ provider }).skills(registry).build();
435
- */
436
- skills(registry: {
437
- list(): readonly Injection[];
438
- }): this;
439
- /**
440
- * Register a Steering doc — always-on system-prompt rule.
441
- * Use for invariant guidance: output format, persona, safety policies.
442
- */
443
- steering(injection: Injection): this;
444
- /**
445
- * Register an Instruction — rule-based system-prompt guidance.
446
- * Predicate runs each iteration. Use for context-dependent rules
447
- * including the "Dynamic ReAct" `on-tool-return` pattern.
448
- */
449
- instruction(injection: Injection): this;
450
- /**
451
- * Bulk-register many instructions at once. Convenience for consumer
452
- * code that organizes its instruction set in a flat array (`const
453
- * instructions = [outputFormat, dataRouting, ...]`). Each element
454
- * is registered via `.instruction()` so duplicate-id checks still
455
- * fire per-entry.
456
- */
457
- instructions(injections: ReadonlyArray<Injection>): this;
458
- /**
459
- * Register a Fact — developer-supplied data the LLM should see.
460
- * User profile, env info, computed summary, current time, …
461
- * Distinct from Skills (LLM-activated guidance) and Steering
462
- * (always-on rules) in INTENT — the engine treats them all alike.
463
- */
464
- fact(injection: Injection): this;
465
- /**
466
- * Register a Memory subsystem — load/persist conversation context,
467
- * facts, narrative beats, or causal snapshots across runs.
468
- *
469
- * The `MemoryDefinition` is produced by `defineMemory({ type, strategy,
470
- * store })`. Multiple memories layer cleanly via per-id scope keys
471
- * (`memoryInjection_${id}`):
472
- *
473
- * ```ts
474
- * Agent.create({ provider })
475
- * .memory(defineMemory({ id: 'short', type: MEMORY_TYPES.EPISODIC,
476
- * strategy: { kind: MEMORY_STRATEGIES.WINDOW, size: 10 },
477
- * store }))
478
- * .memory(defineMemory({ id: 'facts', type: MEMORY_TYPES.SEMANTIC,
479
- * strategy: { kind: MEMORY_STRATEGIES.EXTRACT,
480
- * extractor: 'pattern' }, store }))
481
- * .build();
482
- * ```
483
- *
484
- * The READ subflow runs at the configured `timing` (default
485
- * `MEMORY_TIMING.TURN_START`) and writes its formatted output to the
486
- * `memoryInjection_${id}` scope key for the slot subflows to consume.
487
- */
488
- memory(definition: MemoryDefinition): this;
489
- /**
490
- * Register a RAG retriever — semantic search over a vector-indexed
491
- * corpus. Identical plumbing to `.memory()` (RAG resolves to a
492
- * `MemoryDefinition` produced by `defineRAG()`); this alias exists
493
- * so the consumer's intent reads clearly:
494
- *
495
- * ```ts
496
- * agent
497
- * .memory(shortTermConversation) // remembers what the USER said
498
- * .rag(productDocs) // retrieves what the CORPUS says
499
- * .build();
500
- * ```
501
- *
502
- * Both end up as memory subflows, but the alias separates "user
503
- * conversation memory" from "document corpus retrieval" in code
504
- * intent, ids, and Lens chips.
505
- */
506
- rag(definition: MemoryDefinition): this;
507
- /**
508
- * Declarative terminal contract. The agent's final answer must be
509
- * JSON matching `parser`. Auto-injects a system-prompt instruction
510
- * telling the LLM the shape, and exposes `agent.runTyped()` /
511
- * `agent.parseOutput()` for parse + validate at the call site.
512
- *
513
- * The `parser` is duck-typed: any object with a `parse(unknown): T`
514
- * method works (Zod, Valibot, ArkType, hand-written). The optional
515
- * `description` field on the parser drives the auto-generated
516
- * instruction; consumers can also override via `opts.instruction`.
517
- *
518
- * Throws if called more than once on the same builder (avoids
519
- * silent override surprises).
520
- *
521
- * @param parser Validation strategy that throws on shape failure.
522
- * @param opts Optional `{ name, instruction }` to customize.
523
- *
524
- * @example
525
- * import { z } from 'zod';
526
- * const Output = z.object({
527
- * status: z.enum(['ok', 'err']),
528
- * items: z.array(z.string()),
529
- * }).describe('A status enum + an array of strings.');
530
- *
531
- * const agent = Agent.create({...})
532
- * .outputSchema(Output)
533
- * .build();
534
- *
535
- * const typed = await agent.runTyped({ message: '...' });
536
- * typed.status; // narrowed to 'ok' | 'err'
537
- */
538
- outputSchema<T>(parser: OutputSchemaParser<T>, opts?: OutputSchemaOptions): this;
539
- /**
540
- * 3-tier degradation for output-schema validation failures. Pairs
541
- * with `.outputSchema()` — calling `.outputFallback()` without an
542
- * `outputSchema` first throws (the fallback has nothing to validate).
543
- *
544
- * Three tiers:
545
- *
546
- * 1. **Primary** — LLM emitted schema-valid JSON. Caller gets it.
547
- * 2. **Fallback** — `OutputSchemaError` thrown. The async
548
- * `fallback(error, raw)` runs; its return is re-validated.
549
- * 3. **Canned** — static safety-net value. NEVER throws when set.
550
- *
551
- * `canned` is validated against the schema at builder time —
552
- * fail-fast on misconfig (a `canned` that doesn't validate would
553
- * defeat the fail-open guarantee).
554
- *
555
- * Two typed events fire on tier transitions for observability:
556
- * - `agentfootprint.resilience.output_fallback_triggered`
557
- * - `agentfootprint.resilience.output_canned_used`
558
- *
559
- * @example
560
- * ```ts
561
- * import { z } from 'zod';
562
- * const Refund = z.object({ amount: z.number(), reason: z.string() });
563
- *
564
- * const agent = Agent.create({...})
565
- * .outputSchema(Refund)
566
- * .outputFallback({
567
- * fallback: async (err, raw) => ({ amount: 0, reason: 'manual review' }),
568
- * canned: { amount: 0, reason: 'unable to process' },
569
- * })
570
- * .build();
571
- * ```
572
- */
573
- outputFallback<T>(options: OutputFallbackOptions<T>): this;
574
- build(): Agent;
575
- }
576
248
  //# sourceMappingURL=Agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Agent.d.ts","sourceRoot":"","sources":["../../../src/core/Agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,mBAAmB,EAExB,KAAK,UAAU,EACf,KAAK,eAAe,EAErB,MAAM,aAAa,CAAC;AAQrB,OAAO,KAAK,EAAe,WAAW,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAOj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