@memberjunction/ai-agents 6.2.0-edge.6 → 6.2.0-edge.8
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 +44 -2
- package/dist/AgentRunner.d.ts +96 -3
- package/dist/AgentRunner.d.ts.map +1 -1
- package/dist/AgentRunner.js +438 -34
- package/dist/AgentRunner.js.map +1 -1
- package/dist/AgentWakeTriggerService.d.ts.map +1 -1
- package/dist/AgentWakeTriggerService.js +8 -1
- package/dist/AgentWakeTriggerService.js.map +1 -1
- package/dist/MJAIAgentRequestEntityServer.d.ts +15 -1
- package/dist/MJAIAgentRequestEntityServer.d.ts.map +1 -1
- package/dist/MJAIAgentRequestEntityServer.js +43 -3
- package/dist/MJAIAgentRequestEntityServer.js.map +1 -1
- package/dist/MemoryWriteManager.d.ts +12 -0
- package/dist/MemoryWriteManager.d.ts.map +1 -1
- package/dist/MemoryWriteManager.js +18 -3
- package/dist/MemoryWriteManager.js.map +1 -1
- package/dist/agent-pre-execution-rag.d.ts.map +1 -1
- package/dist/agent-pre-execution-rag.js +1 -0
- package/dist/agent-pre-execution-rag.js.map +1 -1
- package/dist/agent-run-watchdog.d.ts +51 -13
- package/dist/agent-run-watchdog.d.ts.map +1 -1
- package/dist/agent-run-watchdog.js +89 -21
- package/dist/agent-run-watchdog.js.map +1 -1
- package/dist/agent-types/flow-agent-type.d.ts +6 -0
- package/dist/agent-types/flow-agent-type.d.ts.map +1 -1
- package/dist/agent-types/flow-agent-type.js +70 -6
- package/dist/agent-types/flow-agent-type.js.map +1 -1
- package/dist/agent-types/loop-agent-prompt-params.d.ts +46 -3
- package/dist/agent-types/loop-agent-prompt-params.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-prompt-params.js +9 -4
- package/dist/agent-types/loop-agent-prompt-params.js.map +1 -1
- package/dist/agent-types/loop-agent-response-type.d.ts +35 -4
- package/dist/agent-types/loop-agent-response-type.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-response-type.js +1 -1
- package/dist/agent-types/loop-agent-response-type.js.map +1 -1
- package/dist/agent-types/loop-agent-type.d.ts +27 -4
- package/dist/agent-types/loop-agent-type.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-type.js +121 -18
- package/dist/agent-types/loop-agent-type.js.map +1 -1
- package/dist/base-agent.d.ts +390 -37
- package/dist/base-agent.d.ts.map +1 -1
- package/dist/base-agent.js +2046 -433
- package/dist/base-agent.js.map +1 -1
- package/dist/catalog-narrowing.d.ts.map +1 -1
- package/dist/catalog-narrowing.js +6 -3
- package/dist/catalog-narrowing.js.map +1 -1
- package/dist/client-tool-results.d.ts +12 -0
- package/dist/client-tool-results.d.ts.map +1 -1
- package/dist/client-tool-results.js +21 -0
- package/dist/client-tool-results.js.map +1 -1
- package/dist/handoff-target.d.ts +80 -0
- package/dist/handoff-target.d.ts.map +1 -0
- package/dist/handoff-target.js +158 -0
- package/dist/handoff-target.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/memory-manager-agent.d.ts.map +1 -1
- package/dist/memory-manager-agent.js +2 -0
- package/dist/memory-manager-agent.js.map +1 -1
- package/dist/native-tools/action-tool-builder.d.ts +6 -0
- package/dist/native-tools/action-tool-builder.d.ts.map +1 -1
- package/dist/native-tools/action-tool-builder.js +21 -5
- package/dist/native-tools/action-tool-builder.js.map +1 -1
- package/dist/native-tools/control-tools.d.ts +15 -4
- package/dist/native-tools/control-tools.d.ts.map +1 -1
- package/dist/native-tools/control-tools.js +31 -14
- package/dist/native-tools/control-tools.js.map +1 -1
- package/dist/pipeline/pipeline-registry.d.ts +5 -12
- package/dist/pipeline/pipeline-registry.d.ts.map +1 -1
- package/dist/pipeline/pipeline-registry.js +28 -2
- package/dist/pipeline/pipeline-registry.js.map +1 -1
- package/dist/pipeline/providers/serialize.d.ts +7 -3
- package/dist/pipeline/providers/serialize.d.ts.map +1 -1
- package/dist/pipeline/providers/serialize.js +9 -5
- package/dist/pipeline/providers/serialize.js.map +1 -1
- package/dist/realtime/bridge-realtime-session-factory.d.ts +3 -3
- package/dist/realtime/bridge-realtime-session-factory.d.ts.map +1 -1
- package/dist/realtime/bridge-realtime-session-factory.js +12 -6
- package/dist/realtime/bridge-realtime-session-factory.js.map +1 -1
- package/dist/realtime/bridge-room-transcript-sink.js +2 -0
- package/dist/realtime/bridge-room-transcript-sink.js.map +1 -1
- package/dist/realtime/realtime-client-session-service.d.ts +72 -25
- package/dist/realtime/realtime-client-session-service.d.ts.map +1 -1
- package/dist/realtime/realtime-client-session-service.js +154 -54
- package/dist/realtime/realtime-client-session-service.js.map +1 -1
- package/dist/realtime/realtime-coagent-config.d.ts.map +1 -1
- package/dist/realtime/realtime-coagent-config.js +2 -28
- package/dist/realtime/realtime-coagent-config.js.map +1 -1
- package/dist/realtime/realtime-platform-credentials.d.ts +65 -0
- package/dist/realtime/realtime-platform-credentials.d.ts.map +1 -0
- package/dist/realtime/realtime-platform-credentials.js +148 -0
- package/dist/realtime/realtime-platform-credentials.js.map +1 -0
- package/dist/realtime/realtime-recording-capture.d.ts +1 -0
- package/dist/realtime/realtime-recording-capture.d.ts.map +1 -1
- package/dist/realtime/realtime-recording-capture.js +17 -3
- package/dist/realtime/realtime-recording-capture.js.map +1 -1
- package/dist/realtime/realtime-recording-opus-assembly.d.ts.map +1 -1
- package/dist/realtime/realtime-recording-opus-assembly.js +9 -4
- package/dist/realtime/realtime-recording-opus-assembly.js.map +1 -1
- package/dist/realtime/realtime-session-runner.d.ts.map +1 -1
- package/dist/realtime/realtime-session-runner.js +5 -7
- package/dist/realtime/realtime-session-runner.js.map +1 -1
- package/dist/realtime/realtime-turn-moderator.d.ts.map +1 -1
- package/dist/realtime/realtime-turn-moderator.js +1 -0
- package/dist/realtime/realtime-turn-moderator.js.map +1 -1
- package/dist/realtime/realtime-vendor-resolution.d.ts +41 -2
- package/dist/realtime/realtime-vendor-resolution.d.ts.map +1 -1
- package/dist/realtime/realtime-vendor-resolution.js +86 -4
- package/dist/realtime/realtime-vendor-resolution.js.map +1 -1
- package/dist/rubric-evaluation-agent-runner.js +1 -0
- package/dist/rubric-evaluation-agent-runner.js.map +1 -1
- package/dist/runtime-state-fragment.d.ts.map +1 -1
- package/dist/runtime-state-fragment.js +3 -0
- package/dist/runtime-state-fragment.js.map +1 -1
- package/dist/sub-agent-consult.d.ts +75 -0
- package/dist/sub-agent-consult.d.ts.map +1 -0
- package/dist/sub-agent-consult.js +193 -0
- package/dist/sub-agent-consult.js.map +1 -0
- package/dist/volatile-child-prompt.d.ts +7 -0
- package/dist/volatile-child-prompt.d.ts.map +1 -1
- package/dist/volatile-child-prompt.js +8 -0
- package/dist/volatile-child-prompt.js.map +1 -1
- package/package.json +20 -20
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Pure formatting and record types for sub-agent Chat consultation.
|
|
3
|
+
*
|
|
4
|
+
* Extracted as a standalone module so unit tests can import and verify
|
|
5
|
+
* consult message and response-form formatting directly.
|
|
6
|
+
*
|
|
7
|
+
* @module @memberjunction/ai-agents
|
|
8
|
+
*/
|
|
9
|
+
import { AgentResponseForm } from '@memberjunction/ai-core-plus';
|
|
10
|
+
import { IMetadataProvider, UserInfo } from '@memberjunction/core';
|
|
11
|
+
/**
|
|
12
|
+
* Default maximum consultation rounds per `(parent run, sub-agent entity ID)` pair
|
|
13
|
+
* when `MJAIAgentEntity.MaxSubAgentConsultRounds` is `null` or `undefined`.
|
|
14
|
+
*/
|
|
15
|
+
export declare const DEFAULT_MAX_SUB_AGENT_CONSULT_ROUNDS = 3;
|
|
16
|
+
/**
|
|
17
|
+
* Metadata persisted in `MJAIAgentRunStepEntity.OutputData.consult` and tracked
|
|
18
|
+
* in memory when a child sub-agent pauses with `FinalStep === 'Chat'` under `'Consult'`.
|
|
19
|
+
*/
|
|
20
|
+
export interface SubAgentConsultRecord {
|
|
21
|
+
childRunId: string;
|
|
22
|
+
subAgentId: string;
|
|
23
|
+
subAgentName: string;
|
|
24
|
+
round: number;
|
|
25
|
+
question: string | null;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Parameters for {@link FormatSubAgentConsultMessage}.
|
|
29
|
+
*/
|
|
30
|
+
export interface FormatSubAgentConsultMessageParams {
|
|
31
|
+
subAgentName: string;
|
|
32
|
+
round: number;
|
|
33
|
+
maxRounds: number;
|
|
34
|
+
question: string | null;
|
|
35
|
+
responseForm?: AgentResponseForm | null;
|
|
36
|
+
childRunId: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Renders a compact plain-text summary of an {@link AgentResponseForm}
|
|
40
|
+
* (`title`, `description`, and for each question its `label`, `type.type`,
|
|
41
|
+
* option labels when present, and `required` flag).
|
|
42
|
+
*
|
|
43
|
+
* Returns `''` when `form` is `null`/`undefined` or has no title, description, or questions.
|
|
44
|
+
*/
|
|
45
|
+
export declare function FormatResponseFormSummary(form: AgentResponseForm | null | undefined): string;
|
|
46
|
+
/**
|
|
47
|
+
* Formats the consultation message injected into the parent agent's conversation
|
|
48
|
+
* when a sub-agent pauses with `FinalStep === 'Chat'` under `'Consult'`.
|
|
49
|
+
*/
|
|
50
|
+
export declare function FormatSubAgentConsultMessage(params: FormatSubAgentConsultMessageParams): string;
|
|
51
|
+
/**
|
|
52
|
+
* Formats the reminder message injected before the caller's answer when an agent run
|
|
53
|
+
* resumes (`lastRunId` pointing to a prior run that paused with `FinalStep === 'Chat'`)
|
|
54
|
+
* with one or more unanswered sub-agent consultations from that prior run.
|
|
55
|
+
*
|
|
56
|
+
* Returns `''` when `consults` is empty.
|
|
57
|
+
*/
|
|
58
|
+
export declare function FormatReloadedConsultsMessage(consults: ReadonlyArray<SubAgentConsultRecord>): string;
|
|
59
|
+
/**
|
|
60
|
+
* Checks whether an agent (given by ID string or entity-like object) can own sub-agent
|
|
61
|
+
* consultations — either via its own `ChatHandlingOption === 'Consult'` or an active
|
|
62
|
+
* `MJAIAgentRelationshipEntity` row with `ChatHandlingOption === 'Consult'`.
|
|
63
|
+
*/
|
|
64
|
+
export declare function CanAgentOwnSubAgentConsults(agentOrId: string | {
|
|
65
|
+
ID: string;
|
|
66
|
+
ChatHandlingOption?: string | null;
|
|
67
|
+
}): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Loads unanswered sub-agent consultations (`OutputData.consult`) from `MJ: AI Agent Run Steps`
|
|
70
|
+
* for the specified `runId`. Returns every `Sub-Agent` step whose `OutputData.consult` record
|
|
71
|
+
* does not have a later `Sub-Agent` step in the same run with `InputData.resumeRunId` matching
|
|
72
|
+
* `consult.childRunId`.
|
|
73
|
+
*/
|
|
74
|
+
export declare function LoadOpenSubAgentConsults(provider: IMetadataProvider, runId: string, contextUser: UserInfo): Promise<SubAgentConsultRecord[]>;
|
|
75
|
+
//# sourceMappingURL=sub-agent-consult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sub-agent-consult.d.ts","sourceRoot":"","sources":["../src/sub-agent-consult.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,iBAAiB,EAAgB,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAW,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAI5E;;;GAGG;AACH,eAAO,MAAM,oCAAoC,IAAI,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAyB5F;AAkBD;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,kCAAkC,GAAG,MAAM,CAqB/F;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,aAAa,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAWpG;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACvC,SAAS,EAAE,MAAM,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACvE,OAAO,CAuBT;AAED;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC1C,QAAQ,EAAE,iBAAiB,EAC3B,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,QAAQ,GACtB,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAkClC"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Pure formatting and record types for sub-agent Chat consultation.
|
|
3
|
+
*
|
|
4
|
+
* Extracted as a standalone module so unit tests can import and verify
|
|
5
|
+
* consult message and response-form formatting directly.
|
|
6
|
+
*
|
|
7
|
+
* @module @memberjunction/ai-agents
|
|
8
|
+
*/
|
|
9
|
+
import { RunView } from '@memberjunction/core';
|
|
10
|
+
import { AIEngine } from '@memberjunction/aiengine';
|
|
11
|
+
import { IsValidUUID, UUIDSet, UUIDsEqual } from '@memberjunction/global';
|
|
12
|
+
/**
|
|
13
|
+
* Default maximum consultation rounds per `(parent run, sub-agent entity ID)` pair
|
|
14
|
+
* when `MJAIAgentEntity.MaxSubAgentConsultRounds` is `null` or `undefined`.
|
|
15
|
+
*/
|
|
16
|
+
export const DEFAULT_MAX_SUB_AGENT_CONSULT_ROUNDS = 3;
|
|
17
|
+
/**
|
|
18
|
+
* Renders a compact plain-text summary of an {@link AgentResponseForm}
|
|
19
|
+
* (`title`, `description`, and for each question its `label`, `type.type`,
|
|
20
|
+
* option labels when present, and `required` flag).
|
|
21
|
+
*
|
|
22
|
+
* Returns `''` when `form` is `null`/`undefined` or has no title, description, or questions.
|
|
23
|
+
*/
|
|
24
|
+
export function FormatResponseFormSummary(form) {
|
|
25
|
+
if (!form) {
|
|
26
|
+
return '';
|
|
27
|
+
}
|
|
28
|
+
const title = form.title?.trim() || '';
|
|
29
|
+
const description = form.description?.trim() || '';
|
|
30
|
+
const questions = Array.isArray(form.questions) ? form.questions : [];
|
|
31
|
+
if (!title && !description && questions.length === 0) {
|
|
32
|
+
return '';
|
|
33
|
+
}
|
|
34
|
+
const lines = [];
|
|
35
|
+
if (title) {
|
|
36
|
+
lines.push(`Title: ${title}`);
|
|
37
|
+
}
|
|
38
|
+
if (description) {
|
|
39
|
+
lines.push(`Description: ${description}`);
|
|
40
|
+
}
|
|
41
|
+
for (const question of questions) {
|
|
42
|
+
lines.push(formatSingleQuestionSummary(question));
|
|
43
|
+
}
|
|
44
|
+
return lines.join('\n');
|
|
45
|
+
}
|
|
46
|
+
function formatSingleQuestionSummary(question) {
|
|
47
|
+
const requiredText = question.required ? 'required' : 'optional';
|
|
48
|
+
const typeName = question.type?.type ?? 'unknown';
|
|
49
|
+
const optionLabels = extractQuestionOptionLabels(question);
|
|
50
|
+
const optionsSuffix = optionLabels.length > 0 ? ` [${optionLabels.join(', ')}]` : '';
|
|
51
|
+
return `- ${question.label} (${typeName}, ${requiredText})${optionsSuffix}`;
|
|
52
|
+
}
|
|
53
|
+
function extractQuestionOptionLabels(question) {
|
|
54
|
+
const qType = question.type;
|
|
55
|
+
if (!qType || !('options' in qType) || !Array.isArray(qType.options)) {
|
|
56
|
+
return [];
|
|
57
|
+
}
|
|
58
|
+
return qType.options.map(opt => String(opt.label));
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Formats the consultation message injected into the parent agent's conversation
|
|
62
|
+
* when a sub-agent pauses with `FinalStep === 'Chat'` under `'Consult'`.
|
|
63
|
+
*/
|
|
64
|
+
export function FormatSubAgentConsultMessage(params) {
|
|
65
|
+
const questionText = params.question?.trim() ? params.question : '(no message provided)';
|
|
66
|
+
const lines = [
|
|
67
|
+
`## Sub-agent ${params.subAgentName} is asking you (round ${params.round} of ${params.maxRounds})`,
|
|
68
|
+
`**Question:** ${questionText}`,
|
|
69
|
+
];
|
|
70
|
+
const formSummary = FormatResponseFormSummary(params.responseForm);
|
|
71
|
+
if (formSummary) {
|
|
72
|
+
lines.push(`**Form:**\n${formSummary}`);
|
|
73
|
+
}
|
|
74
|
+
lines.push(`**Child run ID:** ${params.childRunId}`);
|
|
75
|
+
lines.push(`To answer, call ${params.subAgentName} again with resumeRunId: "${params.childRunId}" and your answer as the message.`);
|
|
76
|
+
lines.push('Answer this question from what you already know, ask your own caller with a Chat step only if they alone can answer, or tell the sub-agent to proceed without it.');
|
|
77
|
+
return lines.join('\n');
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Formats the reminder message injected before the caller's answer when an agent run
|
|
81
|
+
* resumes (`lastRunId` pointing to a prior run that paused with `FinalStep === 'Chat'`)
|
|
82
|
+
* with one or more unanswered sub-agent consultations from that prior run.
|
|
83
|
+
*
|
|
84
|
+
* Returns `''` when `consults` is empty.
|
|
85
|
+
*/
|
|
86
|
+
export function FormatReloadedConsultsMessage(consults) {
|
|
87
|
+
if (!consults || consults.length === 0) {
|
|
88
|
+
return '';
|
|
89
|
+
}
|
|
90
|
+
return consults
|
|
91
|
+
.map(c => {
|
|
92
|
+
const questionText = c.question?.trim() ? c.question.trim() : '(no message provided)';
|
|
93
|
+
const sep = /[.?!]$/.test(questionText) ? '' : '.';
|
|
94
|
+
return `You asked your caller about a question from sub-agent ${c.subAgentName} (run ${c.childRunId}, round ${c.round}): ${questionText}${sep} Their answer follows. To pass it on, call ${c.subAgentName} with resumeRunId: "${c.childRunId}".`;
|
|
95
|
+
})
|
|
96
|
+
.join('\n');
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Checks whether an agent (given by ID string or entity-like object) can own sub-agent
|
|
100
|
+
* consultations — either via its own `ChatHandlingOption === 'Consult'` or an active
|
|
101
|
+
* `MJAIAgentRelationshipEntity` row with `ChatHandlingOption === 'Consult'`.
|
|
102
|
+
*/
|
|
103
|
+
export function CanAgentOwnSubAgentConsults(agentOrId) {
|
|
104
|
+
if (typeof agentOrId === 'object' && agentOrId !== null && agentOrId.ChatHandlingOption === 'Consult') {
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
const agentId = typeof agentOrId === 'string' ? agentOrId : agentOrId?.ID;
|
|
108
|
+
if (!agentId) {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
if (typeof agentOrId === 'string') {
|
|
112
|
+
const found = AIEngine.Instance.Agents.find(a => UUIDsEqual(a.ID, agentId));
|
|
113
|
+
if (found?.ChatHandlingOption === 'Consult') {
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return AIEngine.Instance.AgentRelationships.some(ar => ar.Status === 'Active' &&
|
|
118
|
+
ar.ChatHandlingOption === 'Consult' &&
|
|
119
|
+
UUIDsEqual(ar.AgentID, agentId));
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Loads unanswered sub-agent consultations (`OutputData.consult`) from `MJ: AI Agent Run Steps`
|
|
123
|
+
* for the specified `runId`. Returns every `Sub-Agent` step whose `OutputData.consult` record
|
|
124
|
+
* does not have a later `Sub-Agent` step in the same run with `InputData.resumeRunId` matching
|
|
125
|
+
* `consult.childRunId`.
|
|
126
|
+
*/
|
|
127
|
+
export async function LoadOpenSubAgentConsults(provider, runId, contextUser) {
|
|
128
|
+
if (!IsValidUUID(runId))
|
|
129
|
+
return [];
|
|
130
|
+
const rv = RunView.FromMetadataProvider(provider);
|
|
131
|
+
const stepsResult = await rv.RunView({
|
|
132
|
+
EntityName: 'MJ: AI Agent Run Steps',
|
|
133
|
+
ExtraFilter: `AgentRunID='${runId}' AND StepType='Sub-Agent'`,
|
|
134
|
+
OrderBy: 'StepNumber ASC',
|
|
135
|
+
Fields: ['StepNumber', 'InputData', 'OutputData'],
|
|
136
|
+
ResultType: 'simple',
|
|
137
|
+
BypassCache: true,
|
|
138
|
+
}, contextUser);
|
|
139
|
+
const steps = stepsResult.Success ? (stepsResult.Results || []) : [];
|
|
140
|
+
if (steps.length === 0) {
|
|
141
|
+
return [];
|
|
142
|
+
}
|
|
143
|
+
const resumedLater = new UUIDSet();
|
|
144
|
+
const openConsultsReversed = [];
|
|
145
|
+
for (let i = steps.length - 1; i >= 0; i--) {
|
|
146
|
+
const consult = readStepConsultRecord(steps[i].OutputData);
|
|
147
|
+
if (consult && !resumedLater.Has(consult.childRunId)) {
|
|
148
|
+
openConsultsReversed.push(consult);
|
|
149
|
+
}
|
|
150
|
+
const resumedId = readStepResumeRunId(steps[i].InputData);
|
|
151
|
+
if (resumedId != null) {
|
|
152
|
+
resumedLater.Add(resumedId);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return openConsultsReversed.reverse();
|
|
156
|
+
}
|
|
157
|
+
/** Parses `OutputData.consult` from a persisted Sub-Agent step row, or returns `null`. */
|
|
158
|
+
function readStepConsultRecord(outputDataJson) {
|
|
159
|
+
if (!outputDataJson) {
|
|
160
|
+
return null;
|
|
161
|
+
}
|
|
162
|
+
try {
|
|
163
|
+
const parsed = JSON.parse(outputDataJson);
|
|
164
|
+
const c = parsed?.consult;
|
|
165
|
+
if (!c || typeof c.childRunId !== 'string' || !c.childRunId || typeof c.subAgentName !== 'string') {
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
return {
|
|
169
|
+
childRunId: c.childRunId,
|
|
170
|
+
subAgentId: typeof c.subAgentId === 'string' ? c.subAgentId : '',
|
|
171
|
+
subAgentName: c.subAgentName,
|
|
172
|
+
round: typeof c.round === 'number' ? c.round : 1,
|
|
173
|
+
question: typeof c.question === 'string' ? c.question : null,
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
catch {
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/** Parses `InputData.resumeRunId` from a persisted Sub-Agent step row, or returns `null`. */
|
|
181
|
+
function readStepResumeRunId(inputDataJson) {
|
|
182
|
+
if (!inputDataJson) {
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
try {
|
|
186
|
+
const parsed = JSON.parse(inputDataJson);
|
|
187
|
+
return typeof parsed?.resumeRunId === 'string' && parsed.resumeRunId ? parsed.resumeRunId : null;
|
|
188
|
+
}
|
|
189
|
+
catch {
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
//# sourceMappingURL=sub-agent-consult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sub-agent-consult.js","sourceRoot":"","sources":["../src/sub-agent-consult.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAqB,OAAO,EAAY,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE1E;;;GAGG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC;AA0BtD;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAA0C;IAChF,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,OAAO,EAAE,CAAC;IACd,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACvC,MAAM,WAAW,GAAG,IAAI,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AE,CAAC,CAAC,YAAY;YAC5B,KAAK,EAAE,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI;SAC/D,CAAC;IACN,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;AACL,CAAC;AAED,6FAA6F;AAC7F,SAAS,mBAAmB,CAAC,aAA4B;IACrD,IAAI,CAAC,aAAa,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,IAAI,CAAC;QACD,MAAM,MAAM,GAA8B,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACpE,OAAO,OAAO,MAAM,EAAE,WAAW,KAAK,QAAQ,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;IACrG,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;AACL,CAAC"}
|
|
@@ -7,6 +7,13 @@ export type ResolvedSpecializationPlacement = Exclude<SpecializationPlacement, '
|
|
|
7
7
|
* category (minus the stable timezone) plus the loop agent's own per-iteration variables (both
|
|
8
8
|
* from `./constants`), so a new temporal placeholder is picked up automatically.
|
|
9
9
|
*/
|
|
10
|
+
/**
|
|
11
|
+
* "Execution Context" system placeholders that change on every loop step: the conversation grows by the
|
|
12
|
+
* model's turn and its results each iteration, so a child template that renders either of these mutates
|
|
13
|
+
* from inside the system prompt exactly like a timestamp would. (The other placeholders in that category
|
|
14
|
+
* — user, agent, prompt, configuration — are fixed for the run.)
|
|
15
|
+
*/
|
|
16
|
+
export declare const VOLATILE_EXECUTION_CONTEXT_PLACEHOLDERS: readonly string[];
|
|
10
17
|
export declare const VOLATILE_PLACEHOLDER_NAMES: readonly string[];
|
|
11
18
|
/**
|
|
12
19
|
* Returns the volatile placeholder names referenced by a template's text, in registry order.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volatile-child-prompt.d.ts","sourceRoot":"","sources":["../src/volatile-child-prompt.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAGjF,uGAAuG;AACvG,MAAM,MAAM,+BAA+B,GAAG,OAAO,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"volatile-child-prompt.d.ts","sourceRoot":"","sources":["../src/volatile-child-prompt.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAGjF,uGAAuG;AACvG,MAAM,MAAM,+BAA+B,GAAG,OAAO,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;AAEvF;;;;;GAKG;AACH;;;;;GAKG;AACH,eAAO,MAAM,uCAAuC,EAAE,SAAS,MAAM,EAA0D,CAAC;AAEhI,eAAO,MAAM,0BAA0B,EAAE,SAAS,MAAM,EAMvD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,EAAE,CAQ5F;AAED,2EAA2E;AAC3E,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAEtF;AAED,6FAA6F;AAC7F,wBAAgB,mCAAmC,CAC/C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GACzD,uBAAuB,CAGzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAC1C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EACxD,iBAAiB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC7C,+BAA+B,CASjC"}
|
|
@@ -23,11 +23,19 @@ import { STABLE_TEMPORAL_PLACEHOLDERS, VOLATILE_AGENT_VARIABLES } from './consta
|
|
|
23
23
|
* category (minus the stable timezone) plus the loop agent's own per-iteration variables (both
|
|
24
24
|
* from `./constants`), so a new temporal placeholder is picked up automatically.
|
|
25
25
|
*/
|
|
26
|
+
/**
|
|
27
|
+
* "Execution Context" system placeholders that change on every loop step: the conversation grows by the
|
|
28
|
+
* model's turn and its results each iteration, so a child template that renders either of these mutates
|
|
29
|
+
* from inside the system prompt exactly like a timestamp would. (The other placeholders in that category
|
|
30
|
+
* — user, agent, prompt, configuration — are fixed for the run.)
|
|
31
|
+
*/
|
|
32
|
+
export const VOLATILE_EXECUTION_CONTEXT_PLACEHOLDERS = ['_HAS_CONVERSATION_CONTEXT', '_CONVERSATION_LENGTH'];
|
|
26
33
|
export const VOLATILE_PLACEHOLDER_NAMES = [
|
|
27
34
|
...DEFAULT_SYSTEM_PLACEHOLDERS
|
|
28
35
|
.filter(p => p.category === 'Date & Time' && !STABLE_TEMPORAL_PLACEHOLDERS.has(p.name))
|
|
29
36
|
.map(p => p.name),
|
|
30
37
|
...VOLATILE_AGENT_VARIABLES,
|
|
38
|
+
...VOLATILE_EXECUTION_CONTEXT_PLACEHOLDERS,
|
|
31
39
|
];
|
|
32
40
|
/**
|
|
33
41
|
* Returns the volatile placeholder names referenced by a template's text, in registry order.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volatile-child-prompt.js","sourceRoot":"","sources":["../src/volatile-child-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EAAE,4BAA4B,EAAE,wBAAwB,E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AAoB,IAAI,kBAAkB,CAAC,CAAC;QACvE,OAAO,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACP,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,qBAAqB,CAAC,YAAuC;IACzE,OAAO,0BAA0B,CAAC,YAAY,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;AAC/D,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,mCAAmC,CAC/C,YAAwD;IAExD,MAAM,GAAG,GAAG,YAAY,EAAE,uBAAuB,CAAC;IAClD,OAAO,GAAG,KAAK,cAAc,IAAI,GAAG,KAAK,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC;AAC9E,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,8BAA8B,CAC1C,YAAwD,EACxD,iBAA4C;IAE5C,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACrB,OAAO,cAAc,CAAC;IAC1B,CAAC;IACD,MAAM,QAAQ,GAAG,mCAAmC,CAAC,YAAY,CAAC,CAAC;IACnE,IAAI,QAAQ,KAAK,MAAM,EAAE,CAAC;QACtB,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,OAAO,qBAAqB,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,cAAc,CAAC;AACzF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ai-agents",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.2.0-edge.
|
|
4
|
+
"version": "6.2.0-edge.8",
|
|
5
5
|
"description": "MemberJunction: AI Agent Execution and Management",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
"license": "BUSL-1.1",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@evan/opus": "1.0.3",
|
|
15
|
-
"@memberjunction/actions": "6.2.0-edge.
|
|
16
|
-
"@memberjunction/actions-base": "6.2.0-edge.
|
|
17
|
-
"@memberjunction/ai": "6.2.0-edge.
|
|
18
|
-
"@memberjunction/ai-core-plus": "6.2.0-edge.
|
|
19
|
-
"@memberjunction/ai-engine-base": "6.2.0-edge.
|
|
20
|
-
"@memberjunction/ai-prompts": "6.2.0-edge.
|
|
21
|
-
"@memberjunction/ai-reranker": "6.2.0-edge.
|
|
22
|
-
"@memberjunction/ai-vector-dupe": "6.2.0-edge.
|
|
23
|
-
"@memberjunction/ai-vector-sync": "6.2.0-edge.
|
|
24
|
-
"@memberjunction/aiengine": "6.2.0-edge.
|
|
25
|
-
"@memberjunction/context-crush": "6.2.0-edge.
|
|
26
|
-
"@memberjunction/core": "6.2.0-edge.
|
|
27
|
-
"@memberjunction/core-entities": "6.2.0-edge.
|
|
28
|
-
"@memberjunction/generic-database-provider": "6.2.0-edge.
|
|
29
|
-
"@memberjunction/global": "6.2.0-edge.
|
|
30
|
-
"@memberjunction/rubrics": "6.2.0-edge.
|
|
31
|
-
"@memberjunction/search-engine": "6.2.0-edge.
|
|
32
|
-
"@memberjunction/storage": "6.2.0-edge.
|
|
33
|
-
"@memberjunction/templates": "6.2.0-edge.
|
|
15
|
+
"@memberjunction/actions": "6.2.0-edge.8",
|
|
16
|
+
"@memberjunction/actions-base": "6.2.0-edge.8",
|
|
17
|
+
"@memberjunction/ai": "6.2.0-edge.8",
|
|
18
|
+
"@memberjunction/ai-core-plus": "6.2.0-edge.8",
|
|
19
|
+
"@memberjunction/ai-engine-base": "6.2.0-edge.8",
|
|
20
|
+
"@memberjunction/ai-prompts": "6.2.0-edge.8",
|
|
21
|
+
"@memberjunction/ai-reranker": "6.2.0-edge.8",
|
|
22
|
+
"@memberjunction/ai-vector-dupe": "6.2.0-edge.8",
|
|
23
|
+
"@memberjunction/ai-vector-sync": "6.2.0-edge.8",
|
|
24
|
+
"@memberjunction/aiengine": "6.2.0-edge.8",
|
|
25
|
+
"@memberjunction/context-crush": "6.2.0-edge.8",
|
|
26
|
+
"@memberjunction/core": "6.2.0-edge.8",
|
|
27
|
+
"@memberjunction/core-entities": "6.2.0-edge.8",
|
|
28
|
+
"@memberjunction/generic-database-provider": "6.2.0-edge.8",
|
|
29
|
+
"@memberjunction/global": "6.2.0-edge.8",
|
|
30
|
+
"@memberjunction/rubrics": "6.2.0-edge.8",
|
|
31
|
+
"@memberjunction/search-engine": "6.2.0-edge.8",
|
|
32
|
+
"@memberjunction/storage": "6.2.0-edge.8",
|
|
33
|
+
"@memberjunction/templates": "6.2.0-edge.8",
|
|
34
34
|
"dotenv": "^17.2.4",
|
|
35
35
|
"exceljs": "^4.4.0",
|
|
36
36
|
"lodash": "^4.17.23",
|