@memberjunction/ai-agents 6.2.2 → 6.3.0-edge.1
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 +29 -6
- package/dist/AgentContextAssembler.d.ts +127 -0
- package/dist/AgentContextAssembler.d.ts.map +1 -0
- package/dist/AgentContextAssembler.js +482 -0
- package/dist/AgentContextAssembler.js.map +1 -0
- package/dist/AgentDataPreloader.d.ts +14 -3
- package/dist/AgentDataPreloader.d.ts.map +1 -1
- package/dist/AgentDataPreloader.js +147 -22
- package/dist/AgentDataPreloader.js.map +1 -1
- package/dist/AgentDecisionService.d.ts +10 -1
- package/dist/AgentDecisionService.d.ts.map +1 -1
- package/dist/AgentDecisionService.js +28 -13
- package/dist/AgentDecisionService.js.map +1 -1
- package/dist/AgentFeedbackCoordinator.d.ts +169 -0
- package/dist/AgentFeedbackCoordinator.d.ts.map +1 -0
- package/dist/AgentFeedbackCoordinator.js +593 -0
- package/dist/AgentFeedbackCoordinator.js.map +1 -0
- package/dist/AgentRunner.d.ts +57 -15
- package/dist/AgentRunner.d.ts.map +1 -1
- package/dist/AgentRunner.js +692 -101
- package/dist/AgentRunner.js.map +1 -1
- package/dist/AgentStepDispatcher.d.ts +211 -0
- package/dist/AgentStepDispatcher.d.ts.map +1 -0
- package/dist/AgentStepDispatcher.js +729 -0
- package/dist/AgentStepDispatcher.js.map +1 -0
- package/dist/AgentTreeBudgetTracker.d.ts +163 -0
- package/dist/AgentTreeBudgetTracker.d.ts.map +1 -0
- package/dist/AgentTreeBudgetTracker.js +415 -0
- package/dist/AgentTreeBudgetTracker.js.map +1 -0
- package/dist/AgentWakeTriggerService.d.ts +41 -1
- package/dist/AgentWakeTriggerService.d.ts.map +1 -1
- package/dist/AgentWakeTriggerService.js +154 -8
- package/dist/AgentWakeTriggerService.js.map +1 -1
- package/dist/ArtifactToolManager.d.ts +134 -39
- package/dist/ArtifactToolManager.d.ts.map +1 -1
- package/dist/ArtifactToolManager.js +2761 -321
- package/dist/ArtifactToolManager.js.map +1 -1
- package/dist/GovernedArtifactService.d.ts +367 -0
- package/dist/GovernedArtifactService.d.ts.map +1 -0
- package/dist/GovernedArtifactService.js +2569 -0
- package/dist/GovernedArtifactService.js.map +1 -0
- package/dist/MJAIAgentRequestEntityServer.d.ts +32 -1
- package/dist/MJAIAgentRequestEntityServer.d.ts.map +1 -1
- package/dist/MJAIAgentRequestEntityServer.js +105 -3
- package/dist/MJAIAgentRequestEntityServer.js.map +1 -1
- package/dist/SkillMarkdownConverter.d.ts +1 -1
- package/dist/SkillMarkdownConverter.d.ts.map +1 -1
- package/dist/SkillMarkdownConverter.js +8 -6
- package/dist/SkillMarkdownConverter.js.map +1 -1
- package/dist/agent-context-injector.d.ts +2 -25
- package/dist/agent-context-injector.d.ts.map +1 -1
- package/dist/agent-context-injector.js +38 -153
- package/dist/agent-context-injector.js.map +1 -1
- package/dist/agent-instance.d.ts +28 -0
- package/dist/agent-instance.d.ts.map +1 -0
- package/dist/agent-instance.js +39 -0
- package/dist/agent-instance.js.map +1 -0
- package/dist/agent-memory-context-builder.d.ts.map +1 -1
- package/dist/agent-memory-context-builder.js +46 -42
- package/dist/agent-memory-context-builder.js.map +1 -1
- package/dist/agent-pre-execution-rag.d.ts +5 -0
- package/dist/agent-pre-execution-rag.d.ts.map +1 -1
- package/dist/agent-pre-execution-rag.js +10 -0
- package/dist/agent-pre-execution-rag.js.map +1 -1
- package/dist/agent-run-watchdog.d.ts +38 -6
- package/dist/agent-run-watchdog.d.ts.map +1 -1
- package/dist/agent-run-watchdog.js +75 -13
- package/dist/agent-run-watchdog.js.map +1 -1
- package/dist/agent-types/flow-agent-type.d.ts +6 -1
- package/dist/agent-types/flow-agent-type.d.ts.map +1 -1
- package/dist/agent-types/flow-agent-type.js +30 -7
- package/dist/agent-types/flow-agent-type.js.map +1 -1
- package/dist/agent-types/loop-agent-prompt-params.d.ts +18 -0
- package/dist/agent-types/loop-agent-prompt-params.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-prompt-params.js +2 -0
- package/dist/agent-types/loop-agent-prompt-params.js.map +1 -1
- package/dist/agent-types/loop-agent-type.d.ts +4 -0
- package/dist/agent-types/loop-agent-type.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-type.js +29 -0
- package/dist/agent-types/loop-agent-type.js.map +1 -1
- package/dist/artifact-presence-locator.d.ts +132 -0
- package/dist/artifact-presence-locator.d.ts.map +1 -0
- package/dist/artifact-presence-locator.js +472 -0
- package/dist/artifact-presence-locator.js.map +1 -0
- package/dist/artifact-tools/CSVToolLibrary.d.ts +2 -2
- package/dist/artifact-tools/CSVToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/CSVToolLibrary.js +41 -14
- package/dist/artifact-tools/CSVToolLibrary.js.map +1 -1
- package/dist/artifact-tools/DataSnapshotToolLibrary.d.ts +2 -2
- package/dist/artifact-tools/DataSnapshotToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/DataSnapshotToolLibrary.js +53 -21
- package/dist/artifact-tools/DataSnapshotToolLibrary.js.map +1 -1
- package/dist/artifact-tools/DocumentToolLibrary.d.ts +101 -0
- package/dist/artifact-tools/DocumentToolLibrary.d.ts.map +1 -0
- package/dist/artifact-tools/DocumentToolLibrary.js +1846 -0
- package/dist/artifact-tools/DocumentToolLibrary.js.map +1 -0
- package/dist/artifact-tools/DocxToolLibrary.d.ts +2 -4
- package/dist/artifact-tools/DocxToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/DocxToolLibrary.js +42 -30
- package/dist/artifact-tools/DocxToolLibrary.js.map +1 -1
- package/dist/artifact-tools/ExcelToolLibrary.d.ts +2 -3
- package/dist/artifact-tools/ExcelToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/ExcelToolLibrary.js +105 -49
- package/dist/artifact-tools/ExcelToolLibrary.js.map +1 -1
- package/dist/artifact-tools/GenericBinaryToolLibrary.d.ts +2 -2
- package/dist/artifact-tools/GenericBinaryToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/GenericBinaryToolLibrary.js +3 -2
- package/dist/artifact-tools/GenericBinaryToolLibrary.js.map +1 -1
- package/dist/artifact-tools/JSONToolLibrary.d.ts +4 -4
- package/dist/artifact-tools/JSONToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/JSONToolLibrary.js +32 -11
- package/dist/artifact-tools/JSONToolLibrary.js.map +1 -1
- package/dist/artifact-tools/PDFToolLibrary.d.ts +27 -3
- package/dist/artifact-tools/PDFToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/PDFToolLibrary.js +36 -21
- package/dist/artifact-tools/PDFToolLibrary.js.map +1 -1
- package/dist/artifact-tools/SearchResultSetToolLibrary.d.ts +2 -2
- package/dist/artifact-tools/SearchResultSetToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/SearchResultSetToolLibrary.js +83 -24
- package/dist/artifact-tools/SearchResultSetToolLibrary.js.map +1 -1
- package/dist/artifact-tools/SlideDeckToolLibrary.d.ts +50 -0
- package/dist/artifact-tools/SlideDeckToolLibrary.d.ts.map +1 -0
- package/dist/artifact-tools/SlideDeckToolLibrary.js +1617 -0
- package/dist/artifact-tools/SlideDeckToolLibrary.js.map +1 -0
- package/dist/artifact-tools/SpreadsheetToolLibrary.d.ts +87 -0
- package/dist/artifact-tools/SpreadsheetToolLibrary.d.ts.map +1 -0
- package/dist/artifact-tools/SpreadsheetToolLibrary.js +3351 -0
- package/dist/artifact-tools/SpreadsheetToolLibrary.js.map +1 -0
- package/dist/artifact-tools/TextToolLibrary.d.ts +3 -3
- package/dist/artifact-tools/TextToolLibrary.d.ts.map +1 -1
- package/dist/artifact-tools/TextToolLibrary.js +34 -24
- package/dist/artifact-tools/TextToolLibrary.js.map +1 -1
- package/dist/artifact-tools/WhiteboardToolLibrary.d.ts +69 -0
- package/dist/artifact-tools/WhiteboardToolLibrary.d.ts.map +1 -0
- package/dist/artifact-tools/WhiteboardToolLibrary.js +555 -0
- package/dist/artifact-tools/WhiteboardToolLibrary.js.map +1 -0
- package/dist/artifact-tools/artifact-comment-suggestion-helper.d.ts +98 -0
- package/dist/artifact-tools/artifact-comment-suggestion-helper.d.ts.map +1 -0
- package/dist/artifact-tools/artifact-comment-suggestion-helper.js +851 -0
- package/dist/artifact-tools/artifact-comment-suggestion-helper.js.map +1 -0
- package/dist/artifact-tools/artifact-tool-helpers.d.ts +21 -0
- package/dist/artifact-tools/artifact-tool-helpers.d.ts.map +1 -0
- package/dist/artifact-tools/artifact-tool-helpers.js +74 -0
- package/dist/artifact-tools/artifact-tool-helpers.js.map +1 -0
- package/dist/artifact-tools/grepHelper.d.ts +27 -0
- package/dist/artifact-tools/grepHelper.d.ts.map +1 -0
- package/dist/artifact-tools/grepHelper.js +229 -0
- package/dist/artifact-tools/grepHelper.js.map +1 -0
- package/dist/artifact-tools/node-vm-safe-regex.d.ts +10 -0
- package/dist/artifact-tools/node-vm-safe-regex.d.ts.map +1 -0
- package/dist/artifact-tools/node-vm-safe-regex.js +148 -0
- package/dist/artifact-tools/node-vm-safe-regex.js.map +1 -0
- package/dist/base-agent.d.ts +151 -137
- package/dist/base-agent.d.ts.map +1 -1
- package/dist/base-agent.js +727 -1550
- package/dist/base-agent.js.map +1 -1
- package/dist/catalog-narrowing.d.ts +112 -5
- package/dist/catalog-narrowing.d.ts.map +1 -1
- package/dist/catalog-narrowing.js +181 -6
- package/dist/catalog-narrowing.js.map +1 -1
- package/dist/decision-discovery.d.ts +42 -15
- package/dist/decision-discovery.d.ts.map +1 -1
- package/dist/decision-discovery.js +90 -20
- package/dist/decision-discovery.js.map +1 -1
- package/dist/index.d.ts +17 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/memory-decision-uses.d.ts +206 -0
- package/dist/memory-decision-uses.d.ts.map +1 -0
- package/dist/memory-decision-uses.js +259 -0
- package/dist/memory-decision-uses.js.map +1 -0
- package/dist/memory-manager-agent.d.ts +66 -6
- package/dist/memory-manager-agent.d.ts.map +1 -1
- package/dist/memory-manager-agent.js +184 -31
- package/dist/memory-manager-agent.js.map +1 -1
- package/dist/memory-note-gate.d.ts +12 -9
- package/dist/memory-note-gate.d.ts.map +1 -1
- package/dist/memory-note-gate.js +16 -11
- package/dist/memory-note-gate.js.map +1 -1
- package/dist/native-tools/control-tools.d.ts +8 -1
- package/dist/native-tools/control-tools.d.ts.map +1 -1
- package/dist/native-tools/control-tools.js +38 -5
- package/dist/native-tools/control-tools.js.map +1 -1
- package/dist/native-tools/framework-tools.d.ts +3 -3
- package/dist/native-tools/framework-tools.d.ts.map +1 -1
- package/dist/native-tools/framework-tools.js +20 -8
- package/dist/native-tools/framework-tools.js.map +1 -1
- package/dist/pipeline/operators.d.ts.map +1 -1
- package/dist/pipeline/operators.js +1 -1
- package/dist/pipeline/operators.js.map +1 -1
- package/dist/pipeline/pipeline-executor.d.ts +29 -1
- package/dist/pipeline/pipeline-executor.d.ts.map +1 -1
- package/dist/pipeline/pipeline-executor.js +159 -2
- package/dist/pipeline/pipeline-executor.js.map +1 -1
- package/dist/pipeline/pipeline.types.d.ts +19 -1
- package/dist/pipeline/pipeline.types.d.ts.map +1 -1
- package/dist/pipeline/template.d.ts +16 -0
- package/dist/pipeline/template.d.ts.map +1 -1
- package/dist/pipeline/template.js +55 -6
- package/dist/pipeline/template.js.map +1 -1
- package/dist/realtime/artifact-workspace-channel-server.d.ts +27 -0
- package/dist/realtime/artifact-workspace-channel-server.d.ts.map +1 -0
- package/dist/realtime/artifact-workspace-channel-server.js +43 -0
- package/dist/realtime/artifact-workspace-channel-server.js.map +1 -0
- package/dist/realtime/bridge-realtime-session-factory.d.ts +2 -2
- package/dist/realtime/bridge-realtime-session-factory.d.ts.map +1 -1
- package/dist/realtime/bridge-realtime-session-factory.js +7 -56
- 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 +28 -1
- package/dist/realtime/bridge-room-transcript-sink.js.map +1 -1
- package/dist/realtime/media-channel-server.js +1 -1
- package/dist/realtime/media-channel-server.js.map +1 -1
- package/dist/realtime/realtime-artifact-helpers.d.ts +37 -0
- package/dist/realtime/realtime-artifact-helpers.d.ts.map +1 -0
- package/dist/realtime/realtime-artifact-helpers.js +150 -0
- package/dist/realtime/realtime-artifact-helpers.js.map +1 -0
- package/dist/realtime/realtime-client-session-service.d.ts +209 -19
- package/dist/realtime/realtime-client-session-service.d.ts.map +1 -1
- package/dist/realtime/realtime-client-session-service.js +670 -41
- package/dist/realtime/realtime-client-session-service.js.map +1 -1
- package/dist/realtime/realtime-coagent-config.d.ts +26 -9
- package/dist/realtime/realtime-coagent-config.d.ts.map +1 -1
- package/dist/realtime/realtime-coagent-config.js +47 -60
- package/dist/realtime/realtime-coagent-config.js.map +1 -1
- package/dist/realtime/realtime-delegation-narrator.js +1 -1
- package/dist/realtime/realtime-delegation-narrator.js.map +1 -1
- package/dist/realtime/realtime-moderator-decision.d.ts +86 -0
- package/dist/realtime/realtime-moderator-decision.d.ts.map +1 -0
- package/dist/realtime/realtime-moderator-decision.js +131 -0
- package/dist/realtime/realtime-moderator-decision.js.map +1 -0
- package/dist/realtime/realtime-session-runner.d.ts +2 -0
- package/dist/realtime/realtime-session-runner.d.ts.map +1 -1
- package/dist/realtime/realtime-session-runner.js +24 -3
- package/dist/realtime/realtime-session-runner.js.map +1 -1
- package/dist/realtime/realtime-tool-broker.d.ts +6 -0
- package/dist/realtime/realtime-tool-broker.d.ts.map +1 -1
- package/dist/realtime/realtime-tool-broker.js +4 -2
- package/dist/realtime/realtime-tool-broker.js.map +1 -1
- package/dist/realtime/realtime-turn-moderator.d.ts +20 -0
- package/dist/realtime/realtime-turn-moderator.d.ts.map +1 -1
- package/dist/realtime/realtime-turn-moderator.js +63 -8
- package/dist/realtime/realtime-turn-moderator.js.map +1 -1
- package/dist/repeated-failing-step.d.ts +50 -0
- package/dist/repeated-failing-step.d.ts.map +1 -0
- package/dist/repeated-failing-step.js +130 -0
- package/dist/repeated-failing-step.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +20 -20
package/README.md
CHANGED
|
@@ -142,7 +142,7 @@ Conversational agent that runs in a loop: prompt -> decide -> act -> repeat. Bes
|
|
|
142
142
|
|
|
143
143
|
##### Decision models
|
|
144
144
|
|
|
145
|
-
An agent can ask a fast decision model typed questions in
|
|
145
|
+
An agent can ask a fast decision model typed questions in seven 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, except the Memory Manager's two:
|
|
146
146
|
|
|
147
147
|
| Use | Its own setting |
|
|
148
148
|
|---|---|
|
|
@@ -150,11 +150,23 @@ An agent can ask a fast decision model typed questions in six places on its own.
|
|
|
150
150
|
| `finishIf` gates on an Actions or Sub-Agent step | `finishIfMode: 'shadow'` or `'on'` |
|
|
151
151
|
| Decision discovery (suggest an agent before the first prompt) | `decisionDiscovery: true` |
|
|
152
152
|
| Payload change check | `payloadFeedbackCheck: true` |
|
|
153
|
-
| Catalog narrowing | `maxActionsInPrompt` / `maxSubAgentsInPrompt` > 0 |
|
|
154
|
-
| Memory Manager note gate | run `data.enableDecisionGate:
|
|
153
|
+
| Catalog narrowing | `maxActionsInPrompt` / `maxSubAgentsInPrompt` / `maxSkillsInPrompt` > 0 |
|
|
154
|
+
| Memory Manager note gate | on by default; a run turns it off with `data.enableDecisionGate: false` |
|
|
155
|
+
| Memory Manager dedupe and contradiction decisions | run `data.memoryDecisionMode`: `'Shadow'` by default, `'Prompt'` or `'Decision'` |
|
|
156
|
+
|
|
157
|
+
The Memory Manager ships with `decisionsEnabled: true`, and Sage with `decisionsEnabled: true` and `decisionDiscovery: true` (`metadata/agents`). The Memory Manager's decisions ask its `decisionPromptName` on the run's execution scope.
|
|
155
158
|
|
|
156
159
|
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).
|
|
157
160
|
|
|
161
|
+
##### Skill Catalog Narrowing & Hybrid Prioritization (`maxSkillsInPrompt`)
|
|
162
|
+
|
|
163
|
+
When an agent has access to a large library of skills (`AcceptsSkills = 'All'`), `LoopAgentPromptParams` supports capping the skills injected into the system prompt via `maxSkillsInPrompt` (default `25` when `decisionsEnabled: true` or when explicitly set) and `maxSkillDecisionCandidates` (default `60`).
|
|
164
|
+
|
|
165
|
+
In [`catalog-narrowing.ts`](./src/catalog-narrowing.ts), [`BaseAgent.narrowCatalogsIfConfigured`](./src/base-agent.ts) runs a **two-stage narrowing pipeline**:
|
|
166
|
+
1. **Stage 1 (`PreFilterSkillCandidatesForDecision` + `RankSkillsByHybridRelevance`)**: Ranks all available skills in-memory (`0ms`) using a weighted hybrid score combining lexical/semantic query fit across skill name, description, category, and bundled action names (`0.55`), log-normalized agent-specific + global usage frequency from recent `MJ: AI Agent Run Steps` (`0.25`), and exponential recency decay with a 7-day half-life (`0.20`), slicing the top `maxSkillDecisionCandidates` (60).
|
|
167
|
+
2. **Stage 2 (`NarrowSkillsWithDecision`)**: When `decisionsEnabled: true`, passes the Stage 1 shortlist to `AgentDecisionService` (`selectRelevantCatalogItems`) to pick up to `maxSkillsInPrompt`. When `decisionsEnabled: false` (or if the decision call fails), deterministically slices the top `maxSkillsInPrompt` from Stage 1.
|
|
168
|
+
3. **Pinned Skills & Discovery Guidance**: Any skill already activated in the run (`_activatedSkillIDs`) or requested via `requestedSkillIDs` is pinned (`pinnedSkillIDs`) so it is never dropped. When skills are narrowed and the agent holds `Find Candidate Skills`, `BuildCatalogNarrowingNote` appends guidance instructing the model to use `Find Candidate Skills` and `Get Skill Details` to discover omitted skills.
|
|
169
|
+
|
|
158
170
|
##### Untrusted external data
|
|
159
171
|
|
|
160
172
|
Some actions return content that nobody inside MJ wrote: web pages, search results, mail, feeds, arbitrary HTTP responses, MCP tool output. The loop agent wraps such a result in an `<untrusted_external_data source="…" trust="…" warning="…">` envelope (any closing tag inside the content is escaped first), drops the action's `AIDirectives`, and marks the run **tainted**. A tainted run's `memory_write` notes land with `Status = 'Pending'` and the sources named in `Comments`, so an instruction smuggled in a web page cannot become an active memory. A parent run absorbs its sub-agents' sources when the sub-agent step completes. `ExecuteAgentResult.taintedSources` carries them to the caller.
|
|
@@ -174,7 +186,7 @@ Client tools declare `TrustLevel` on their `ClientToolMetadata`; a browser DOM e
|
|
|
174
186
|
|
|
175
187
|
When an artifact-producing Loop agent finishes a turn (`taskComplete: true`), it controls whether its final payload creates a new artifact, versions an existing artifact in the conversation, or suppresses artifact creation via `artifactDirective: { behavior: 'create-new' | 'version-source' | 'suppress', targetArtifactId?, name?, description? }`:
|
|
176
188
|
|
|
177
|
-
- **Default-on per-agent gating (`_ARTIFACTS_ENABLED`)**: `BaseAgent.isArtifactSupportEnabled(agent)` returns `true` unless `AIAgent.ArtifactCreationMode` is `'Never'` or `'System Only'`. The Loop Agent system prompt (`{% if _ARTIFACTS_ENABLED != false %}`) and `<mj-runtime-state>` automatically omit
|
|
189
|
+
- **Default-on per-agent gating (`_ARTIFACTS_ENABLED`)**: `BaseAgent.isArtifactSupportEnabled(agent)` returns `true` unless `AIAgent.ArtifactCreationMode` is `'Never'` or `'System Only'`. The Loop Agent system prompt (`{% if _ARTIFACTS_ENABLED != false %}`) and `<mj-runtime-state>` automatically omit turn-end `artifactDirective` / automatic JSON payload creation for non-artifact agents (such as `Sage`), while keeping explicit workspace artifact tools (`create_artifact`, `open_artifact`, `list_workspace_artifacts`, `create_synthesized_artifact`) enabled whenever `includeArtifactToolsDocs !== false` and `contextUser` is present. Collaborative artifacts created or updated mid-run are reported in `ExecuteAgentResult.touchedArtifacts` (`GovernedRunArtifactSummary[]`), and server-side live presence + CoreAction governance run through `GovernedArtifactService`.
|
|
178
190
|
- **Full-conversation artifact targeting (`targetArtifactId`)**: `AgentRunner` loads the conversation's prior output artifacts into `_CONVERSATION_ARTIFACTS` so the agent can version any earlier artifact by `targetArtifactId` (not just the immediately preceding turn's artifact).
|
|
179
191
|
- **Clean payload reset on `create-new`**: When `artifactDirective.behavior === 'create-new'` and the current payload is still the unmodified inherited payload from the prior conversation turn (`payload === params.payload`, even after read-only action steps) or `replaceElements` is used, `BaseAgent.executePromptStep` applies `payloadChangeRequest` against a fresh `{}` object so fields from a prior artifact never bleed into the new artifact.
|
|
180
192
|
|
|
@@ -280,7 +292,7 @@ Key pieces in this package:
|
|
|
280
292
|
- **`RealtimeAgentType`** (`src/agent-types/realtime-agent-type.ts`) — the registered agent type (`@RegisterClass(BaseAgentType, "RealtimeAgentType")`). Its `IsSessionDriven` getter makes `BaseAgent.ExecuteAgent` branch into `executeRealtimeSession()` instead of the loop; the loop-oriented abstract methods are implemented defensively and should never be reached.
|
|
281
293
|
- **`RealtimeSessionRunner`** (`src/realtime/realtime-session-runner.ts`) — dependency-injected orchestrator for the **server-bridged** topology: opens the `IRealtimeSession`, registers the stable tool set, persists transcript turns, checkpoints usage onto the single long-lived `AIPromptRun` on a debounced cadence (crash-safe — a janitor close finalizes from the last-persisted values), and aborts an in-flight delegated run on barge-in. It also **narrates** delegated work itself: each significant progress event is fed to the session's optional `SendContextNote`, and a built-in pacing engine (first spoken update ~5 s into a burst, ≥8 s session-global spacing, deduped multi-message digests, cancellation on completion/barge-in) drives `RequestSpokenUpdate` — both feature-detected, since providers may omit either capability. Fully unit-testable against a mock realtime model.
|
|
282
294
|
- **`realtime-narration.ts`** (`src/realtime/realtime-narration.ts`) — the shared narration module both topologies use: `ResolveNarrationInstructionsTemplate()` resolves the DB-driven `Realtime Co-Agent - Progress Narration` prompt (with a deprecated fallback to the pre-rename `Voice Co-Agent - Progress Narration` seed name) from `AIEngine`'s cache, and `BuildServerNarrationInstructions()` substitutes its placeholders for the server-bridged runner (the browser host has its own richer builder that chains the model's actual prior narrations — only the browser can observe those).
|
|
283
|
-
- **`RealtimeTurnModerator`** (`src/realtime/realtime-turn-moderator.ts`, exported as `RealtimeTurnModeratorDecision`) — the **multi-agent turn moderator** behind the bridge engine's `SetTurnModerator` seam. In a multi-agent voice room it decides, once per turn, which agent(s) (0+, ordered) should speak next — routing direct address *and* relevance, letting a productive agent↔agent exchange run, and going quiet on unproductive ping-pong. It runs as a fast **`AIPromptRun`** (not an agent run — a stateless who-speaks classification) via `AIPromptRunner`, tied to the co-agent's `AIAgentRun` for full observability, resolving its room-wide config from the **Realtime agent type's `DefaultConfiguration`** (`turnTaking.moderator` in `realtime-coagent-config.ts`) and the per-agent `mode` from the target agent's layer. The seeded `"Realtime: Turn Moderator"` prompt is bound to a small/fast model (GPT-OSS-120B on Cerebras, swappable in metadata) because it sits on the latency-critical path. Degrades to a name-contains safety net only when no prompt is configured; the engine itself falls back to the per-agent matcher broadcast when no moderator is wired. The engine-side mechanics (lookback, serialized floor queue, pre-staging, barge-in invalidation) and the config cascade are documented in the [Real-Time Co-Agents Guide §4](../../../guides/REALTIME_CO_AGENTS_GUIDE.md#turn-moderator-multi-agent-turn-taking) and the [Realtime Bridges Guide §9](../../../guides/REALTIME_BRIDGES_GUIDE.md#turn-moderator--room-level-who-speaks-next-engine-seam).
|
|
295
|
+
- **`RealtimeTurnModerator`** (`src/realtime/realtime-turn-moderator.ts`, exported as `RealtimeTurnModeratorDecision`) — the **multi-agent turn moderator** behind the bridge engine's `SetTurnModerator` seam. In a multi-agent voice room it decides, once per turn, which agent(s) (0+, ordered) should speak next — routing direct address *and* relevance, letting a productive agent↔agent exchange run, and going quiet on unproductive ping-pong. It runs as a fast **`AIPromptRun`** (not an agent run — a stateless who-speaks classification) via `AIPromptRunner`, tied to the co-agent's `AIAgentRun` for full observability, resolving its room-wide config from the **Realtime agent type's `DefaultConfiguration`** (`turnTaking.moderator` in `realtime-coagent-config.ts`) and the per-agent `mode` from the target agent's layer. The seeded `"Realtime: Turn Moderator"` prompt is bound to a small/fast model (GPT-OSS-120B on Cerebras, swappable in metadata) because it sits on the latency-critical path. Beside the prompt it can ask one decision-model Likelihood per roster agent (`turnTaking.moderator.decisionMode`: `'Shadow'` by default, which records the comparison and adds no latency; `'Decision'` once a `realtime-turn-moderator` calibration ships; see [Decision Models in Agents](docs/loop-agent-decisions.md#realtime-turn-moderator)). Degrades to a name-contains safety net only when no prompt is configured; the engine itself falls back to the per-agent matcher broadcast when no moderator is wired. The engine-side mechanics (lookback, serialized floor queue, pre-staging, barge-in invalidation) and the config cascade are documented in the [Real-Time Co-Agents Guide §4](../../../guides/REALTIME_CO_AGENTS_GUIDE.md#turn-moderator-multi-agent-turn-taking) and the [Realtime Bridges Guide §9](../../../guides/REALTIME_BRIDGES_GUIDE.md#turn-moderator--room-level-who-speaks-next-engine-seam).
|
|
284
296
|
|
|
285
297
|
- **`RealtimeToolBroker`** (`src/realtime/realtime-tool-broker.ts`) — the **topology-agnostic** tool-execution path both topologies share, so a tool call produces byte-for-byte identical results whether the provider socket lives on the server or in the browser. Routes the stable `invoke-target-agent` tool (the co-agent's one headline capability — the target rides *inside* the call, never as a per-target tool) to the delegation seam, everything else to the tool executor; owns the per-call `AbortController`; serializes failures as structured errors the model can *narrate*.
|
|
286
298
|
- **`RealtimeClientSessionService`** (`src/realtime/realtime-client-session-service.ts`) — the server half of the **client-direct** topology (the shipped audio path: the browser opens its own provider socket with a server-minted ephemeral token, while the server keeps prompt/tool authority and executes every relayed tool call). `PrepareClientSession` resolves the Realtime model, assembles the companion system prompt + memory context (including a resumed session's prior-leg transcript when the caller threads one in), mints the `ClientRealtimeSessionConfig`, and creates the co-agent **observability run** (an `AIAgentRun` + linked `AIPromptRun` stamped with the co-agent's `AgentID`, plus a single `Prompt`-type `AIAgentRunStep` whose `TargetLogID` points at the prompt run — finalized with a `Success` stamp by `FinalizeCoAgentRun`). `ExecuteRelayedTool` runs relayed calls through the shared broker — registering each in a per-session **in-flight delegation registry** so `CancelInFlightDelegations(sessionId, callId?)` (the engine behind the `CancelRealtimeSessionTool` mutation) can abort them on explicit user cancel — including resuming a paused (`AwaitingFeedback`) interactive run and creating artifacts from delegated-run payloads.
|
|
@@ -399,6 +411,16 @@ Memory Cleanup Agent has been deprecated — its responsibilities are folded int
|
|
|
399
411
|
|
|
400
412
|
For the full design (functional requirements, threshold rationale, decay curve, contradiction taxonomy), see [`specs/001-memory-consolidation/spec.md`](../../../specs/001-memory-consolidation/spec.md) and the implementation in [`src/memory-manager-agent.ts`](./src/memory-manager-agent.ts).
|
|
401
413
|
|
|
414
|
+
### DuplicateReasoningAgentProvider
|
|
415
|
+
|
|
416
|
+
The `'Agent'` reasoning mode for duplicate detection. It registers under the `'Agent'` key against
|
|
417
|
+
`DuplicateReasoningProvider` (from `@memberjunction/ai-vector-dupe`) and runs the **Duplicate
|
|
418
|
+
Resolution Agent** — or the entity document's `ReasoningAgentID` — over one matched set, returning the
|
|
419
|
+
same per-candidate verdict, proposed survivor and field choices as the single-shot `'Prompt'` mode.
|
|
420
|
+
The match rows record the run in `AIAgentRunID`. It lives here, not in the dupe package, because this
|
|
421
|
+
package depends on that one. See the
|
|
422
|
+
[Duplicate Management Guide](../../../guides/DUPLICATE_MANAGEMENT_GUIDE.md#6-the-llm-reasoning-layer).
|
|
423
|
+
|
|
402
424
|
## Usage
|
|
403
425
|
|
|
404
426
|
### Basic Agent Execution
|
|
@@ -675,6 +697,7 @@ Self-scheduling agents such as the Chief of Staff normally wake on a cron or ada
|
|
|
675
697
|
| `TriggerWakeOnAgentRequestResolution` | `MJAIAgentRequestEntityServer.Save()` when an action-created `MJ: AI Agent Requests` row (`OriginatingAgentRunID` and `OriginatingTaskID` both null) moves from `Requested` to `Approved`, `Rejected` or `Responded` | The request owner (`RequestForUserID`) and `AgentID` | `approval-resolution` | `AgentRequestResolution` — `requestID`, `status`, `request`, `response`, parsed `responseData` and `commentsData`, `respondedByUserID`, `respondedAt` |
|
|
676
698
|
| Same method, inter-agent envelope | The resolved request's `Comments` is a `Send Inter-Agent Request` envelope (`interAgentCoordination: true`) | The **sender** user (`envelope.senderUserID`) and `senderAgentID` | envelope `workstreamKey`, else `inter-agent-resolution` | `InterAgentRequestResolved` — `requestID`, `status`, `subject`, `response`, `responseData`, `respondedByUserID`, `respondedAt`, `targetUserID`, `targetUserName` |
|
|
677
699
|
| `TriggerWakeOnIncomingInterAgentRequest` | `MJAIAgentRequestEntityServer.Save()` on a **new** `Requested` row whose `Comments` is an inter-agent envelope (`interAgentCoordination: true`) | The **target** user (`envelope.targetUserID`) and the request's `AgentID` | envelope `workstreamKey`, else `inter-agent-inbox` | `InterAgentRequestReceived` — `requestID`, `senderUserID`, `senderUserName`, `senderAgentID`, `subject`, `messageBody` |
|
|
700
|
+
| `TriggerWakeForWorkstream` | Generic programmatic entry point (`Trigger Agent Wake` action, `TaskType` `OnCreate` / `OnStatusChange` hooks, GitHub webhook handlers, Software Factory pipeline gates) passing `TriggerWorkstreamWakeInput` | Explicit `targetUserID` + `targetAgentID` (or `targetAgentName`) | Required `workstreamKey` (e.g., `task:<TaskID>`) | `ExternalWorkstreamEvent` (or caller's `resumeState.triggerType`) — `workstreamKey`, `wakeReason`, `triggeredAt`, and caller `resumeState` |
|
|
678
701
|
| `RouteInboundUtilityMailboxWake` | An inbound-email ingestion path (none wired yet) passing an `InboundUtilityMailboxEmailInput` | The verified internal sender (`fromAddress` matches an active `MJ: Users` row) and the `AgentID` of the matching `MJ: AI Bridge Agent Identities` row (`IdentityType = 'Email'`, `IsActive`) | input `workstreamKey`, else identity `Configuration.defaultWorkstreamKey`, else `inbound-utility-mailbox` | `InboundUtilityMailboxEmail` — `identityID`, `utilityMailboxAddress`, `senderUserID`, `senderEmail`, `messageID`, `subject`, `bodyPreview`, `receivedAt` |
|
|
679
702
|
|
|
680
703
|
Every `resumeState` also repeats the `workstreamKey`. Requests that carry `OriginatingAgentRunID` (a paused run) or `OriginatingTaskID` (a task graph) are skipped — those resume through the existing `lastRunId` path and the task dispatcher, not through a wake.
|
|
@@ -714,7 +737,7 @@ Detailed guides are available in the [`docs/`](./docs/) directory:
|
|
|
714
737
|
|---|---|
|
|
715
738
|
| [Actions Guide](./docs/actions-guide.md) | Action discovery, execution, result lifecycle, expiration/compaction, context recovery |
|
|
716
739
|
| [Artifact Tools & Output Lifecycle Guide](./docs/ARTIFACT_TOOLS_GUIDE.md) | Inbound artifact routing (`Inline` vs `ToolsOnly`), tool libraries, output `artifactDirective` lifecycle (`create-new`, `version-source`, `suppress`), `_ARTIFACTS_ENABLED` prompt gating, full-conversation artifact targeting, and `ArtifactType.ExtractRules` |
|
|
717
|
-
| [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 |
|
|
740
|
+
| [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, dedupe and contradiction decisions, and the realtime turn moderator |
|
|
718
741
|
| [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 |
|
|
719
742
|
| [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 |
|
|
720
743
|
| [Client Tools Guide](./docs/CLIENT_TOOLS_GUIDE.md) | Browser-side tool invocation, runtime decoration, timeout config, prompt design, security |
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Extracted prompt context assembly, catalog markdown formatting,
|
|
3
|
+
* and trailing `<mj-runtime-state>` message construction for {@link BaseAgent}.
|
|
4
|
+
*
|
|
5
|
+
* Isolates prompt template data formatting (sub-agents, actions, skills, client tools,
|
|
6
|
+
* application context), response-type auto-alignment, and cache-aware runtime-state
|
|
7
|
+
* message assembly into an independently testable collaborator (`WS-4.5b`).
|
|
8
|
+
*
|
|
9
|
+
* @module @memberjunction/ai-agents
|
|
10
|
+
*/
|
|
11
|
+
import { MJAIAgentEntityExtended, MJAIModelEntityExtended, AIPromptParams, AgentChatMessage, BoundActionParams, ClientToolMetadata } from '@memberjunction/ai-core-plus';
|
|
12
|
+
import { MJActionParamEntity, MJAISkillEntity, MJAIVendorEntity } from '@memberjunction/core-entities';
|
|
13
|
+
import { MJActionEntityExtended } from '@memberjunction/actions-base';
|
|
14
|
+
import { ChatMessage } from '@memberjunction/ai';
|
|
15
|
+
import { RuntimeStateDateTime, RuntimeStateScratchpad } from './runtime-state-fragment.js';
|
|
16
|
+
/**
|
|
17
|
+
* Input options for {@link AgentContextAssembler.BuildRuntimeStateFragment}.
|
|
18
|
+
*/
|
|
19
|
+
export interface BuildRuntimeStateFragmentInput<P = unknown> {
|
|
20
|
+
DateTime: RuntimeStateDateTime | null;
|
|
21
|
+
Scratchpad: RuntimeStateScratchpad | null;
|
|
22
|
+
Payload: P;
|
|
23
|
+
IncludePayload: boolean;
|
|
24
|
+
Specialization: string | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Coordinates prompt context assembly, catalog markdown generation, and
|
|
28
|
+
* cache-preserving `<mj-runtime-state>` trailing message construction for `BaseAgent`.
|
|
29
|
+
*/
|
|
30
|
+
export declare class AgentContextAssembler {
|
|
31
|
+
/**
|
|
32
|
+
* Assembles the outgoing message array for a single LLM request under `'trailingMessage'`
|
|
33
|
+
* runtime-state placement: escapes literal `<mj-runtime-state>` tags in non-system history
|
|
34
|
+
* messages and appends the fresh volatile-state fragment last.
|
|
35
|
+
*/
|
|
36
|
+
AssembleOutgoingMessages(history: ChatMessage[], fragment: AgentChatMessage, isAppendOnly?: boolean): ChatMessage[];
|
|
37
|
+
/**
|
|
38
|
+
* Returns true when the driver serving `model` on `vendor` binds replayed reasoning
|
|
39
|
+
* to the unchanged history prefix before it.
|
|
40
|
+
*/
|
|
41
|
+
DriverRequiresStableReasoningPrefix(model: MJAIModelEntityExtended | undefined, vendor: MJAIVendorEntity | undefined): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Determines whether `model` (as served by `vendor`) sits behind a byte-prefix prompt cache
|
|
44
|
+
* (`LLM.PrefixPromptCache`), read from the model catalog's `ModelConfiguration` cascade —
|
|
45
|
+
* `AIModelType < AIModel < AIVendor.Configuration.ModelDefaults < AIModelVendor` — via
|
|
46
|
+
* `AIEngine.GetEffectiveModelConfiguration`. The most specific layer is the INFERENCE-PROVIDER
|
|
47
|
+
* model-vendor row for `vendor`, whose vendor row supplies the host-wide default that beats the
|
|
48
|
+
* model's own bag; when the vendor is unknown, or has no inference row for this model, the model
|
|
49
|
+
* and type layers still answer. False when no layer declares it, which callers
|
|
50
|
+
* treat as a block cache (replace-in-place).
|
|
51
|
+
*/
|
|
52
|
+
ResolvePrefixPromptCache(model: MJAIModelEntityExtended | undefined, vendor: MJAIVendorEntity | undefined): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Returns true when unrendered template text contains any volatile state marker
|
|
55
|
+
* (indicating the template still embeds volatile state directly).
|
|
56
|
+
*/
|
|
57
|
+
TemplateTextEmbedsVolatileState(templateText: string, markers?: readonly string[]): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Resolves the three temporal placeholders (`_CURRENT_DATE`, `_CURRENT_DAY_OF_WEEK`, `_CURRENT_TIME`)
|
|
60
|
+
* for the trailing runtime-state fragment. Resolves only the three temporal placeholders (by name,
|
|
61
|
+
* through the same registry the template uses, so a registered override applies here too) rather
|
|
62
|
+
* than every system placeholder — this runs on every loop iteration.
|
|
63
|
+
*/
|
|
64
|
+
ResolveFragmentDateTime(promptParams: AIPromptParams, onError?: (error: Error | string, placeholderName: string) => void): Promise<RuntimeStateDateTime | null>;
|
|
65
|
+
/**
|
|
66
|
+
* Reads scratchpad notes, tasks, and task summary from prepared prompt template data
|
|
67
|
+
* (so the fragment shows exactly what the template would have). Null when the scratchpad
|
|
68
|
+
* is disabled or absent.
|
|
69
|
+
*/
|
|
70
|
+
ReadScratchpadFromTemplateData(data: Record<string, unknown>): RuntimeStateScratchpad | null;
|
|
71
|
+
/**
|
|
72
|
+
* Builds the serialized `<mj-runtime-state>` XML block from resolved date/time, scratchpad,
|
|
73
|
+
* payload, and optional relocated specialization.
|
|
74
|
+
*/
|
|
75
|
+
BuildRuntimeStateFragment<P>(input: BuildRuntimeStateFragmentInput<P>): string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Formats sub-agent details as compact markdown for inclusion in prompt context.
|
|
78
|
+
*/
|
|
79
|
+
FormatSubAgentDetails(subAgents: MJAIAgentEntityExtended[]): string;
|
|
80
|
+
/**
|
|
81
|
+
* Formats the skill CATALOG as compact markdown — name + description ONLY. This is
|
|
82
|
+
* progressive disclosure by design: the LLM sees just enough to decide whether to activate a
|
|
83
|
+
* skill (via a `'Skill'` next step), but never sees `Instructions` until it does.
|
|
84
|
+
*/
|
|
85
|
+
FormatSkillsCatalog(skills: MJAISkillEntity[]): string;
|
|
86
|
+
/**
|
|
87
|
+
* Formats action details as compact markdown for inclusion in prompt context.
|
|
88
|
+
* Produces ~75% fewer tokens than the previous JSON format while preserving
|
|
89
|
+
* all information the LLM needs to invoke actions correctly.
|
|
90
|
+
*
|
|
91
|
+
* A parameter the run binds (`ExecuteAgentParams.boundActionParams`) is left out, so the model is
|
|
92
|
+
* never told it exists. With no bindings the output is the cached catalog's, unchanged.
|
|
93
|
+
*/
|
|
94
|
+
FormatActionDetails(actions: MJActionEntityExtended[], boundActionParams?: BoundActionParams): string;
|
|
95
|
+
/**
|
|
96
|
+
* Formats a single action parameter as a compact inline markdown string.
|
|
97
|
+
* Uses `\*` suffix for required, `(array)` when `IsArray`, and only shows
|
|
98
|
+
* `ValueType` when it is not `Scalar`/`Other`.
|
|
99
|
+
*/
|
|
100
|
+
FormatActionParameter(param: MJActionParamEntity): string;
|
|
101
|
+
/**
|
|
102
|
+
* Resolves the client tools in force for a run: the agent's static metadata tools under the
|
|
103
|
+
* session, app, and override tiers, merged by {@link ResolveClientTools} with its fixed precedence.
|
|
104
|
+
* Both the prompt section and the client-tool execution step resolve through here so the tools
|
|
105
|
+
* offered to the model and the metadata its results are classified against come from one list.
|
|
106
|
+
*/
|
|
107
|
+
ResolveClientToolsForRun(agent: MJAIAgentEntityExtended, extraData?: Record<string, unknown>): ClientToolMetadata[];
|
|
108
|
+
/**
|
|
109
|
+
* Builds the client tool prompt section for system prompt injection across static,
|
|
110
|
+
* session, app, and override tiers (`override > session > app > static`).
|
|
111
|
+
*/
|
|
112
|
+
BuildClientToolPromptSection(agent: MJAIAgentEntityExtended, extraData?: Record<string, unknown>): string;
|
|
113
|
+
/**
|
|
114
|
+
* Builds the current application context markdown section from `extraData.appContext`.
|
|
115
|
+
*/
|
|
116
|
+
BuildAppContextSection(extraData?: Record<string, unknown>): string;
|
|
117
|
+
/**
|
|
118
|
+
* Extracts default values from an agent type's JSON Schema `PromptParamsSchema`.
|
|
119
|
+
*/
|
|
120
|
+
ExtractSchemaDefaults(schemaJson: string | null | undefined): Record<string, unknown>;
|
|
121
|
+
/**
|
|
122
|
+
* Applies auto-alignment rules to `includeResponseTypeDefinition` based on documentation
|
|
123
|
+
* and capability flags on `params`.
|
|
124
|
+
*/
|
|
125
|
+
ApplyResponseTypeAutoAlignment(params: Record<string, unknown>, explicitResponseType?: Record<string, unknown>, decisionsEnabled?: boolean): void;
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=AgentContextAssembler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentContextAssembler.d.ts","sourceRoot":"","sources":["../src/AgentContextAssembler.ts"],"names":[],"mappings":"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"}
|