@memberjunction/ai-agents 6.2.0-edge.3 → 6.2.0-edge.5
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 +100 -7
- package/dist/AgentRunner.d.ts +55 -5
- package/dist/AgentRunner.d.ts.map +1 -1
- package/dist/AgentRunner.js +277 -59
- package/dist/AgentRunner.js.map +1 -1
- package/dist/ArtifactToolManager.d.ts +11 -3
- package/dist/ArtifactToolManager.d.ts.map +1 -1
- package/dist/ArtifactToolManager.js +72 -6
- package/dist/ArtifactToolManager.js.map +1 -1
- package/dist/ClientToolRequestManager.d.ts +11 -1
- package/dist/ClientToolRequestManager.d.ts.map +1 -1
- package/dist/ClientToolRequestManager.js +19 -6
- package/dist/ClientToolRequestManager.js.map +1 -1
- package/dist/ConversationCompactionManager.d.ts +2 -0
- package/dist/ConversationCompactionManager.d.ts.map +1 -1
- package/dist/ConversationCompactionManager.js +2 -2
- package/dist/ConversationCompactionManager.js.map +1 -1
- package/dist/ConversationToolManager.d.ts +13 -2
- package/dist/ConversationToolManager.d.ts.map +1 -1
- package/dist/ConversationToolManager.js +19 -3
- package/dist/ConversationToolManager.js.map +1 -1
- package/dist/KnowledgeAgent.d.ts.map +1 -1
- package/dist/KnowledgeAgent.js +6 -1
- package/dist/KnowledgeAgent.js.map +1 -1
- package/dist/MJAIAgentRequestEntityServer.d.ts +6 -0
- package/dist/MJAIAgentRequestEntityServer.d.ts.map +1 -1
- package/dist/MJAIAgentRequestEntityServer.js +26 -1
- package/dist/MJAIAgentRequestEntityServer.js.map +1 -1
- package/dist/PayloadChangeAnalyzer.d.ts.map +1 -1
- package/dist/PayloadChangeAnalyzer.js +53 -30
- package/dist/PayloadChangeAnalyzer.js.map +1 -1
- package/dist/PayloadManager.d.ts +35 -2
- package/dist/PayloadManager.d.ts.map +1 -1
- package/dist/PayloadManager.js +250 -149
- package/dist/PayloadManager.js.map +1 -1
- package/dist/ScratchpadManager.d.ts +18 -0
- package/dist/ScratchpadManager.d.ts.map +1 -1
- package/dist/ScratchpadManager.js +61 -0
- package/dist/ScratchpadManager.js.map +1 -1
- package/dist/agent-audience.d.ts +38 -0
- package/dist/agent-audience.d.ts.map +1 -0
- package/dist/agent-audience.js +99 -0
- package/dist/agent-audience.js.map +1 -0
- package/dist/agent-context-injector.d.ts +17 -2
- package/dist/agent-context-injector.d.ts.map +1 -1
- package/dist/agent-context-injector.js +23 -7
- package/dist/agent-context-injector.js.map +1 -1
- package/dist/agent-memory-context-builder.d.ts +7 -2
- package/dist/agent-memory-context-builder.d.ts.map +1 -1
- package/dist/agent-memory-context-builder.js +12 -3
- package/dist/agent-memory-context-builder.js.map +1 -1
- package/dist/agent-pre-execution-rag.d.ts +101 -9
- package/dist/agent-pre-execution-rag.d.ts.map +1 -1
- package/dist/agent-pre-execution-rag.js +224 -23
- package/dist/agent-pre-execution-rag.js.map +1 -1
- package/dist/agent-run-watchdog.d.ts +65 -5
- package/dist/agent-run-watchdog.d.ts.map +1 -1
- package/dist/agent-run-watchdog.js +143 -28
- package/dist/agent-run-watchdog.js.map +1 -1
- package/dist/agent-types/flow-agent-type.d.ts +8 -0
- package/dist/agent-types/flow-agent-type.d.ts.map +1 -1
- package/dist/agent-types/flow-agent-type.js +48 -6
- package/dist/agent-types/flow-agent-type.js.map +1 -1
- package/dist/agent-types/loop-agent-prompt-params.d.ts +7 -0
- package/dist/agent-types/loop-agent-prompt-params.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-prompt-params.js +1 -0
- package/dist/agent-types/loop-agent-prompt-params.js.map +1 -1
- package/dist/agent-types/loop-agent-response-type.d.ts +8 -2
- 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 +9 -2
- package/dist/agent-types/loop-agent-type.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-type.js +60 -16
- package/dist/agent-types/loop-agent-type.js.map +1 -1
- package/dist/artifact-tools/SearchResultSetToolLibrary.js +4 -4
- package/dist/artifact-tools/SearchResultSetToolLibrary.js.map +1 -1
- package/dist/base-agent.d.ts +837 -43
- package/dist/base-agent.d.ts.map +1 -1
- package/dist/base-agent.js +3081 -663
- package/dist/base-agent.js.map +1 -1
- package/dist/client-tool-results.d.ts +45 -0
- package/dist/client-tool-results.d.ts.map +1 -0
- package/dist/client-tool-results.js +94 -0
- package/dist/client-tool-results.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/memory-manager-agent.d.ts.map +1 -1
- package/dist/memory-manager-agent.js +46 -34
- package/dist/memory-manager-agent.js.map +1 -1
- package/dist/native-tools/action-param-schema.d.ts +57 -0
- package/dist/native-tools/action-param-schema.d.ts.map +1 -0
- package/dist/native-tools/action-param-schema.js +238 -0
- package/dist/native-tools/action-param-schema.js.map +1 -0
- package/dist/native-tools/action-tool-builder.d.ts +5 -4
- package/dist/native-tools/action-tool-builder.d.ts.map +1 -1
- package/dist/native-tools/action-tool-builder.js +29 -71
- package/dist/native-tools/action-tool-builder.js.map +1 -1
- package/dist/native-tools/json-argument.d.ts +41 -0
- package/dist/native-tools/json-argument.d.ts.map +1 -0
- package/dist/native-tools/json-argument.js +79 -0
- package/dist/native-tools/json-argument.js.map +1 -0
- package/dist/prior-turn-tool-result-cache.d.ts +31 -12
- package/dist/prior-turn-tool-result-cache.d.ts.map +1 -1
- package/dist/prior-turn-tool-result-cache.js +59 -16
- package/dist/prior-turn-tool-result-cache.js.map +1 -1
- package/dist/query-builder-agent.d.ts +13 -4
- package/dist/query-builder-agent.d.ts.map +1 -1
- package/dist/query-builder-agent.js +102 -27
- package/dist/query-builder-agent.js.map +1 -1
- package/dist/realtime/bridge-realtime-session-factory.d.ts +44 -2
- package/dist/realtime/bridge-realtime-session-factory.d.ts.map +1 -1
- package/dist/realtime/bridge-realtime-session-factory.js +68 -20
- package/dist/realtime/bridge-realtime-session-factory.js.map +1 -1
- package/dist/realtime/bridge-realtime-usage-recorder.d.ts +81 -0
- package/dist/realtime/bridge-realtime-usage-recorder.d.ts.map +1 -0
- package/dist/realtime/bridge-realtime-usage-recorder.js +194 -0
- package/dist/realtime/bridge-realtime-usage-recorder.js.map +1 -0
- package/dist/realtime/client-only-channel-server.d.ts +83 -0
- package/dist/realtime/client-only-channel-server.d.ts.map +1 -0
- package/dist/realtime/client-only-channel-server.js +107 -0
- package/dist/realtime/client-only-channel-server.js.map +1 -0
- package/dist/realtime/identity-verification-channel-server.d.ts +50 -0
- package/dist/realtime/identity-verification-channel-server.d.ts.map +1 -0
- package/dist/realtime/identity-verification-channel-server.js +66 -0
- package/dist/realtime/identity-verification-channel-server.js.map +1 -0
- package/dist/realtime/interactive-component-channel-server.d.ts +39 -0
- package/dist/realtime/interactive-component-channel-server.d.ts.map +1 -0
- package/dist/realtime/interactive-component-channel-server.js +55 -0
- package/dist/realtime/interactive-component-channel-server.js.map +1 -0
- package/dist/realtime/realtime-avatar-resolution.d.ts +194 -0
- package/dist/realtime/realtime-avatar-resolution.d.ts.map +1 -0
- package/dist/realtime/realtime-avatar-resolution.js +208 -0
- package/dist/realtime/realtime-avatar-resolution.js.map +1 -0
- package/dist/realtime/realtime-channel-policy.d.ts +81 -0
- package/dist/realtime/realtime-channel-policy.d.ts.map +1 -0
- package/dist/realtime/realtime-channel-policy.js +91 -0
- package/dist/realtime/realtime-channel-policy.js.map +1 -0
- package/dist/realtime/realtime-channel-server-host.d.ts +14 -0
- package/dist/realtime/realtime-channel-server-host.d.ts.map +1 -1
- package/dist/realtime/realtime-channel-server-host.js +35 -0
- package/dist/realtime/realtime-channel-server-host.js.map +1 -1
- package/dist/realtime/realtime-client-session-service.d.ts +435 -34
- package/dist/realtime/realtime-client-session-service.d.ts.map +1 -1
- package/dist/realtime/realtime-client-session-service.js +806 -139
- package/dist/realtime/realtime-client-session-service.js.map +1 -1
- package/dist/realtime/realtime-coagent-config.d.ts +102 -16
- package/dist/realtime/realtime-coagent-config.d.ts.map +1 -1
- package/dist/realtime/realtime-coagent-config.js +126 -5
- package/dist/realtime/realtime-coagent-config.js.map +1 -1
- package/dist/realtime/realtime-recording-ledger.d.ts +130 -0
- package/dist/realtime/realtime-recording-ledger.d.ts.map +1 -0
- package/dist/realtime/realtime-recording-ledger.js +190 -0
- package/dist/realtime/realtime-recording-ledger.js.map +1 -0
- package/dist/realtime/realtime-recording-opus-assembly.d.ts +211 -0
- package/dist/realtime/realtime-recording-opus-assembly.d.ts.map +1 -0
- package/dist/realtime/realtime-recording-opus-assembly.js +706 -0
- package/dist/realtime/realtime-recording-opus-assembly.js.map +1 -0
- package/dist/realtime/realtime-recording-store.d.ts +174 -17
- package/dist/realtime/realtime-recording-store.d.ts.map +1 -1
- package/dist/realtime/realtime-recording-store.js +552 -58
- package/dist/realtime/realtime-recording-store.js.map +1 -1
- package/dist/realtime/realtime-session-runner.js +4 -4
- package/dist/realtime/realtime-session-runner.js.map +1 -1
- package/dist/realtime/realtime-turn-moderator.d.ts +2 -1
- package/dist/realtime/realtime-turn-moderator.d.ts.map +1 -1
- package/dist/realtime/realtime-turn-moderator.js +7 -1
- package/dist/realtime/realtime-turn-moderator.js.map +1 -1
- package/dist/realtime/realtime-vendor-resolution.d.ts +9 -0
- package/dist/realtime/realtime-vendor-resolution.d.ts.map +1 -1
- package/dist/realtime/realtime-vendor-resolution.js +16 -5
- package/dist/realtime/realtime-vendor-resolution.js.map +1 -1
- package/dist/realtime/realtime-video-output-gate.d.ts +83 -0
- package/dist/realtime/realtime-video-output-gate.d.ts.map +1 -0
- package/dist/realtime/realtime-video-output-gate.js +79 -0
- package/dist/realtime/realtime-video-output-gate.js.map +1 -0
- package/dist/tool-result-format.d.ts +14 -0
- package/dist/tool-result-format.d.ts.map +1 -1
- package/dist/tool-result-format.js.map +1 -1
- package/dist/volatile-child-prompt.js +3 -3
- package/package.json +21 -19
|
@@ -20,6 +20,13 @@ import { CarryForwardStepRecord } from './tool-result-format.js';
|
|
|
20
20
|
* - Entries are keyed by conversation AND agent, mirroring the DB path's `AgentID`
|
|
21
21
|
* filter — in a multi-agent conversation, agent B must never inherit agent A's
|
|
22
22
|
* results labeled "your previous turn".
|
|
23
|
+
* - Entries are also keyed by branch, mirroring the DB path's branch-path filter — a
|
|
24
|
+
* run never inherits results from a run whose reply row is off its path. A branch with
|
|
25
|
+
* no entry yet falls back to the DB path, which can return a trunk run from before the fork.
|
|
26
|
+
* - Entries carry the reply row of the run that stored them. When a save on this server
|
|
27
|
+
* marks that row replaced (`ReplacedAt` set by an in-place rerun of its turn), the entry
|
|
28
|
+
* is no longer served, just as the DB path leaves out runs whose reply row is replaced:
|
|
29
|
+
* a replaced answer's tool results are never carried forward.
|
|
23
30
|
* - Values are the raw completed-`Tool`-step `OutputData` projections; eligibility is
|
|
24
31
|
* still decided downstream by `BuildPriorTurnToolResultsMessage` via `toolFamily`,
|
|
25
32
|
* identical for cached and DB-loaded records.
|
|
@@ -38,9 +45,14 @@ import { CarryForwardStepRecord } from './tool-result-format.js';
|
|
|
38
45
|
* the TTL bounds the staleness window, and each node self-heals on its next completed
|
|
39
46
|
* run for that conversation — so the fallback keeps the default single-node deployment
|
|
40
47
|
* exact while multi-node degrades gracefully rather than paying the queries every turn.
|
|
48
|
+
* The replaced-row rule has the same limit: a replacement saved on another server is not
|
|
49
|
+
* seen here, so this node can still serve that run's entry until it expires or is replaced.
|
|
41
50
|
*/
|
|
42
51
|
export declare class PriorTurnToolResultCache extends BaseSingleton<PriorTurnToolResultCache> {
|
|
43
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Protected per the {@link BaseSingleton} contract — obtain via {@link Instance}. Listens for
|
|
54
|
+
* entity saves on this server to learn which conversation details were replaced.
|
|
55
|
+
*/
|
|
44
56
|
protected constructor();
|
|
45
57
|
/** Process-wide singleton accessor (Global Object Store backed, bundler-duplication safe). */
|
|
46
58
|
static get Instance(): PriorTurnToolResultCache;
|
|
@@ -51,21 +63,28 @@ export declare class PriorTurnToolResultCache extends BaseSingleton<PriorTurnToo
|
|
|
51
63
|
* bounding the multi-node staleness window described above.
|
|
52
64
|
*/
|
|
53
65
|
private cache;
|
|
54
|
-
/**
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
*/
|
|
66
|
+
/** Normalized ids of conversation details replaced by an in-place rerun, seen on this server. */
|
|
67
|
+
private replacedDetails;
|
|
68
|
+
/** Key: conversation, agent and branch ('trunk' when none), so an entry serves only runs on the branch that stored it. */
|
|
58
69
|
private static buildKey;
|
|
59
70
|
/**
|
|
60
71
|
* Returns the carry-forward records of this agent's most recent settled root run in
|
|
61
|
-
* the conversation on this node
|
|
62
|
-
*
|
|
63
|
-
* database".
|
|
72
|
+
* the conversation on this node, on one branch path (`branchId` null is the trunk) —
|
|
73
|
+
* `[]` means "settled with no tool results" (a valid, query-skipping answer);
|
|
74
|
+
* `undefined` means "not known here, ask the database". An entry whose run's reply row
|
|
75
|
+
* was replaced is dropped and reads as `undefined`.
|
|
76
|
+
*/
|
|
77
|
+
Get(conversationId: string, agentId: string, branchId: string | null): CarryForwardStepRecord[] | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Records a settled root run's carry-forward projections (empty array included) for one branch path.
|
|
80
|
+
* `sourceDetailId` is the run's reply row; the entry is not served once that row is replaced.
|
|
64
81
|
*/
|
|
65
|
-
|
|
66
|
-
/** Records a
|
|
67
|
-
|
|
68
|
-
/** Drops every entry — test isolation hook. */
|
|
82
|
+
Set(conversationId: string, agentId: string, branchId: string | null, steps: CarryForwardStepRecord[], sourceDetailId?: string | null): void;
|
|
83
|
+
/** Records that an in-place rerun replaced a conversation detail; entries whose run replied with it are no longer served. */
|
|
84
|
+
MarkDetailReplaced(detailId: string): void;
|
|
85
|
+
/** Drops every entry and every replaced-detail mark — test isolation hook. */
|
|
69
86
|
Clear(): void;
|
|
87
|
+
/** Marks a conversation detail replaced when a save on this server leaves its `ReplacedAt` set. */
|
|
88
|
+
private onGlobalEvent;
|
|
70
89
|
}
|
|
71
90
|
//# sourceMappingURL=prior-turn-tool-result-cache.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prior-turn-tool-result-cache.d.ts","sourceRoot":"","sources":["../src/prior-turn-tool-result-cache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prior-turn-tool-result-cache.d.ts","sourceRoot":"","sources":["../src/prior-turn-tool-result-cache.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAkE,MAAM,wBAAwB,CAAC;AACvH,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAS9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,qBAAa,wBAAyB,SAAQ,aAAa,CAAC,wBAAwB,CAAC;IACjF;;;OAGG;IACH,SAAS;IAKT,8FAA8F;IAC9F,WAAkB,QAAQ,IAAI,wBAAwB,CAErD;IAED;;;;;OAKG;IACH,OAAO,CAAC,KAAK,CAGV;IAEH,iGAAiG;IACjG,OAAO,CAAC,eAAe,CAAmD;IAE1E,0HAA0H;IAC1H,OAAO,CAAC,MAAM,CAAC,QAAQ;IAIvB;;;;;;OAMG;IACI,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,sBAAsB,EAAE,GAAG,SAAS;IAalH;;;OAGG;IACI,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,sBAAsB,EAAE,EAAE,cAAc,GAAE,MAAM,GAAG,IAAW,GAAG,IAAI;IAIzJ,6HAA6H;IACtH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAIjD,8EAA8E;IACvE,KAAK,IAAI,IAAI;IAKpB,mGAAmG;IACnG,OAAO,CAAC,aAAa;CAUxB"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseEntity } from '@memberjunction/core';
|
|
2
|
+
import { ConversationEngine, MJConversationDetailEntity } from '@memberjunction/core-entities';
|
|
3
|
+
import { BaseSingleton, MJEventType, MJGlobal, MJLruCache, NormalizeUUID } from '@memberjunction/global';
|
|
2
4
|
/**
|
|
3
5
|
* Process-wide cache of the most recent settled root run's Tool-step results per
|
|
4
6
|
* conversation + agent, keeping the prior-turn carry-forward check off the database on
|
|
@@ -19,6 +21,13 @@ import { BaseSingleton, MJLruCache, NormalizeUUID } from '@memberjunction/global
|
|
|
19
21
|
* - Entries are keyed by conversation AND agent, mirroring the DB path's `AgentID`
|
|
20
22
|
* filter — in a multi-agent conversation, agent B must never inherit agent A's
|
|
21
23
|
* results labeled "your previous turn".
|
|
24
|
+
* - Entries are also keyed by branch, mirroring the DB path's branch-path filter — a
|
|
25
|
+
* run never inherits results from a run whose reply row is off its path. A branch with
|
|
26
|
+
* no entry yet falls back to the DB path, which can return a trunk run from before the fork.
|
|
27
|
+
* - Entries carry the reply row of the run that stored them. When a save on this server
|
|
28
|
+
* marks that row replaced (`ReplacedAt` set by an in-place rerun of its turn), the entry
|
|
29
|
+
* is no longer served, just as the DB path leaves out runs whose reply row is replaced:
|
|
30
|
+
* a replaced answer's tool results are never carried forward.
|
|
22
31
|
* - Values are the raw completed-`Tool`-step `OutputData` projections; eligibility is
|
|
23
32
|
* still decided downstream by `BuildPriorTurnToolResultsMessage` via `toolFamily`,
|
|
24
33
|
* identical for cached and DB-loaded records.
|
|
@@ -37,9 +46,14 @@ import { BaseSingleton, MJLruCache, NormalizeUUID } from '@memberjunction/global
|
|
|
37
46
|
* the TTL bounds the staleness window, and each node self-heals on its next completed
|
|
38
47
|
* run for that conversation — so the fallback keeps the default single-node deployment
|
|
39
48
|
* exact while multi-node degrades gracefully rather than paying the queries every turn.
|
|
49
|
+
* The replaced-row rule has the same limit: a replacement saved on another server is not
|
|
50
|
+
* seen here, so this node can still serve that run's entry until it expires or is replaced.
|
|
40
51
|
*/
|
|
41
52
|
export class PriorTurnToolResultCache extends BaseSingleton {
|
|
42
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* Protected per the {@link BaseSingleton} contract — obtain via {@link Instance}. Listens for
|
|
55
|
+
* entity saves on this server to learn which conversation details were replaced.
|
|
56
|
+
*/
|
|
43
57
|
constructor() {
|
|
44
58
|
super();
|
|
45
59
|
/**
|
|
@@ -52,34 +66,63 @@ export class PriorTurnToolResultCache extends BaseSingleton {
|
|
|
52
66
|
maxSize: 500,
|
|
53
67
|
ttlMs: 30 * 60 * 1000
|
|
54
68
|
});
|
|
69
|
+
/** Normalized ids of conversation details replaced by an in-place rerun, seen on this server. */
|
|
70
|
+
this.replacedDetails = new MJLruCache({ maxSize: 5000 });
|
|
71
|
+
MJGlobal.Instance.GetEventListener(false).subscribe(event => this.onGlobalEvent(event));
|
|
55
72
|
}
|
|
56
73
|
/** Process-wide singleton accessor (Global Object Store backed, bundler-duplication safe). */
|
|
57
74
|
static get Instance() {
|
|
58
75
|
return super.getInstance();
|
|
59
76
|
}
|
|
77
|
+
/** Key: conversation, agent and branch ('trunk' when none), so an entry serves only runs on the branch that stored it. */
|
|
78
|
+
static buildKey(conversationId, agentId, branchId) {
|
|
79
|
+
return `${NormalizeUUID(conversationId)}::${NormalizeUUID(agentId)}::${branchId ? NormalizeUUID(branchId) : 'trunk'}`;
|
|
80
|
+
}
|
|
60
81
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
82
|
+
* Returns the carry-forward records of this agent's most recent settled root run in
|
|
83
|
+
* the conversation on this node, on one branch path (`branchId` null is the trunk) —
|
|
84
|
+
* `[]` means "settled with no tool results" (a valid, query-skipping answer);
|
|
85
|
+
* `undefined` means "not known here, ask the database". An entry whose run's reply row
|
|
86
|
+
* was replaced is dropped and reads as `undefined`.
|
|
63
87
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
88
|
+
Get(conversationId, agentId, branchId) {
|
|
89
|
+
const key = PriorTurnToolResultCache.buildKey(conversationId, agentId, branchId);
|
|
90
|
+
const entry = this.cache.Get(key);
|
|
91
|
+
if (!entry) {
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
if (entry.SourceDetailID && this.replacedDetails.Has(NormalizeUUID(entry.SourceDetailID))) {
|
|
95
|
+
this.cache.Delete(key);
|
|
96
|
+
return undefined;
|
|
97
|
+
}
|
|
98
|
+
return entry.Steps;
|
|
66
99
|
}
|
|
67
100
|
/**
|
|
68
|
-
*
|
|
69
|
-
* the
|
|
70
|
-
* valid, query-skipping answer); `undefined` means "not known here, ask the
|
|
71
|
-
* database".
|
|
101
|
+
* Records a settled root run's carry-forward projections (empty array included) for one branch path.
|
|
102
|
+
* `sourceDetailId` is the run's reply row; the entry is not served once that row is replaced.
|
|
72
103
|
*/
|
|
73
|
-
|
|
74
|
-
|
|
104
|
+
Set(conversationId, agentId, branchId, steps, sourceDetailId = null) {
|
|
105
|
+
this.cache.Set(PriorTurnToolResultCache.buildKey(conversationId, agentId, branchId), { Steps: steps, SourceDetailID: sourceDetailId });
|
|
75
106
|
}
|
|
76
|
-
/** Records a
|
|
77
|
-
|
|
78
|
-
this.
|
|
107
|
+
/** Records that an in-place rerun replaced a conversation detail; entries whose run replied with it are no longer served. */
|
|
108
|
+
MarkDetailReplaced(detailId) {
|
|
109
|
+
this.replacedDetails.Set(NormalizeUUID(detailId), true);
|
|
79
110
|
}
|
|
80
|
-
/** Drops every entry — test isolation hook. */
|
|
111
|
+
/** Drops every entry and every replaced-detail mark — test isolation hook. */
|
|
81
112
|
Clear() {
|
|
82
113
|
this.cache.Clear();
|
|
114
|
+
this.replacedDetails.Clear();
|
|
115
|
+
}
|
|
116
|
+
/** Marks a conversation detail replaced when a save on this server leaves its `ReplacedAt` set. */
|
|
117
|
+
onGlobalEvent(event) {
|
|
118
|
+
if (event.event !== MJEventType.ComponentEvent || event.eventCode !== BaseEntity.BaseEventCode) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const entityEvent = event.args;
|
|
122
|
+
const detail = entityEvent?.baseEntity;
|
|
123
|
+
if (entityEvent?.type === 'save' && detail instanceof MJConversationDetailEntity && ConversationEngine.IsReplacedRow(detail)) {
|
|
124
|
+
this.MarkDetailReplaced(detail.ID);
|
|
125
|
+
}
|
|
83
126
|
}
|
|
84
127
|
}
|
|
85
128
|
//# sourceMappingURL=prior-turn-tool-result-cache.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prior-turn-tool-result-cache.js","sourceRoot":"","sources":["../src/prior-turn-tool-result-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"prior-turn-tool-result-cache.js","sourceRoot":"","sources":["../src/prior-turn-tool-result-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAwB,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC/F,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAgB,MAAM,wBAAwB,CAAC;AAUvH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,OAAO,wBAAyB,SAAQ,aAAuC;IACjF;;;OAGG;IACH;QACI,KAAK,EAAE,CAAC;QASZ;;;;;WAKG;QACK,UAAK,GAAG,IAAI,UAAU,CAAyB;YACnD,OAAO,EAAE,GAAG;YACZ,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;SACxB,CAAC,CAAC;QAEH,iGAAiG;QACzF,oBAAe,GAAG,IAAI,UAAU,CAAe,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QApBtE,QAAQ,CAAC,QAAQ,CAAC,gBA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AE,OAAO,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC,CAAC;IAC3I,CAAC;IAED,6HAA6H;IACtH,kBAAkB,CAAC,QAAgB;QACtC,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAED,8EAA8E;IACvE,KAAK;QACR,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACnB,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC;IACjC,CAAC;IAED,mGAAmG;IAC3F,aAAa,CAAC,KAAc;QAChC,IAAI,KAAK,CAAC,KAAK,KAAK,WAAW,CAAC,cAAc,IAAI,KAAK,CAAC,SAAS,KAAK,UAAU,CAAC,aAAa,EAAE,CAAC;YAC7F,OAAO;QACX,CAAC;QACD,MAAM,WAAW,GAAgC,KAAK,CAAC,IAAI,CAAC;QAC5D,MAAM,MAAM,GAAG,WAAW,EAAE,UAAU,CAAC;QACvC,IAAI,WAAW,EAAE,IAAI,KAAK,MAAM,IAAI,MAAM,YAAY,0BAA0B,IAAI,kBAAkB,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3H,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACvC,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -14,14 +14,23 @@ export declare class QueryBuilderAgent extends BaseAgent {
|
|
|
14
14
|
*/
|
|
15
15
|
protected validateSuccessNextStep<P>(params: ExecuteAgentParams, nextStep: BaseAgentNextStep<P>, currentPayload: P, agentRun: MJAIAgentRunEntityExtended, currentStep: MJAIAgentRunStepEntityExtended): Promise<BaseAgentNextStep<P>>;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* Query Builder is a conversational agent that finishes turns with `step: 'Chat'`
|
|
18
|
+
* (`AwaitingFeedback`) rather than `step: 'Success'`. Apply the same format normalization
|
|
19
|
+
* and SQL formatting on Chat steps so every emitted artifact version is clean.
|
|
19
20
|
*/
|
|
21
|
+
protected validateChatNextStep<P>(params: ExecuteAgentParams, nextStep: BaseAgentNextStep<P>, currentPayload: P, agentRun: MJAIAgentRunEntityExtended, currentStep: MJAIAgentRunStepEntityExtended): Promise<BaseAgentNextStep<P>>;
|
|
22
|
+
private postProcessQueryBuilderStep;
|
|
20
23
|
private resolveEffectivePayload;
|
|
21
24
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
25
|
+
* Ensures a single-table DataArtifactSpec (`columns`/`rows`) does not retain stale `tables`
|
|
26
|
+
* (and vice versa) when a turn transitions between single-table and multi-table formats.
|
|
27
|
+
*/
|
|
28
|
+
protected normalizePayloadFormat<P>(payload: P, nextStep: BaseAgentNextStep<P>): P;
|
|
29
|
+
/**
|
|
30
|
+
* Formats `metadata.sql` (single-table) and/or `tables[].metadata.sql` (multi-table)
|
|
31
|
+
* with sql-formatter. Returns a new payload with formatted SQL, or null if unchanged.
|
|
24
32
|
*/
|
|
25
33
|
private formatPayloadSql;
|
|
34
|
+
private tryFormatSql;
|
|
26
35
|
}
|
|
27
36
|
//# sourceMappingURL=query-builder-agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-builder-agent.d.ts","sourceRoot":"","sources":["../src/query-builder-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAIjJ;;;;;;GAMG;AACH,qBACa,iBAAkB,SAAQ,SAAS;IAE5C;;;OAGG;cACsB,uBAAuB,CAAC,CAAC,EAC9C,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAC9B,cAAc,EAAE,CAAC,EACjB,QAAQ,EAAE,0BAA0B,EACpC,WAAW,EAAE,8BAA8B,GAC5C,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"query-builder-agent.d.ts","sourceRoot":"","sources":["../src/query-builder-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAIjJ;;;;;;GAMG;AACH,qBACa,iBAAkB,SAAQ,SAAS;IAE5C;;;OAGG;cACsB,uBAAuB,CAAC,CAAC,EAC9C,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAC9B,cAAc,EAAE,CAAC,EACjB,QAAQ,EAAE,0BAA0B,EACpC,WAAW,EAAE,8BAA8B,GAC5C,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAWhC;;;;OAIG;cACsB,oBAAoB,CAAC,CAAC,EAC3C,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAC9B,cAAc,EAAE,CAAC,EACjB,QAAQ,EAAE,0BAA0B,EACpC,WAAW,EAAE,8BAA8B,GAC5C,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAQhC,OAAO,CAAC,2BAA2B;IAiBnC,OAAO,CAAC,uBAAuB;IAa/B;;;OAGG;IACH,SAAS,CAAC,sBAAsB,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC;IA6ClF;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IA2CxB,OAAO,CAAC,YAAY;CAcvB"}
|
|
@@ -26,11 +26,25 @@ let QueryBuilderAgent = class QueryBuilderAgent extends BaseAgent {
|
|
|
26
26
|
if (baseResult.step === 'Retry') {
|
|
27
27
|
return baseResult;
|
|
28
28
|
}
|
|
29
|
-
// Resolve the effective payload
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
// Resolve the effective payload and strip mutually-exclusive stale format keys
|
|
30
|
+
return this.postProcessQueryBuilderStep(baseResult, currentPayload);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Query Builder is a conversational agent that finishes turns with `step: 'Chat'`
|
|
34
|
+
* (`AwaitingFeedback`) rather than `step: 'Success'`. Apply the same format normalization
|
|
35
|
+
* and SQL formatting on Chat steps so every emitted artifact version is clean.
|
|
36
|
+
*/
|
|
37
|
+
async validateChatNextStep(params, nextStep, currentPayload, agentRun, currentStep) {
|
|
38
|
+
const baseResult = await super.validateChatNextStep(params, nextStep, currentPayload, agentRun, currentStep);
|
|
39
|
+
if (baseResult.step !== 'Chat') {
|
|
40
|
+
return baseResult;
|
|
41
|
+
}
|
|
42
|
+
return this.postProcessQueryBuilderStep(baseResult, currentPayload);
|
|
43
|
+
}
|
|
44
|
+
postProcessQueryBuilderStep(baseResult, currentPayload) {
|
|
45
|
+
const effectivePayload = this.normalizePayloadFormat(this.resolveEffectivePayload(currentPayload, baseResult), baseResult);
|
|
46
|
+
const formatted = this.formatPayloadSql(effectivePayload) ?? effectivePayload;
|
|
47
|
+
if (formatted !== currentPayload) {
|
|
34
48
|
return {
|
|
35
49
|
...baseResult,
|
|
36
50
|
newPayload: formatted
|
|
@@ -38,14 +52,11 @@ let QueryBuilderAgent = class QueryBuilderAgent extends BaseAgent {
|
|
|
38
52
|
}
|
|
39
53
|
return baseResult;
|
|
40
54
|
}
|
|
41
|
-
/**
|
|
42
|
-
* Applies payload change request (if any) to produce the actual payload
|
|
43
|
-
* that will be persisted.
|
|
44
|
-
*/
|
|
45
55
|
resolveEffectivePayload(currentPayload, nextStep) {
|
|
46
56
|
if (nextStep.payloadChangeRequest) {
|
|
47
57
|
const pm = new PayloadManager();
|
|
48
|
-
const
|
|
58
|
+
const base = nextStep.artifactDirective?.behavior === 'create-new' ? {} : currentPayload;
|
|
59
|
+
const result = pm.applyAgentChangeRequest(base, nextStep.payloadChangeRequest);
|
|
49
60
|
return result.result || currentPayload;
|
|
50
61
|
}
|
|
51
62
|
if (nextStep.newPayload) {
|
|
@@ -54,34 +65,98 @@ let QueryBuilderAgent = class QueryBuilderAgent extends BaseAgent {
|
|
|
54
65
|
return currentPayload;
|
|
55
66
|
}
|
|
56
67
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
68
|
+
* Ensures a single-table DataArtifactSpec (`columns`/`rows`) does not retain stale `tables`
|
|
69
|
+
* (and vice versa) when a turn transitions between single-table and multi-table formats.
|
|
70
|
+
*/
|
|
71
|
+
normalizePayloadFormat(payload, nextStep) {
|
|
72
|
+
if (!payload || typeof payload !== 'object' || Array.isArray(payload)) {
|
|
73
|
+
return payload;
|
|
74
|
+
}
|
|
75
|
+
const p = payload;
|
|
76
|
+
const changeReq = nextStep.payloadChangeRequest;
|
|
77
|
+
if (!changeReq) {
|
|
78
|
+
return payload;
|
|
79
|
+
}
|
|
80
|
+
const touchedKeys = new Set([
|
|
81
|
+
...Object.keys(changeReq.newElements || {}),
|
|
82
|
+
...Object.keys(changeReq.updateElements || {}),
|
|
83
|
+
...Object.keys(changeReq.replaceElements || {}),
|
|
84
|
+
]);
|
|
85
|
+
const wroteSingleTable = touchedKeys.has('columns') || touchedKeys.has('rows');
|
|
86
|
+
const wroteMultiTable = touchedKeys.has('tables');
|
|
87
|
+
if (wroteSingleTable && !wroteMultiTable && ('tables' in p || 'computations' in p || 'interpretation' in p)) {
|
|
88
|
+
const cleaned = { ...p };
|
|
89
|
+
delete cleaned.tables;
|
|
90
|
+
delete cleaned.computations;
|
|
91
|
+
if (!touchedKeys.has('interpretation')) {
|
|
92
|
+
delete cleaned.interpretation;
|
|
93
|
+
}
|
|
94
|
+
return cleaned;
|
|
95
|
+
}
|
|
96
|
+
if (wroteMultiTable && !wroteSingleTable && ('columns' in p || 'rows' in p || 'metadata' in p || 'source' in p)) {
|
|
97
|
+
const cleaned = { ...p };
|
|
98
|
+
delete cleaned.columns;
|
|
99
|
+
delete cleaned.rows;
|
|
100
|
+
if (!touchedKeys.has('source')) {
|
|
101
|
+
delete cleaned.source;
|
|
102
|
+
}
|
|
103
|
+
if (!touchedKeys.has('metadata')) {
|
|
104
|
+
delete cleaned.metadata;
|
|
105
|
+
}
|
|
106
|
+
return cleaned;
|
|
107
|
+
}
|
|
108
|
+
return payload;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Formats `metadata.sql` (single-table) and/or `tables[].metadata.sql` (multi-table)
|
|
112
|
+
* with sql-formatter. Returns a new payload with formatted SQL, or null if unchanged.
|
|
59
113
|
*/
|
|
60
114
|
formatPayloadSql(payload) {
|
|
61
115
|
const p = payload;
|
|
62
|
-
|
|
63
|
-
const rawSql = metadata?.sql;
|
|
64
|
-
if (typeof rawSql !== 'string' || rawSql.trim().length === 0) {
|
|
116
|
+
if (!p || typeof p !== 'object') {
|
|
65
117
|
return null;
|
|
66
118
|
}
|
|
119
|
+
let changed = false;
|
|
120
|
+
const result = { ...p };
|
|
121
|
+
const metadata = p.metadata;
|
|
122
|
+
const rawSql = metadata?.sql;
|
|
123
|
+
if (typeof rawSql === 'string' && rawSql.trim().length > 0) {
|
|
124
|
+
const formatted = this.tryFormatSql(rawSql);
|
|
125
|
+
if (formatted && formatted !== rawSql) {
|
|
126
|
+
result.metadata = { ...metadata, sql: formatted };
|
|
127
|
+
changed = true;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
if (Array.isArray(p.tables)) {
|
|
131
|
+
const formattedTables = p.tables.map((table) => {
|
|
132
|
+
const tMeta = table?.metadata;
|
|
133
|
+
const tSql = tMeta?.sql;
|
|
134
|
+
if (typeof tSql === 'string' && tSql.trim().length > 0) {
|
|
135
|
+
const formatted = this.tryFormatSql(tSql);
|
|
136
|
+
if (formatted && formatted !== tSql) {
|
|
137
|
+
changed = true;
|
|
138
|
+
return {
|
|
139
|
+
...table,
|
|
140
|
+
metadata: { ...tMeta, sql: formatted }
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return table;
|
|
145
|
+
});
|
|
146
|
+
if (changed) {
|
|
147
|
+
result.tables = formattedTables;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return changed ? result : null;
|
|
151
|
+
}
|
|
152
|
+
tryFormatSql(rawSql) {
|
|
67
153
|
try {
|
|
68
|
-
|
|
154
|
+
return formatSQL(rawSql, {
|
|
69
155
|
language: 'tsql',
|
|
70
156
|
tabWidth: 4,
|
|
71
157
|
keywordCase: 'upper',
|
|
72
158
|
linesBetweenQueries: 2
|
|
73
159
|
});
|
|
74
|
-
// Only update if formatting actually changed something
|
|
75
|
-
if (formatted === rawSql) {
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
return {
|
|
79
|
-
...p,
|
|
80
|
-
metadata: {
|
|
81
|
-
...metadata,
|
|
82
|
-
sql: formatted
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
160
|
}
|
|
86
161
|
catch (err) {
|
|
87
162
|
const message = err instanceof Error ? err.message : String(err);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-builder-agent.js","sourceRoot":"","sources":["../src/query-builder-agent.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;;GAMG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,SAAS;IAE5C;;;OAGG;IACgB,KAAK,CAAC,uBAAuB,CAC5C,MAA0B,E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CAAC;YACpB,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACjE,OAAO,CAAC,IAAI,CAAC,yEAAyE,OAAO,EAAE,CAAC,CAAC;YACjG,OAAO,IAAI,CAAC;QAChB,CAAC;IACL,CAAC;CACJ,CAAA;AAtLY,iBAAiB;IAD7B,aAAa,CAAC,SAAS,EAAE,mBAAmB,CAAC;GACjC,iBAAiB,CAsL7B"}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import { IRealtimeSession, ChatMessage, RealtimeVoiceOption, RealtimeToolDefinition, AIAPIKeyResolver } from '@memberjunction/ai';
|
|
20
20
|
import { IMetadataProvider, UserInfo } from '@memberjunction/core';
|
|
21
|
+
import { RealtimeHostToolsResolver } from './realtime-client-session-service.js';
|
|
21
22
|
/**
|
|
22
23
|
* The context a bridge passes to {@link CreateBridgeRealtimeSession}. Structurally compatible with the
|
|
23
24
|
* LiveKit coordinator's `RealtimeSessionStartContext` (and any future bridge's equivalent) so this factory
|
|
@@ -70,6 +71,11 @@ export interface BridgeRealtimeSessionContext {
|
|
|
70
71
|
* (see `GetBridgeRealtimeRuntime`).
|
|
71
72
|
*/
|
|
72
73
|
HostTools?: RealtimeToolDefinition[];
|
|
74
|
+
/**
|
|
75
|
+
* Optional callback that allows the host to resolve host tools dynamically based on
|
|
76
|
+
* the model, vendor, and driver actually resolved for the session, before session opening.
|
|
77
|
+
*/
|
|
78
|
+
ResolveHostTools?: RealtimeHostToolsResolver;
|
|
73
79
|
/** Host-authored instructions appended to the system prompt (e.g. the phone-call and caller framing). */
|
|
74
80
|
HostFraming?: string;
|
|
75
81
|
/**
|
|
@@ -82,6 +88,17 @@ export interface BridgeRealtimeSessionContext {
|
|
|
82
88
|
ConversationMessages?: ChatMessage[];
|
|
83
89
|
/** The `MJ: Conversations` row the session writes to — stamped on the co-agent observability run. */
|
|
84
90
|
ConversationID?: string;
|
|
91
|
+
/**
|
|
92
|
+
* `'room'` when the bridge's bot can publish the agent's avatar into the room (the LiveKit coordinator asks its native
|
|
93
|
+
* module first). Flows to the session's avatar request, so the driver may render it. Absent: audio only.
|
|
94
|
+
*/
|
|
95
|
+
AvatarDelivery?: 'room';
|
|
96
|
+
/**
|
|
97
|
+
* `true` when the session is a phone call (a carrier call, or a SIP call in a LiveKit room). Flows to
|
|
98
|
+
* `params.data.realtimePhoneCall`: the session then asks the driver for no avatar (the caller sees no video) and
|
|
99
|
+
* reports `phone` as its avatar status.
|
|
100
|
+
*/
|
|
101
|
+
PhoneCall?: boolean;
|
|
85
102
|
}
|
|
86
103
|
/**
|
|
87
104
|
* Opens a raw {@link IRealtimeSession} for the agent named in `ctx`. Bind this onto a bridge's
|
|
@@ -106,20 +123,45 @@ export declare function CreateBridgeRealtimeSession(ctx: BridgeRealtimeSessionCo
|
|
|
106
123
|
* @param provider The metadata provider (required — skipped without it).
|
|
107
124
|
*/
|
|
108
125
|
export declare function FinalizeBridgeCoAgentRuns(agentSessionID: string, success: boolean, contextUser?: UserInfo, provider?: IMetadataProvider): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* A voice the dev model/voice picker offers: one per persona, or one per voice only the driver declares. Two personas can
|
|
128
|
+
* share a voice `ID` (a voice, and the same voice with a face), so {@link PersonaID} tells them apart. A persona voice also
|
|
129
|
+
* carries the avatar that comes with it and the persona's preview image; a voice only the driver declares carries none of
|
|
130
|
+
* the three.
|
|
131
|
+
*/
|
|
132
|
+
export interface RealtimeModelVoiceOption extends RealtimeVoiceOption {
|
|
133
|
+
/** The persona this voice belongs to (`MJ: AI Personas.ID`). Absent for a voice only the driver declares. */
|
|
134
|
+
PersonaID?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The avatar that comes with this voice: the `APIName` of the persona's preset Video binding on the model's vendor,
|
|
137
|
+
* which is what `realtime.video.avatarId` takes. Absent when the persona has no such binding there, or only a custom
|
|
138
|
+
* one (custom avatars are not supported), and on a model that shows no avatar there (its Video/Output row turns
|
|
139
|
+
* video off, or its driver renders none on that vendor's endpoint).
|
|
140
|
+
*/
|
|
141
|
+
AvatarID?: string;
|
|
142
|
+
/** The persona's preview image (`MJ: AI Personas.PreviewImageURL`), when it has one. */
|
|
143
|
+
PreviewImageURL?: string;
|
|
144
|
+
}
|
|
109
145
|
/** An active Realtime model paired with the voices its driver supports — for the dev model/voice picker. */
|
|
110
146
|
export interface RealtimeModelVoices {
|
|
111
147
|
/** The `MJ: AI Models` row id. */
|
|
112
148
|
ModelID: string;
|
|
113
149
|
/** The model's display name. */
|
|
114
150
|
ModelName: string;
|
|
115
|
-
/** The
|
|
116
|
-
Voices:
|
|
151
|
+
/** The model's persona voices on its vendor, then the driver's other voices (empty when there are none). */
|
|
152
|
+
Voices: RealtimeModelVoiceOption[];
|
|
117
153
|
}
|
|
118
154
|
/**
|
|
119
155
|
* Enumerates the active Realtime models with each driver's supported voices — the source for the dev
|
|
120
156
|
* model/voice picker. Only models with an Active vendor + resolvable API key + ClassFactory driver are
|
|
121
157
|
* returned (a model you can't actually run isn't worth offering). Voices come from the driver
|
|
122
158
|
* ({@link BaseRealtimeModel.SupportedVoices}) — the near-term, driver-owned source of truth.
|
|
159
|
+
* A persona voice whose persona also has a preset Video binding on the same vendor names that avatar
|
|
160
|
+
* ({@link RealtimeModelVoiceOption.AvatarID}), when the model shows avatars on that vendor
|
|
161
|
+
* ({@link RealtimeModelShowsAvatar}: its Video/Output row allows video or it has none, and the driver
|
|
162
|
+
* renders avatars on its endpoint); driver voices never do. So the picker marks a voice "Comes with an
|
|
163
|
+
* avatar" only where a call can show one. A persona with a face doesn't stand in for its plain voice, so
|
|
164
|
+
* the plain voice is listed too.
|
|
123
165
|
*
|
|
124
166
|
* @param contextUser The user the engine config runs as (server-side).
|
|
125
167
|
* @param provider The request-scoped metadata provider (multi-provider safe).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge-realtime-session-factory.d.ts","sourceRoot":"","sources":["../../src/realtime/bridge-realtime-session-factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAqB,mBAAmB,EAAE,sBAAsB,EAAE,gBAAgB,EAAwB,MAAM,oBAAoB,CAAC;AAC3K,OAAO,EAAE,iBAAiB,EAAY,QAAQ,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"bridge-realtime-session-factory.d.ts","sourceRoot":"","sources":["../../src/realtime/bridge-realtime-session-factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAqB,mBAAmB,EAAE,sBAAsB,EAAE,gBAAgB,EAAwB,MAAM,oBAAoB,CAAC;AAC3K,OAAO,EAAE,iBAAiB,EAAY,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAM7E,OAAO,EAAgC,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAI5G;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oGAAoG;IACpG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,oGAAoG;IACpG,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IACrC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sGA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