@memberjunction/ai-agents 6.2.0-edge.0 → 6.2.0-edge.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 +43 -0
- package/dist/AgentDataPreloader.d.ts +4 -0
- package/dist/AgentDataPreloader.d.ts.map +1 -1
- package/dist/AgentDataPreloader.js +10 -2
- package/dist/AgentDataPreloader.js.map +1 -1
- package/dist/AgentDecisionService.d.ts +83 -0
- package/dist/AgentDecisionService.d.ts.map +1 -0
- package/dist/AgentDecisionService.js +155 -0
- package/dist/AgentDecisionService.js.map +1 -0
- package/dist/AgentRunner.d.ts +16 -4
- package/dist/AgentRunner.d.ts.map +1 -1
- package/dist/AgentRunner.js +55 -32
- package/dist/AgentRunner.js.map +1 -1
- package/dist/ArtifactToolManager.d.ts +4 -4
- package/dist/ArtifactToolManager.js +10 -10
- package/dist/ConversationToolManager.d.ts +16 -3
- package/dist/ConversationToolManager.d.ts.map +1 -1
- package/dist/ConversationToolManager.js +28 -5
- package/dist/ConversationToolManager.js.map +1 -1
- package/dist/KnowledgeAgent.d.ts.map +1 -1
- package/dist/KnowledgeAgent.js +6 -6
- package/dist/KnowledgeAgent.js.map +1 -1
- package/dist/PayloadChangeAnalyzer.d.ts +4 -0
- package/dist/PayloadChangeAnalyzer.d.ts.map +1 -1
- package/dist/PayloadChangeAnalyzer.js +10 -2
- package/dist/PayloadChangeAnalyzer.js.map +1 -1
- package/dist/PayloadFeedbackManager.d.ts +120 -13
- package/dist/PayloadFeedbackManager.d.ts.map +1 -1
- package/dist/PayloadFeedbackManager.js +244 -88
- package/dist/PayloadFeedbackManager.js.map +1 -1
- package/dist/PayloadManager.d.ts +27 -0
- package/dist/PayloadManager.d.ts.map +1 -1
- package/dist/PayloadManager.js +47 -15
- package/dist/PayloadManager.js.map +1 -1
- package/dist/agent-context-injector.d.ts +47 -3
- package/dist/agent-context-injector.d.ts.map +1 -1
- package/dist/agent-context-injector.js +77 -10
- package/dist/agent-context-injector.js.map +1 -1
- package/dist/agent-memory-context-builder.d.ts +13 -0
- package/dist/agent-memory-context-builder.d.ts.map +1 -1
- package/dist/agent-memory-context-builder.js +24 -5
- package/dist/agent-memory-context-builder.js.map +1 -1
- package/dist/agent-types/base-agent-type.d.ts +16 -0
- package/dist/agent-types/base-agent-type.d.ts.map +1 -1
- package/dist/agent-types/base-agent-type.js +20 -1
- package/dist/agent-types/base-agent-type.js.map +1 -1
- package/dist/agent-types/flow-agent-type.d.ts +106 -0
- package/dist/agent-types/flow-agent-type.d.ts.map +1 -1
- package/dist/agent-types/flow-agent-type.js +299 -29
- package/dist/agent-types/flow-agent-type.js.map +1 -1
- package/dist/agent-types/flow-graph-executor.d.ts +12 -1
- package/dist/agent-types/flow-graph-executor.d.ts.map +1 -1
- package/dist/agent-types/flow-graph-executor.js +25 -1
- package/dist/agent-types/flow-graph-executor.js.map +1 -1
- package/dist/agent-types/loop-agent-prompt-params.d.ts +258 -11
- package/dist/agent-types/loop-agent-prompt-params.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-prompt-params.js +49 -2
- package/dist/agent-types/loop-agent-prompt-params.js.map +1 -1
- package/dist/agent-types/loop-agent-response-type.d.ts +12 -1
- package/dist/agent-types/loop-agent-response-type.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-response-type.js.map +1 -1
- package/dist/agent-types/loop-agent-type.d.ts +6 -0
- package/dist/agent-types/loop-agent-type.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-type.js +42 -3
- package/dist/agent-types/loop-agent-type.js.map +1 -1
- package/dist/artifact-target-plan.d.ts +2 -0
- package/dist/artifact-target-plan.d.ts.map +1 -1
- package/dist/artifact-target-plan.js +5 -1
- package/dist/artifact-target-plan.js.map +1 -1
- package/dist/base-agent.d.ts +886 -5
- package/dist/base-agent.d.ts.map +1 -1
- package/dist/base-agent.js +2567 -164
- package/dist/base-agent.js.map +1 -1
- package/dist/catalog-narrowing.d.ts +136 -0
- package/dist/catalog-narrowing.d.ts.map +1 -0
- package/dist/catalog-narrowing.js +212 -0
- package/dist/catalog-narrowing.js.map +1 -0
- package/dist/constants.d.ts +57 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +70 -0
- package/dist/constants.js.map +1 -0
- package/dist/decision-discovery.d.ts +401 -0
- package/dist/decision-discovery.d.ts.map +1 -0
- package/dist/decision-discovery.js +511 -0
- package/dist/decision-discovery.js.map +1 -0
- package/dist/finish-if-mode-warnings.d.ts +39 -0
- package/dist/finish-if-mode-warnings.d.ts.map +1 -0
- package/dist/finish-if-mode-warnings.js +78 -0
- package/dist/finish-if-mode-warnings.js.map +1 -0
- package/dist/finish-if-state.d.ts +72 -0
- package/dist/finish-if-state.d.ts.map +1 -0
- package/dist/finish-if-state.js +109 -0
- package/dist/finish-if-state.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/memory-manager-agent.d.ts +119 -13
- package/dist/memory-manager-agent.d.ts.map +1 -1
- package/dist/memory-manager-agent.js +237 -74
- package/dist/memory-manager-agent.js.map +1 -1
- package/dist/memory-note-gate.d.ts +208 -0
- package/dist/memory-note-gate.d.ts.map +1 -0
- package/dist/memory-note-gate.js +294 -0
- package/dist/memory-note-gate.js.map +1 -0
- package/dist/native-tools/action-tool-builder.d.ts +8 -0
- package/dist/native-tools/action-tool-builder.d.ts.map +1 -1
- package/dist/native-tools/action-tool-builder.js +22 -6
- package/dist/native-tools/action-tool-builder.js.map +1 -1
- package/dist/native-tools/control-tools.d.ts +8 -0
- package/dist/native-tools/control-tools.d.ts.map +1 -1
- package/dist/native-tools/control-tools.js +25 -9
- package/dist/native-tools/control-tools.js.map +1 -1
- package/dist/native-tools/dual-channel.d.ts +2 -0
- package/dist/native-tools/dual-channel.d.ts.map +1 -1
- package/dist/native-tools/dual-channel.js +5 -1
- package/dist/native-tools/dual-channel.js.map +1 -1
- package/dist/native-tools/tool-result-turns.d.ts +9 -0
- package/dist/native-tools/tool-result-turns.d.ts.map +1 -1
- package/dist/native-tools/tool-result-turns.js +15 -3
- package/dist/native-tools/tool-result-turns.js.map +1 -1
- package/dist/pipeline/coerce.d.ts +14 -0
- package/dist/pipeline/coerce.d.ts.map +1 -1
- package/dist/pipeline/coerce.js +37 -9
- package/dist/pipeline/coerce.js.map +1 -1
- package/dist/pipeline/jsonpath-eval.d.ts +4 -0
- package/dist/pipeline/jsonpath-eval.d.ts.map +1 -1
- package/dist/pipeline/jsonpath-eval.js +10 -2
- package/dist/pipeline/jsonpath-eval.js.map +1 -1
- package/dist/pipeline/operators.js +16 -16
- package/dist/pipeline/path.d.ts +6 -0
- package/dist/pipeline/path.d.ts.map +1 -1
- package/dist/pipeline/path.js +17 -5
- package/dist/pipeline/path.js.map +1 -1
- package/dist/pipeline/pipeline-executor.js +10 -10
- package/dist/pipeline/predicate.d.ts +4 -0
- package/dist/pipeline/predicate.d.ts.map +1 -1
- package/dist/pipeline/predicate.js +15 -7
- package/dist/pipeline/predicate.js.map +1 -1
- package/dist/pipeline/providers/action-provider.js +2 -2
- package/dist/pipeline/providers/artifact-tool-provider.js +2 -2
- package/dist/pipeline/providers/serialize.d.ts +4 -0
- package/dist/pipeline/providers/serialize.d.ts.map +1 -1
- package/dist/pipeline/providers/serialize.js +10 -2
- package/dist/pipeline/providers/serialize.js.map +1 -1
- package/dist/pipeline/template.d.ts +4 -0
- package/dist/pipeline/template.d.ts.map +1 -1
- package/dist/pipeline/template.js +15 -7
- package/dist/pipeline/template.js.map +1 -1
- package/dist/realtime/agent-media-library.d.ts +10 -0
- package/dist/realtime/agent-media-library.d.ts.map +1 -1
- package/dist/realtime/agent-media-library.js +29 -9
- package/dist/realtime/agent-media-library.js.map +1 -1
- package/dist/realtime/bridge-realtime-session-factory.d.ts +5 -2
- package/dist/realtime/bridge-realtime-session-factory.d.ts.map +1 -1
- package/dist/realtime/bridge-realtime-session-factory.js +7 -4
- package/dist/realtime/bridge-realtime-session-factory.js.map +1 -1
- package/dist/realtime/bridge-room-transcript-sink.d.ts.map +1 -1
- package/dist/realtime/bridge-room-transcript-sink.js +15 -9
- package/dist/realtime/bridge-room-transcript-sink.js.map +1 -1
- package/dist/realtime/media-channel-server.js +2 -2
- package/dist/realtime/meeting-controls-state.d.ts +2 -0
- package/dist/realtime/meeting-controls-state.d.ts.map +1 -1
- package/dist/realtime/meeting-controls-state.js +6 -2
- package/dist/realtime/meeting-controls-state.js.map +1 -1
- package/dist/realtime/realtime-channel-server-data-context.d.ts +2 -0
- package/dist/realtime/realtime-channel-server-data-context.d.ts.map +1 -1
- package/dist/realtime/realtime-channel-server-data-context.js +5 -1
- package/dist/realtime/realtime-channel-server-data-context.js.map +1 -1
- package/dist/realtime/realtime-channel-server-host.js +2 -2
- package/dist/realtime/realtime-client-session-service.d.ts +58 -12
- package/dist/realtime/realtime-client-session-service.d.ts.map +1 -1
- package/dist/realtime/realtime-client-session-service.js +91 -31
- package/dist/realtime/realtime-client-session-service.js.map +1 -1
- package/dist/realtime/realtime-coagent-config.d.ts +2 -0
- package/dist/realtime/realtime-coagent-config.d.ts.map +1 -1
- package/dist/realtime/realtime-coagent-config.js +6 -2
- package/dist/realtime/realtime-coagent-config.js.map +1 -1
- package/dist/realtime/realtime-recording-store.d.ts +15 -0
- package/dist/realtime/realtime-recording-store.d.ts.map +1 -1
- package/dist/realtime/realtime-recording-store.js +31 -7
- package/dist/realtime/realtime-recording-store.js.map +1 -1
- package/dist/realtime/realtime-session-runner.d.ts +4 -4
- package/dist/realtime/realtime-session-runner.js +9 -9
- package/dist/realtime/realtime-session-runner.js.map +1 -1
- package/dist/realtime/realtime-vendor-resolution.d.ts +8 -3
- package/dist/realtime/realtime-vendor-resolution.d.ts.map +1 -1
- package/dist/realtime/realtime-vendor-resolution.js +3 -3
- package/dist/realtime/realtime-vendor-resolution.js.map +1 -1
- package/dist/rubric-evaluation-agent-runner.d.ts +2 -0
- package/dist/rubric-evaluation-agent-runner.d.ts.map +1 -0
- package/dist/rubric-evaluation-agent-runner.js +38 -0
- package/dist/rubric-evaluation-agent-runner.js.map +1 -0
- package/dist/runtime-state-fragment.d.ts +101 -0
- package/dist/runtime-state-fragment.d.ts.map +1 -0
- package/dist/runtime-state-fragment.js +173 -0
- package/dist/runtime-state-fragment.js.map +1 -0
- package/dist/self-check.d.ts +98 -0
- package/dist/self-check.d.ts.map +1 -0
- package/dist/self-check.js +74 -0
- package/dist/self-check.js.map +1 -0
- package/dist/types/payload-operations.d.ts +8 -0
- package/dist/types/payload-operations.d.ts.map +1 -1
- package/dist/types/payload-operations.js +21 -5
- package/dist/types/payload-operations.js.map +1 -1
- package/dist/utils/ConversationMessageResolver.d.ts +4 -0
- package/dist/utils/ConversationMessageResolver.d.ts.map +1 -1
- package/dist/utils/ConversationMessageResolver.js +10 -2
- package/dist/utils/ConversationMessageResolver.js.map +1 -1
- package/dist/volatile-child-prompt.d.ts +33 -0
- package/dist/volatile-child-prompt.d.ts.map +1 -0
- package/dist/volatile-child-prompt.js +76 -0
- package/dist/volatile-child-prompt.js.map +1 -0
- package/package.json +21 -18
package/README.md
CHANGED
|
@@ -138,6 +138,21 @@ Abstract base that all agent types extend. Defines the `DetermineNextStep()` int
|
|
|
138
138
|
|
|
139
139
|
Conversational agent that runs in a loop: prompt -> decide -> act -> repeat. Best for interactive, chat-based agents. The LLM decides the next step at each iteration by producing a structured JSON response.
|
|
140
140
|
|
|
141
|
+
##### Decision models
|
|
142
|
+
|
|
143
|
+
An agent can ask a fast decision model typed questions in six places on its own. One master switch governs all of them: the Loop prompt param **`decisionsEnabled`**, `false` by default. Unless it is `true`, the agent never asks a decision model on its own, whatever the other settings say: their docs stay out of the prompt and the runtime refuses the call. With it `true`, each use still needs its own setting, and each of those is off by default too:
|
|
144
|
+
|
|
145
|
+
| Use | Its own setting |
|
|
146
|
+
|---|---|
|
|
147
|
+
| Inline `decisions` on a turn | `includeDecisionsDocs: true` |
|
|
148
|
+
| `finishIf` gates on an Actions or Sub-Agent step | `finishIfMode: 'shadow'` or `'on'` |
|
|
149
|
+
| Decision discovery (suggest an agent before the first prompt) | `decisionDiscovery: true` |
|
|
150
|
+
| Payload change check | `payloadFeedbackCheck: true` |
|
|
151
|
+
| Catalog narrowing | `maxActionsInPrompt` / `maxSubAgentsInPrompt` > 0 |
|
|
152
|
+
| Memory Manager note gate | run `data.enableDecisionGate: true` |
|
|
153
|
+
|
|
154
|
+
Set it in an agent's `AgentTypePromptParams` (`{"decisionsEnabled": true, "finishIfMode": "shadow"}`) or for one run in `data.__agentTypePromptParams`. Uses someone placed explicitly do not read it: a Flow or task-graph Decision step, the Run Decision action, and other direct callers of `AgentDecisionService`. See the [Decision Models guide](./docs/loop-agent-decisions.md).
|
|
155
|
+
|
|
141
156
|
#### FlowAgentType
|
|
142
157
|
|
|
143
158
|
Step-based agent that follows a predefined flow graph — steps with explicit conditional paths between them. Best for deterministic workflows where the execution path is known in advance.
|
|
@@ -150,6 +165,8 @@ Consequences worth knowing before you debug one:
|
|
|
150
165
|
- **A run that needs the result walks the flow in-process.** A sub-agent run (one with `parentRun`) does this automatically, and a top-level caller opts in with `agentTypeParams.executionMode: 'inRun'` (`FlowAgentExecuteParams`). The run returns the flow's final payload, as in 5.x, and `startAtStep` works. A dispatched run that reaches the walker by mistake is refused at its choke point.
|
|
151
166
|
- **The mode is on the run.** A completed `Decision` step named "Workflow runs in this run" or "Workflow runs on the task-graph dispatcher" records which engine ran it and why.
|
|
152
167
|
- **A dispatched `Sub-Agent` node starts its own `AIAgentRun`**, linked from `Task.AgentRunID` and parented to the submitting run. If that sub-agent is itself a Flow agent, it runs in-process and returns its result to the task.
|
|
168
|
+
- **A `Decision` step routes the same way in both modes.** Paths read its answers only through `decisions.<key>.<question>`; its `stepResult.result` is the payload, which carries no answers. A flow with a Decision step is compiled and validated before its first step in-run too, so an incomplete Choice fork, a decision read before it can answer, or one read through the payload is refused in both modes. An answer below its `minConfidence` stops an in-run flow (the dispatcher holds the fork, and `Retry` on the step asks again). A failed decision call is a failed step: the paths that read its answers are passed over, and a recovery path such as `stepResult.Success === false` is taken whatever its rank.
|
|
169
|
+
- **Answers live in the run, not the payload.** A run started with `startAtStep` past a Decision step has no answers from it, so every path that reads that decision stops the run with the reason. Start at or before the Decision step to route on it.
|
|
153
170
|
|
|
154
171
|
See the **[Workflows and Task Graphs Guide](../../../guides/WORKFLOW_AND_TASK_GRAPH_GUIDE.md)** for the full model: node kinds, exclusive groups, payload mappings, loops, failure semantics, observability, and a worked configuration example.
|
|
155
172
|
|
|
@@ -460,6 +477,17 @@ The Memory Manager runs on a schedule (every ~15 minutes). `AIEngineBase` alread
|
|
|
460
477
|
* **Single source of truth for status**: note status filtering reuses `IsInjectableNoteStatus()` from `@memberjunction/core-entities` (Active + Provisional), the same predicate the read-path injection/scoping queries use, so the maintenance set can never drift from the injectable set.
|
|
461
478
|
* **Intentional exceptions** (still hit the DB): the **hardening pass** loads `entity_object` provisional notes *specifically to mutate them*, so it reads fresh, owned entities; the resolved-source-chain loader keeps a targeted `RunView` **only** for note IDs the cache misses; and `MJ: AI Agent Runs` reads stay as queries because runs are transactional and not cached by `AIEngineBase`.
|
|
462
479
|
|
|
480
|
+
### 6. Trailing Runtime State (prompt-cache layout)
|
|
481
|
+
The Loop agent's volatile per-iteration state — current date/time, Scratchpad State and Payload — is never rendered in the system prompt. `preparePromptParams` builds it into a `<mj-runtime-state>` fragment (`RuntimeStateFragmentBuilder`) appended as the **final user message** of each request, and the system prompt carries a static `## Runtime State` pointer. Provider prompt caching is a prefix match over `tools → system → messages`, so a byte-stable system prompt lets the entire history cache incrementally: measured on Sage, 0% → 78–90% cached on Anthropic and OpenAI, 21% → 91% on xAI, 30–65% → 66–96% on Gemini and Cerebras, with prompt cost per million tokens down 37–80%.
|
|
482
|
+
|
|
483
|
+
* **Per-provider retention** — providers with a byte-prefix cache (OpenAI, xAI) need prior fragments *retained* and the new one appended; block-cache providers (Anthropic, Gemini, Cerebras) get the previous fragment *replaced*. The choice is the model catalog's `ModelConfiguration.LLM.PrefixPromptCache` flag, set under the vendor row's `Configuration.ModelDefaults` and inherited by every model it serves unless a model-vendor row overrides it (`BaseAgent.resolvePrefixPromptCache` → `AIEngine.GetEffectiveModelConfiguration`, cascade Model Types < Models < Vendors' `Configuration.ModelDefaults` < Model Vendors), decided once per run and frozen. No provider names live in code.
|
|
484
|
+
* **Escaping at send time** — the fragment tag literals are escaped in every non-system message of the outgoing *copy* of the history, so no tool result, user turn or tool-call argument can pose as framework state; the stored history is never mutated.
|
|
485
|
+
* **Delivery gate** — the fragment is only sent when the system prompt template carries the pointer; a template still embedding the old blocks (unsynced database) or one with neither (Flow, custom prompts) gets none. Markers: `VOLATILE_TEMPLATE_MARKERS`, overridable via the protected `volatileTemplateMarkers` getter.
|
|
486
|
+
* **Specialization placement** — `specializationPlacement: auto` relocates a child prompt into the fragment (`<mj-agent-specialization>`) only when its unrendered template references a volatile placeholder, handing the runner the pre-rendered text via `AIPromptParams.PreRenderedChildTemplates`.
|
|
487
|
+
* **Anthropic breakpoint** — `BaseLLM.splitTrailingVolatileState` lets `AnthropicLLM` place its `cache_control` breakpoint on the last real history message and send the fragment uncached.
|
|
488
|
+
|
|
489
|
+
All placeholder names, tag literals and headings are in [`src/constants.ts`](./src/constants.ts). Full mechanism: [Agent Prompt Caching Guide](../../../guides/AGENT_PROMPT_CACHING_GUIDE.md); numbers: [Performance and Cost Briefing](./docs/PROMPT_CACHE_PERFORMANCE_BRIEFING.md).
|
|
490
|
+
|
|
463
491
|
## Cross-Turn Conversation Compaction & History Retrieval
|
|
464
492
|
|
|
465
493
|
Long conversations no longer grow the agent's context without bound. Two cooperating layers (design: [`plans/agent-conversation-compaction.md`](../../../plans/agent-conversation-compaction.md)) activate **only when a run carries `ExecuteAgentParams.conversationId`** — programmatic runs, sub-agents, and tests without a conversation are untouched:
|
|
@@ -472,6 +500,18 @@ Long conversations no longer grow the agent's context without bound. Two coopera
|
|
|
472
500
|
|
|
473
501
|
**Prior-turn tool-result carry-forward.** Because each turn rebuilds its messages from the conversation window, a tool result paged in on turn N would be gone on turn N+1. `injectPriorTurnToolResults` re-injects the same agent's immediately previous settled root run's successful read-tool results (eligibility decided by the `toolFamily` stamped in each Tool step's `OutputData`) as one transient, compactable message — one-turn memory by construction, scoped by `AgentID` so parallel agents in one conversation never inherit each other's results. The per-turn prior-run lookup is served by `PriorTurnToolResultCache` (a `BaseSingleton` wrapping `MJLruCache`, keyed by conversation + agent): the settling root run publishes its own Tool-step projections from memory at finalize — an empty array for tool-free runs, so the common case costs **zero DB queries per turn** — and the loader falls back to the original RunView pair only on a cache miss. Both loaders share one entity-typed predicate (`BaseAgent.carryForwardPredicate` + `settledRunStatuses`) so the SQL filter and the in-memory projection cannot drift; freshness semantics and the multi-node staleness bound are documented on the cache class.
|
|
474
502
|
|
|
503
|
+
## Action Failure Circuit Breaker
|
|
504
|
+
|
|
505
|
+
`executeActionsStep` now reports an action's real outcome (`ActionResult.Success`, result code, message) — previously a failed action was reported to the model as a success and agents retried unconfigured tools until the run timed out. On top of that, `ExecuteSingleAction` applies a run-scoped breaker before dispatching, checked fatal → identical-arguments → budget:
|
|
506
|
+
|
|
507
|
+
| Rule | Trigger | Effect |
|
|
508
|
+
|---|---|---|
|
|
509
|
+
| Fatal lockout | One credential / service-configuration failure (`isFatalActionError`; parameter-level "not configured" messages are deliberately non-fatal) | Action disabled for the run, any arguments |
|
|
510
|
+
| Identical arguments | `IDENTICAL_FAILURE_THRESHOLD` (2) failures with the same normalized arguments | Calls with those arguments blocked; other arguments dispatch |
|
|
511
|
+
| Attempt budget | `ACTION_FAILURE_BUDGET` (5) consecutive failures, any arguments | Action disabled for the run |
|
|
512
|
+
|
|
513
|
+
A success clears both counters. A blocked call returns a `CircuitBreakerActionResult` (carrying `Reason`) in ~0 ms without reaching the action engine, and the model receives a `[CRITICAL/ACTION_UNAVAILABLE | REPEATED_IDENTICAL_CALL | ATTEMPTS_EXHAUSTED]` directive as a user message (a `[WARNING/ACTION_FAILURE]` with an "attempt N of 5" counter otherwise). Argument identity is `normalizeActionParams` (three protected layers: outer → per-entry → recursive value). The pipeline registry and the ForEach / While operators pass `{ skipCircuitBreaker: true }` and bypass every rule, leaving the history untouched. Evidence and thresholds: [Performance and Cost Briefing §4](./docs/PROMPT_CACHE_PERFORMANCE_BRIEFING.md).
|
|
514
|
+
|
|
475
515
|
## Documentation
|
|
476
516
|
|
|
477
517
|
Detailed guides are available in the [`docs/`](./docs/) directory:
|
|
@@ -479,6 +519,9 @@ Detailed guides are available in the [`docs/`](./docs/) directory:
|
|
|
479
519
|
| Guide | Description |
|
|
480
520
|
|---|---|
|
|
481
521
|
| [Actions Guide](./docs/actions-guide.md) | Action discovery, execution, result lifecycle, expiration/compaction, context recovery |
|
|
522
|
+
| [Decision Models](./docs/loop-agent-decisions.md) | The `decisionsEnabled` master switch, then each automatic use: inline decisions, finishIf gates, discovery, the payload change check, catalog narrowing, the Memory Manager note gate |
|
|
523
|
+
| [Prompt-Cache Performance and Cost Briefing](./docs/PROMPT_CACHE_PERFORMANCE_BRIEFING.md) | Before/after cached share and cost per model and topology for the trailing runtime-state layout; the action circuit breaker's before/after; what to re-measure |
|
|
524
|
+
| [Agent Prompt Caching Guide](../../../guides/AGENT_PROMPT_CACHING_GUIDE.md) | Repo-level guide: the trailing-state layout, the `PrefixPromptCache` flag from the model catalog, the Anthropic breakpoint seam, specialization placement, the circuit breaker |
|
|
482
525
|
| [Client Tools Guide](./docs/CLIENT_TOOLS_GUIDE.md) | Browser-side tool invocation, runtime decoration, timeout config, prompt design, security |
|
|
483
526
|
| [Sub-Agents Guide](./docs/sub-agents-guide.md) | Child agents, related agents, payload flow, context propagation, loops |
|
|
484
527
|
| [Human-in-the-Loop](./docs/HUMAN_IN_THE_LOOP.md) | Feedback requests, assignment strategies, request lifecycle |
|
|
@@ -82,11 +82,15 @@ export declare class AgentDataPreloader extends BaseSingleton<AgentDataPreloader
|
|
|
82
82
|
*
|
|
83
83
|
* @param {string} runId - The run ID to clear cache for
|
|
84
84
|
*/
|
|
85
|
+
ClearRunCache(runId: string): void;
|
|
86
|
+
/** @deprecated Use {@link ClearRunCache}. */
|
|
85
87
|
clearRunCache(runId: string): void;
|
|
86
88
|
/**
|
|
87
89
|
* Clears all per-agent cached data.
|
|
88
90
|
* Can be called to force refresh of global cached data.
|
|
89
91
|
*/
|
|
92
|
+
ClearAgentCache(): void;
|
|
93
|
+
/** @deprecated Use {@link ClearAgentCache}. */
|
|
90
94
|
clearAgentCache(): void;
|
|
91
95
|
/**
|
|
92
96
|
* Resolves all data sources with bounded concurrency, preserving input order
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentDataPreloader.d.ts","sourceRoot":"","sources":["../src/AgentDataPreloader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAqE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACnH,OAAO,EAAc,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAKnE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,gDAAgD;IAChD,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,sDAAsD;IACtD,aAAa,EAAE,gBAAgB,EAAE,CAAC;CACrC;AAkCD,qBAAa,kBAAmB,SAAQ,aAAa,CAAC,kBAAkB,CAAC;IACrE;;OAEG;IACH,OAAO,CAAC,cAAc,CAAsC;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O,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,gDAAgD;IAChD,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,sDAAsD;IACtD,aAAa,EAAE,gBAAgB,EAAE,CAAC;CACrC;AAkCD,qBAAa,kBAAmB,SAAQ,aAAa,CAAC,kBAAkB,CAAC;IACrE;;OAEG;IACH,OAAO,CAAC,cAAc,CAAsC;IAE5D;;OAEG;IACH,OAAO,CAAC,YAAY,CAAgD;;IAMpE;;OAEG;IACH,WAAkB,QAAQ,IAAI,kBAAkB,CAE/C;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACU,gBAAgB,CACzB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,QAAQ,EACrB,KAAK,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,mBAAmB,CAAC;IAqF/B;;;;;OAKG;IACI,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IASzC,6CAA6C;IACtC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIzC;;;OAGG;IACI,eAAe,IAAI,IAAI;IAS9B,+CAA+C;IACxC,eAAe,IAAI,IAAI;IAI9B;;;;;;OAMG;YACW,kBAAkB;IAwChC;;;;OAIG;YACW,uBAAuB;IAiBrC;;;;;OAKG;YACW,iBAAiB;IAiC/B;;;;OAIG;YACW,cAAc;IAmC5B;;;;OAIG;YACW,eAAe;IAiC7B;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAsCrB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAmCjB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;CAG9B"}
|
|
@@ -164,7 +164,7 @@ export class AgentDataPreloader extends BaseSingleton {
|
|
|
164
164
|
*
|
|
165
165
|
* @param {string} runId - The run ID to clear cache for
|
|
166
166
|
*/
|
|
167
|
-
|
|
167
|
+
ClearRunCache(runId) {
|
|
168
168
|
this._perRunCache.delete(runId);
|
|
169
169
|
LogStatusEx({
|
|
170
170
|
message: `AgentDataPreloader: Cleared per-run cache for run ${runId}`,
|
|
@@ -172,11 +172,15 @@ export class AgentDataPreloader extends BaseSingleton {
|
|
|
172
172
|
isVerboseEnabled: IsVerboseLoggingEnabled
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
+
/** @deprecated Use {@link ClearRunCache}. */
|
|
176
|
+
clearRunCache(runId) {
|
|
177
|
+
return this.ClearRunCache(runId);
|
|
178
|
+
}
|
|
175
179
|
/**
|
|
176
180
|
* Clears all per-agent cached data.
|
|
177
181
|
* Can be called to force refresh of global cached data.
|
|
178
182
|
*/
|
|
179
|
-
|
|
183
|
+
ClearAgentCache() {
|
|
180
184
|
this._perAgentCache.clear();
|
|
181
185
|
LogStatusEx({
|
|
182
186
|
message: `AgentDataPreloader: Cleared all per-agent cache`,
|
|
@@ -184,6 +188,10 @@ export class AgentDataPreloader extends BaseSingleton {
|
|
|
184
188
|
isVerboseEnabled: IsVerboseLoggingEnabled
|
|
185
189
|
});
|
|
186
190
|
}
|
|
191
|
+
/** @deprecated Use {@link ClearAgentCache}. */
|
|
192
|
+
clearAgentCache() {
|
|
193
|
+
return this.ClearAgentCache();
|
|
194
|
+
}
|
|
187
195
|
/**
|
|
188
196
|
* Resolves all data sources with bounded concurrency, preserving input order
|
|
189
197
|
* in the returned result array. Each item is wrapped so the caller can
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentDataPreloader.js","sourceRoot":"","sources":["../src/AgentDataPreloader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,uBAAuB,EAAE,OAAO,EAAE,QAAQ,EAAY,MAAM,sBAAsB,CAAC;AACnH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGnE,OAAO,CAAC,MAAM,QAAQ,CAAC;AAoCv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,CAAC,MAAM,CAAC,mBAAmB,IAAI,MAAM,CAAC,mBAAmB,IAAI,CAAC,EAAE,CAAC;gBACjE,QAAQ,CAAC,2EAA2E,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;gBACpG,OAAO;YACX,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;YAClD,MAAM,KAAK,GAAe;gBACtB,IAAI;gBACJ,SAAS,EAAE,IAAI,IAAI,EAAE;gBACrB,cAAc,EAAE,MAAM,CAAC,mBAAmB;aAC7C,CAAC;YACF,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC7C,CAAC;IACL,CAAC;IAED;;;;OAIG;IACK,mBAAmB,CAAC,MAAiC;QACzD,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;IAC9C,CAAC;CACJ"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Service for executing decision questions on behalf of agents.
|
|
3
|
+
*
|
|
4
|
+
* Wraps AIDecisionRunner and resolves decision prompts from the AIEngine catalog.
|
|
5
|
+
*
|
|
6
|
+
* @module @memberjunction/ai-agents
|
|
7
|
+
* @author MemberJunction.com
|
|
8
|
+
* @since 2.132.0
|
|
9
|
+
*/
|
|
10
|
+
import { UserInfo } from '@memberjunction/core';
|
|
11
|
+
import { DecisionQuestion, DecisionAnswer } from '@memberjunction/ai';
|
|
12
|
+
import { AIDecisionRunResult } from '@memberjunction/ai-prompts';
|
|
13
|
+
import { AgentDecisionAnswerSummary } from '@memberjunction/ai-core-plus';
|
|
14
|
+
/**
|
|
15
|
+
* Parameters for the AgentDecisionService.Ask method.
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentDecisionAskParams {
|
|
18
|
+
/**
|
|
19
|
+
* The state the questions are asked about.
|
|
20
|
+
*/
|
|
21
|
+
State: string | Record<string, unknown>;
|
|
22
|
+
/**
|
|
23
|
+
* Named questions to evaluate.
|
|
24
|
+
*/
|
|
25
|
+
Questions: Record<string, DecisionQuestion>;
|
|
26
|
+
/**
|
|
27
|
+
* Context user executing the decision.
|
|
28
|
+
*/
|
|
29
|
+
ContextUser: UserInfo;
|
|
30
|
+
/**
|
|
31
|
+
* Optional agent ID initiating the decision.
|
|
32
|
+
*/
|
|
33
|
+
AgentID?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Optional prompt name to resolve from AIEngine. Defaults to 'Default Decision'.
|
|
36
|
+
*/
|
|
37
|
+
PromptName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Optional cancellation token to abort execution.
|
|
40
|
+
*/
|
|
41
|
+
CancellationToken?: AbortSignal;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The questions of one decision request after their shapes are checked: the valid ones mapped onto
|
|
45
|
+
* BaseDecision's shape, and why each invalid one was dropped.
|
|
46
|
+
*/
|
|
47
|
+
export interface DecisionQuestionMapping {
|
|
48
|
+
/** The valid questions, keyed as the agent keyed them, in BaseDecision's (PascalCase) shape. */
|
|
49
|
+
Questions: Record<string, DecisionQuestion>;
|
|
50
|
+
/** One reason per dropped question, naming its key. Empty when every question was valid. */
|
|
51
|
+
Invalid: string[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Asks decision questions for an agent run through AIDecisionRunner and the configured decision prompt.
|
|
55
|
+
*/
|
|
56
|
+
export declare class AgentDecisionService {
|
|
57
|
+
/**
|
|
58
|
+
* The decision prompt used when none is configured.
|
|
59
|
+
*/
|
|
60
|
+
static readonly DEFAULT_PROMPT_NAME = "Default Decision";
|
|
61
|
+
/**
|
|
62
|
+
* Evaluates decision questions against the provided state using the configured decision prompt.
|
|
63
|
+
* Never throws: on failure or missing prompt, returns a failed AIDecisionRunResult.
|
|
64
|
+
*/
|
|
65
|
+
Ask(args: AgentDecisionAskParams): Promise<AIDecisionRunResult>;
|
|
66
|
+
/**
|
|
67
|
+
* Checks each question's shape and maps the valid ones from the LLM-facing shape (camelCase) onto
|
|
68
|
+
* BaseDecision's (PascalCase). The questions are unchecked model output, so an invalid one is
|
|
69
|
+
* dropped, with its reason, rather than failing the others.
|
|
70
|
+
*/
|
|
71
|
+
static ToDecisionQuestions(questions: Record<string, unknown>): DecisionQuestionMapping;
|
|
72
|
+
/** Maps one question, or returns why it is invalid. */
|
|
73
|
+
private static toDecisionQuestion;
|
|
74
|
+
/** A Choice needs a non-empty `options` array of `{ value, description }` strings. */
|
|
75
|
+
private static toChoiceQuestion;
|
|
76
|
+
/** A Score needs a non-empty `levels` array of strings, lowest first. */
|
|
77
|
+
private static toScoreQuestion;
|
|
78
|
+
/**
|
|
79
|
+
* Summarises answers for the model: probability, or value and confidence.
|
|
80
|
+
*/
|
|
81
|
+
static SummarizeAnswers(answers: Record<string, DecisionAnswer>): Record<string, AgentDecisionAnswerSummary>;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=AgentDecisionService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentDecisionService.d.ts","sourceRoot":"","sources":["../src/AgentDecisionService.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAsC,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAExC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAE5C;;OAEG;IACH,WAAW,EAAE,QAAQ,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,WAAW,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,gGAAgG;IAChG,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAE5C,4FAA4F;IAC5F,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB;AAqBD;;GAEG;AACH,qBAAa,oBAAoB;IAC7B;;OAEG;IACH,gBAAuB,mBAAmB,sBAAsB;IAEhE;;;OAGG;IACU,GAAG,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA+B5E;;;;OAIG;WACW,mBAAmB,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,uBAAuB;IAa9F,uDAAuD;IACvD,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAmBjC,sFAAsF;IACtF,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAc/B,yEAAyE;IACzE,OAAO,CAAC,MAAM,CAAC,eAAe;IAO9B;;OAEG;WACW,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC;CAyBtH"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Service for executing decision questions on behalf of agents.
|
|
3
|
+
*
|
|
4
|
+
* Wraps AIDecisionRunner and resolves decision prompts from the AIEngine catalog.
|
|
5
|
+
*
|
|
6
|
+
* @module @memberjunction/ai-agents
|
|
7
|
+
* @author MemberJunction.com
|
|
8
|
+
* @since 2.132.0
|
|
9
|
+
*/
|
|
10
|
+
import { AIEngine } from '@memberjunction/aiengine';
|
|
11
|
+
import { AIDecisionRunner, AIDecisionParams } from '@memberjunction/ai-prompts';
|
|
12
|
+
/** A plain object, as opposed to null, an array or a primitive. */
|
|
13
|
+
function isPlainObject(value) {
|
|
14
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
15
|
+
}
|
|
16
|
+
/** An array whose every item passes `guard`. */
|
|
17
|
+
function isArrayOf(value, guard) {
|
|
18
|
+
return Array.isArray(value) && value.every(item => guard(item));
|
|
19
|
+
}
|
|
20
|
+
function isString(value) {
|
|
21
|
+
return typeof value === 'string';
|
|
22
|
+
}
|
|
23
|
+
/** One option of a Choice question, as the model writes it. */
|
|
24
|
+
function isChoiceOption(value) {
|
|
25
|
+
return isPlainObject(value) && typeof value.value === 'string' && typeof value.description === 'string';
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Asks decision questions for an agent run through AIDecisionRunner and the configured decision prompt.
|
|
29
|
+
*/
|
|
30
|
+
export class AgentDecisionService {
|
|
31
|
+
/**
|
|
32
|
+
* The decision prompt used when none is configured.
|
|
33
|
+
*/
|
|
34
|
+
static { this.DEFAULT_PROMPT_NAME = 'Default Decision'; }
|
|
35
|
+
/**
|
|
36
|
+
* Evaluates decision questions against the provided state using the configured decision prompt.
|
|
37
|
+
* Never throws: on failure or missing prompt, returns a failed AIDecisionRunResult.
|
|
38
|
+
*/
|
|
39
|
+
async Ask(args) {
|
|
40
|
+
try {
|
|
41
|
+
await AIEngine.Instance.Config(false, args.ContextUser);
|
|
42
|
+
const targetName = (args.PromptName ?? AgentDecisionService.DEFAULT_PROMPT_NAME).trim().toLowerCase();
|
|
43
|
+
const prompt = AIEngine.Instance.Prompts?.find(p => (p.Name ?? '').trim().toLowerCase() === targetName);
|
|
44
|
+
if (!prompt) {
|
|
45
|
+
return {
|
|
46
|
+
success: false,
|
|
47
|
+
errorMessage: `Decision prompt "${args.PromptName ?? AgentDecisionService.DEFAULT_PROMPT_NAME}" not found`,
|
|
48
|
+
Answers: {},
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
const params = new AIDecisionParams();
|
|
52
|
+
params.prompt = prompt;
|
|
53
|
+
params.contextUser = args.ContextUser;
|
|
54
|
+
params.State = args.State;
|
|
55
|
+
params.Questions = args.Questions;
|
|
56
|
+
params.cancellationToken = args.CancellationToken;
|
|
57
|
+
params.agentId = args.AgentID;
|
|
58
|
+
return await new AIDecisionRunner().ExecuteDecision(params);
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
return {
|
|
62
|
+
success: false,
|
|
63
|
+
errorMessage: `The decision call failed: ${error instanceof Error ? error.message : String(error)}`,
|
|
64
|
+
Answers: {},
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Checks each question's shape and maps the valid ones from the LLM-facing shape (camelCase) onto
|
|
70
|
+
* BaseDecision's (PascalCase). The questions are unchecked model output, so an invalid one is
|
|
71
|
+
* dropped, with its reason, rather than failing the others.
|
|
72
|
+
*/
|
|
73
|
+
static ToDecisionQuestions(questions) {
|
|
74
|
+
const mapping = { Questions: {}, Invalid: [] };
|
|
75
|
+
for (const [key, candidate] of Object.entries(questions)) {
|
|
76
|
+
const mapped = AgentDecisionService.toDecisionQuestion(candidate);
|
|
77
|
+
if (typeof mapped === 'string') {
|
|
78
|
+
mapping.Invalid.push(`Question "${key}" ${mapped}`);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
mapping.Questions[key] = mapped;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return mapping;
|
|
85
|
+
}
|
|
86
|
+
/** Maps one question, or returns why it is invalid. */
|
|
87
|
+
static toDecisionQuestion(candidate) {
|
|
88
|
+
if (!isPlainObject(candidate)) {
|
|
89
|
+
return 'is not an object';
|
|
90
|
+
}
|
|
91
|
+
if (typeof candidate.instructions !== 'string') {
|
|
92
|
+
return 'has no "instructions" string';
|
|
93
|
+
}
|
|
94
|
+
switch (candidate.kind) {
|
|
95
|
+
case 'Likelihood':
|
|
96
|
+
return { Kind: 'Likelihood', Instructions: candidate.instructions };
|
|
97
|
+
case 'Choice':
|
|
98
|
+
return AgentDecisionService.toChoiceQuestion(candidate.instructions, candidate.options);
|
|
99
|
+
case 'Score':
|
|
100
|
+
return AgentDecisionService.toScoreQuestion(candidate.instructions, candidate.levels);
|
|
101
|
+
default:
|
|
102
|
+
return `has an unknown kind "${String(candidate.kind)}" (use Likelihood, Choice or Score)`;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/** A Choice needs a non-empty `options` array of `{ value, description }` strings. */
|
|
106
|
+
static toChoiceQuestion(instructions, options) {
|
|
107
|
+
if (!isArrayOf(options, isChoiceOption) || options.length === 0) {
|
|
108
|
+
return 'is a Choice without a non-empty "options" array of { value, description } strings';
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
Kind: 'Choice',
|
|
112
|
+
Instructions: instructions,
|
|
113
|
+
Options: options.map(opt => ({
|
|
114
|
+
Value: opt.value,
|
|
115
|
+
Description: opt.description,
|
|
116
|
+
})),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
/** A Score needs a non-empty `levels` array of strings, lowest first. */
|
|
120
|
+
static toScoreQuestion(instructions, levels) {
|
|
121
|
+
if (!isArrayOf(levels, isString) || levels.length === 0) {
|
|
122
|
+
return 'is a Score without a non-empty "levels" array of strings';
|
|
123
|
+
}
|
|
124
|
+
return { Kind: 'Score', Instructions: instructions, Levels: [...levels] };
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Summarises answers for the model: probability, or value and confidence.
|
|
128
|
+
*/
|
|
129
|
+
static SummarizeAnswers(answers) {
|
|
130
|
+
const result = {};
|
|
131
|
+
for (const [key, a] of Object.entries(answers)) {
|
|
132
|
+
switch (a.Kind) {
|
|
133
|
+
case 'Likelihood':
|
|
134
|
+
result[key] = {
|
|
135
|
+
probability: a.Probability,
|
|
136
|
+
};
|
|
137
|
+
break;
|
|
138
|
+
case 'Choice':
|
|
139
|
+
result[key] = {
|
|
140
|
+
value: a.Value,
|
|
141
|
+
confidence: a.Confidence,
|
|
142
|
+
};
|
|
143
|
+
break;
|
|
144
|
+
case 'Score':
|
|
145
|
+
result[key] = {
|
|
146
|
+
value: a.Value,
|
|
147
|
+
confidence: a.Confidence,
|
|
148
|
+
};
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return result;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=AgentDecisionService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentDecisionService.js","sourceRoot":"","sources":["../src/AgentDecisionService.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGpD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAuB,MAAM,4BAA4B,CAAC;AAkDrG,mEAAmE;AACnE,SAAS,aAAa,CAAC,KAAc;IACjC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAChF,CAAC;AAED,gDAAgD;AAChD,SAAS,SAAS,CAAI,KAAc,EAAE,KAAmC;IACrE,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACpE,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC5B,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;AACrC,CAAC;AAED,+DAA+D;AAC/D,SAAS,cAAc,CAAC,KAAc;IAClC,OAAO,aAAa,CAAC,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,QAAQ,CAAC;AAC5G,CAAC;AAED;;GAEG;A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CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YAC7C,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;gBACb,KAAK,YAAY;oBACb,MAAM,CAAC,GAAG,CAAC,GAAG;wBACV,WAAW,EAAE,CAAC,CAAC,WAAW;qBAC7B,CAAC;oBACF,MAAM;gBACV,KAAK,QAAQ;oBACT,MAAM,CAAC,GAAG,CAAC,GAAG;wBACV,KAAK,EAAE,CAAC,CAAC,KAAK;wBACd,UAAU,EAAE,CAAC,CAAC,UAAU;qBAC3B,CAAC;oBACF,MAAM;gBACV,KAAK,OAAO;oBACR,MAAM,CAAC,GAAG,CAAC,GAAG;wBACV,KAAK,EAAE,CAAC,CAAC,KAAK;wBACd,UAAU,EAAE,CAAC,CAAC,UAAU;qBAC3B,CAAC;oBACF,MAAM;YACd,CAAC;QACL,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC"}
|
package/dist/AgentRunner.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export interface CreatedArtifactInfo {
|
|
|
28
28
|
* Callers surface this as a single "open the artifact" affordance, so a document-generating run
|
|
29
29
|
* used to point at raw JSON. With several files, the first is the primary one.
|
|
30
30
|
*/
|
|
31
|
+
export declare function SelectPrimaryArtifact(fileArtifacts: readonly CreatedArtifactInfo[] | undefined, payloadArtifact: CreatedArtifactInfo | undefined): CreatedArtifactInfo | undefined;
|
|
32
|
+
/** @deprecated Use {@link SelectPrimaryArtifact}. */
|
|
31
33
|
export declare function selectPrimaryArtifact(fileArtifacts: readonly CreatedArtifactInfo[] | undefined, payloadArtifact: CreatedArtifactInfo | undefined): CreatedArtifactInfo | undefined;
|
|
32
34
|
/**
|
|
33
35
|
* AgentRunner provides a thin wrapper for executing AI agents.
|
|
@@ -49,6 +51,13 @@ export declare function selectPrimaryArtifact(fileArtifacts: readonly CreatedArt
|
|
|
49
51
|
* ```
|
|
50
52
|
*/
|
|
51
53
|
export declare class AgentRunner {
|
|
54
|
+
/**
|
|
55
|
+
* Why a conversation-detail `Save()` returned false, for an error or log line. The owner gate in
|
|
56
|
+
* `MJConversationDetailEntityExtended` refuses a non-owner's write (e.g. the elevated System user
|
|
57
|
+
* on a widget guest's conversation) and records the reason ONLY on `LatestResult` — it logs
|
|
58
|
+
* nothing itself — so a caller that reports a fixed string loses it (MJ#4791).
|
|
59
|
+
*/
|
|
60
|
+
private static saveFailureReason;
|
|
52
61
|
/** Fallback artifact type for agent payloads when the agent declares no DefaultArtifactTypeID. */
|
|
53
62
|
private static readonly JSON_ARTIFACT_TYPE_ID;
|
|
54
63
|
/**
|
|
@@ -275,7 +284,7 @@ export declare class AgentRunner {
|
|
|
275
284
|
* @param value - Any value, however malformed.
|
|
276
285
|
* @returns A short single-line description, never throwing.
|
|
277
286
|
*/
|
|
278
|
-
private static
|
|
287
|
+
private static describeUntrustedValue;
|
|
279
288
|
/**
|
|
280
289
|
* Escapes an id for interpolation into a `RunView.ExtraFilter`, warning when the value cannot
|
|
281
290
|
* be an id at all.
|
|
@@ -291,7 +300,7 @@ export declare class AgentRunner {
|
|
|
291
300
|
* @param label - What the id is, for the warning.
|
|
292
301
|
* @returns The escaped id, ready to sit inside single quotes.
|
|
293
302
|
*/
|
|
294
|
-
private static
|
|
303
|
+
private static filterId;
|
|
295
304
|
/**
|
|
296
305
|
* Coerces one of a directive's free-text fields into something safe to persist.
|
|
297
306
|
*
|
|
@@ -305,7 +314,7 @@ export declare class AgentRunner {
|
|
|
305
314
|
* @param maxLength - Column limit to clamp to; omit for `nvarchar(MAX)` columns.
|
|
306
315
|
* @returns The trimmed (and clamped) text, or `undefined` when there is nothing usable.
|
|
307
316
|
*/
|
|
308
|
-
private static
|
|
317
|
+
private static safeDirectiveText;
|
|
309
318
|
/**
|
|
310
319
|
* Vets one rung of the version-target ladder, returning the plan with a normalized id when the
|
|
311
320
|
* target is usable and `null` when the caller should fall back.
|
|
@@ -396,7 +405,7 @@ export declare class AgentRunner {
|
|
|
396
405
|
* @returns Generated conversation name and description, or null if generation failed
|
|
397
406
|
* @private
|
|
398
407
|
*/
|
|
399
|
-
private
|
|
408
|
+
private generateConversationName;
|
|
400
409
|
/**
|
|
401
410
|
* Saves media outputs to AIAgentRunMedia table for permanent storage.
|
|
402
411
|
* Creates a record for each media output promoted during agent execution.
|
|
@@ -572,6 +581,9 @@ export declare class AgentRunner {
|
|
|
572
581
|
* Gathers all artifacts from a conversation (both artifact-system records and
|
|
573
582
|
* uploaded file attachments) so the ArtifactToolManager can make them available
|
|
574
583
|
* to the agent as input artifacts.
|
|
584
|
+
*
|
|
585
|
+
* @param historyFrom The run's history floor (`ExecuteAgentParams.ConversationHistoryFrom`).
|
|
586
|
+
* When set, only artifacts attached to messages written at or after it are gathered.
|
|
575
587
|
*/
|
|
576
588
|
private gatherConversationArtifacts;
|
|
577
589
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentRunner.d.ts","sourceRoot":"","sources":["../src/AgentRunner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"AgentRunner.d.ts","sourceRoot":"","sources":["../src/AgentRunner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAsG,QAAQ,EAAE,iBAAiB,EAAsC,MAAM,sBAAsB,CAAC;AAG3M,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,WAAW,EAAE,aAAa,EAA4D,MAAM,8BAA8B,CAAC;AAC5K,OAAO,EAA+C,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAwBzG;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACjC,aAAa,EAAE,SAAS,mBAAmB,EAAE,GAAG,SAAS,EACzD,e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