@memberjunction/ai-agents 6.1.0-edge.0 → 6.1.0-edge.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -2
- package/dist/MJAIAgentRequestEntityServer.d.ts.map +1 -1
- package/dist/MJAIAgentRequestEntityServer.js +10 -1
- package/dist/MJAIAgentRequestEntityServer.js.map +1 -1
- package/dist/agent-types/base-agent-type.d.ts +23 -0
- package/dist/agent-types/base-agent-type.d.ts.map +1 -1
- package/dist/agent-types/base-agent-type.js +47 -1
- package/dist/agent-types/base-agent-type.js.map +1 -1
- package/dist/agent-types/flow-agent-prompt-params.d.ts +57 -0
- package/dist/agent-types/flow-agent-prompt-params.d.ts.map +1 -0
- package/dist/agent-types/flow-agent-prompt-params.js +8 -0
- package/dist/agent-types/flow-agent-prompt-params.js.map +1 -0
- package/dist/agent-types/flow-agent-type.d.ts +77 -6
- package/dist/agent-types/flow-agent-type.d.ts.map +1 -1
- package/dist/agent-types/flow-agent-type.js +182 -53
- package/dist/agent-types/flow-agent-type.js.map +1 -1
- package/dist/agent-types/flow-graph-adapters.d.ts +42 -0
- package/dist/agent-types/flow-graph-adapters.d.ts.map +1 -0
- package/dist/agent-types/flow-graph-adapters.js +99 -0
- package/dist/agent-types/flow-graph-adapters.js.map +1 -0
- package/dist/agent-types/flow-graph-executor.d.ts +26 -0
- package/dist/agent-types/flow-graph-executor.d.ts.map +1 -0
- package/dist/agent-types/flow-graph-executor.js +105 -0
- package/dist/agent-types/flow-graph-executor.js.map +1 -0
- package/dist/agent-types/index.d.ts +2 -0
- package/dist/agent-types/index.d.ts.map +1 -1
- package/dist/agent-types/index.js +2 -0
- package/dist/agent-types/index.js.map +1 -1
- package/dist/agent-types/loop-agent-prompt-params.d.ts +27 -0
- package/dist/agent-types/loop-agent-prompt-params.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-prompt-params.js +5 -1
- package/dist/agent-types/loop-agent-prompt-params.js.map +1 -1
- package/dist/agent-types/loop-agent-response-type.d.ts +14 -3
- 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 +25 -0
- package/dist/agent-types/loop-agent-type.d.ts.map +1 -1
- package/dist/agent-types/loop-agent-type.js +109 -1
- package/dist/agent-types/loop-agent-type.js.map +1 -1
- package/dist/base-agent.d.ts +89 -10
- package/dist/base-agent.d.ts.map +1 -1
- package/dist/base-agent.js +306 -91
- package/dist/base-agent.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/realtime/bridge-realtime-session-factory.d.ts.map +1 -1
- package/dist/realtime/bridge-realtime-session-factory.js +2 -13
- package/dist/realtime/bridge-realtime-session-factory.js.map +1 -1
- package/dist/realtime/realtime-client-session-service.d.ts +67 -16
- package/dist/realtime/realtime-client-session-service.d.ts.map +1 -1
- package/dist/realtime/realtime-client-session-service.js +79 -29
- package/dist/realtime/realtime-client-session-service.js.map +1 -1
- package/dist/realtime/realtime-coagent-config.d.ts +143 -14
- package/dist/realtime/realtime-coagent-config.d.ts.map +1 -1
- package/dist/realtime/realtime-coagent-config.js +187 -18
- package/dist/realtime/realtime-coagent-config.js.map +1 -1
- package/dist/realtime/realtime-vendor-resolution.d.ts +49 -0
- package/dist/realtime/realtime-vendor-resolution.d.ts.map +1 -0
- package/dist/realtime/realtime-vendor-resolution.js +43 -0
- package/dist/realtime/realtime-vendor-resolution.js.map +1 -0
- package/package.json +18 -18
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export * from './realtime/realtime-turn-moderator.js';
|
|
|
59
59
|
export { RealtimeToolBroker, RealtimeToolBrokerDeps, ExecutedToolCall, DelegatedRunArtifact } from './realtime/realtime-tool-broker.js';
|
|
60
60
|
export * from './realtime/realtime-client-session-service.js';
|
|
61
61
|
export * from './realtime/realtime-coagent-config.js';
|
|
62
|
+
export * from './realtime/realtime-vendor-resolution.js';
|
|
62
63
|
export * from './realtime/realtime-narration.js';
|
|
63
64
|
export * from './realtime/realtime-channel-server-host.js';
|
|
64
65
|
export * from './realtime/whiteboard-channel-server.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,0CAA0C,CAAC;AACzD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iCAAiC,CAAC;AAChD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;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C,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAChD,cAAc,iDAAiD,CAAC;AAChE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AAGpD,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,EACnB,0BAA0B,EAC1B,WAAW,GACZ,MAAM,6BAA6B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -63,6 +63,7 @@ export * from './realtime/realtime-turn-moderator.js';
|
|
|
63
63
|
export { RealtimeToolBroker } from './realtime/realtime-tool-broker.js';
|
|
64
64
|
export * from './realtime/realtime-client-session-service.js';
|
|
65
65
|
export * from './realtime/realtime-coagent-config.js';
|
|
66
|
+
export * from './realtime/realtime-vendor-resolution.js';
|
|
66
67
|
export * from './realtime/realtime-narration.js';
|
|
67
68
|
export * from './realtime/realtime-channel-server-host.js';
|
|
68
69
|
export * from './realtime/whiteboard-channel-server.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAA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c,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,4FAA4F;AAC5F,8FAA8F;AAC9F,2FAA2F;AAC3F,8BAA8B;AAC9B,OAAO,EAAE,kBAAkB,EAAkE,MAAM,iCAAiC,CAAC;AACrI,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAChD,cAAc,iDAAiD,CAAC;AAChE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AAEpD,wDAAwD;AACxD,OAAO,EACL,eAAe,EAEf,0BAA0B,EAG1B,WAAW,GACZ,MAAM,6BAA6B,CAAC"}
|
|
@@ -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,EAAkC,mBAAmB,EAAe,MAAM,oBAAoB,CAAC;AACxH,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,EAAkC,mBAAmB,EAAe,MAAM,oBAAoB,CAAC;AACxH,OAAO,EAAE,iBAAiB,EAAY,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAQ7E;;;;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,sGAAsG;IACtG,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,wBAAsB,2BAA2B,CAAC,GAAG,EAAE,4BAA4B,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAmC9G;AA8BD;;;;;;;;;;;GAWG;AACH,wBAAsB,yBAAyB,CAC3C,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,OAAO,EAChB,WAAW,CAAC,EAAE,QAAQ,EACtB,QAAQ,CAAC,EAAE,iBAAiB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAKf;AAED,4GAA4G;AAC5G,MAAM,WAAW,mBAAmB;IAChC,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,gCAAgC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,4FAA4F;IAC5F,MAAM,EAAE,mBAAmB,EAAE,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAsB,sBAAsB,CACxC,WAAW,CAAC,EAAE,QAAQ,EACtB,QAAQ,CAAC,EAAE,iBAAiB,GAC7B,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAoBhC"}
|
|
@@ -22,6 +22,7 @@ import { MJGlobal, UUIDsEqual } from '@memberjunction/global';
|
|
|
22
22
|
import { AIEngine } from '@memberjunction/aiengine';
|
|
23
23
|
import { BaseAgent } from '../base-agent.js';
|
|
24
24
|
import { RealtimeClientSessionService } from './realtime-client-session-service.js';
|
|
25
|
+
import { SelectRealtimeVendorForModel } from './realtime-vendor-resolution.js';
|
|
25
26
|
/**
|
|
26
27
|
* Opens a raw {@link IRealtimeSession} for the agent named in `ctx`. Bind this onto a bridge's
|
|
27
28
|
* session-factory seam (e.g. `LiveKitAgentRoomCoordinator.Instance.SetSessionFactory(CreateBridgeRealtimeSession)`).
|
|
@@ -124,7 +125,7 @@ export async function GetRealtimeModelVoices(contextUser, provider) {
|
|
|
124
125
|
.sort((a, b) => (b.PowerRank ?? 0) - (a.PowerRank ?? 0));
|
|
125
126
|
const out = [];
|
|
126
127
|
for (const model of models) {
|
|
127
|
-
const driverClass =
|
|
128
|
+
const driverClass = SelectRealtimeVendorForModel(model.ID)?.DriverClass ?? null;
|
|
128
129
|
if (!driverClass) {
|
|
129
130
|
continue; // no active vendor with a resolvable key — not runnable, so omit
|
|
130
131
|
}
|
|
@@ -133,18 +134,6 @@ export async function GetRealtimeModelVoices(contextUser, provider) {
|
|
|
133
134
|
}
|
|
134
135
|
return out;
|
|
135
136
|
}
|
|
136
|
-
/** The DriverClass of the highest-priority Active vendor (with a resolvable API key) for a model, or null. */
|
|
137
|
-
function resolveRealtimeDriverClass(modelID) {
|
|
138
|
-
const vendors = AIEngine.Instance.ModelVendors
|
|
139
|
-
.filter((mv) => UUIDsEqual(mv.ModelID, modelID) && mv.Status === 'Active' && mv.DriverClass != null)
|
|
140
|
-
.sort((a, b) => (b.Priority ?? 0) - (a.Priority ?? 0));
|
|
141
|
-
for (const v of vendors) {
|
|
142
|
-
if (GetAIAPIKey(v.DriverClass)) {
|
|
143
|
-
return v.DriverClass;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
return null;
|
|
147
|
-
}
|
|
148
137
|
/** Resolves the agent entity from the engine cache by id (preferred), then by case-insensitive name. */
|
|
149
138
|
function resolveAgentEntity(ctx) {
|
|
150
139
|
const agents = AIEngine.Instance.Agents;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge-realtime-session-factory.js","sourceRoot":"","sources":["../../src/realtime/bridge-realtime-session-factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAiC,iBAAiB,EAAuB,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACxH,OAAO,EAAqB,QAAQ,EAAY,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"bridge-realtime-session-factory.js","sourceRoot":"","sources":["../../src/realtime/bridge-realtime-session-factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAiC,iBAAiB,EAAuB,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACxH,OAAO,EAAqB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G,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAClD,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
|
@@ -34,6 +34,7 @@ import { BaseRealtimeModel, ChatMessage, ClientRealtimeSessionConfig, IRealtimeS
|
|
|
34
34
|
import { MJAIAgentEntityExtended, MJAIModelEntityExtended, MJAIAgentRunEntityExtended, AgentExecutionProgressCallback, ExecuteAgentResult, AppContextSnapshot } from '@memberjunction/ai-core-plus';
|
|
35
35
|
import { RealtimeToolBroker, RealtimeColleague, DelegateToTargetRequest, DelegatedResult, DelegatedRunArtifact, ToolExecutionResult } from './realtime-tool-broker.js';
|
|
36
36
|
import { RealtimeAllowedAgent, RealtimeCoAgentConfig } from './realtime-coagent-config.js';
|
|
37
|
+
import { RealtimeVendorSelection } from './realtime-vendor-resolution.js';
|
|
37
38
|
/**
|
|
38
39
|
* Input for {@link RealtimeClientSessionService.PrepareClientSession}.
|
|
39
40
|
*
|
|
@@ -170,6 +171,22 @@ export interface RealtimeClientSessionPrepResult {
|
|
|
170
171
|
ModelID?: string;
|
|
171
172
|
/** The display name of the realtime model the session was minted with. Present on success. */
|
|
172
173
|
ModelName?: string;
|
|
174
|
+
/**
|
|
175
|
+
* The `DriverClass` of the vendor that actually ran the session (e.g. `OpenAIRealtime`,
|
|
176
|
+
* `ElevenLabsRealtime`). Present on success.
|
|
177
|
+
*
|
|
178
|
+
* Disclosed for OBSERVABILITY — on the default-model path the framework picks the vendor itself, so
|
|
179
|
+
* without this a caller cannot tell which one spoke, and cannot diagnose a voice that did not land
|
|
180
|
+
* (issue #3530). Plumbed all the way to the browser as `StartRealtimeClientSessionResult.DriverClass`
|
|
181
|
+
* (`RealtimeClientSessionResolver`), because on the client-direct path the caller IS the browser — a
|
|
182
|
+
* disclosure that stopped at this service boundary would deliver no observability to anyone.
|
|
183
|
+
*
|
|
184
|
+
* It is deliberately NOT a pre-prepare resolution API: a caller does not need to know the vendor in
|
|
185
|
+
* advance, because {@link RealtimeVoicePersona.voice} carries a voice to whichever vendor is chosen.
|
|
186
|
+
* Re-deriving the vendor in order to pre-file provider-keyed settings duplicates a decision the
|
|
187
|
+
* framework owns.
|
|
188
|
+
*/
|
|
189
|
+
DriverClass?: string;
|
|
173
190
|
/**
|
|
174
191
|
* The DB-driven progress-narration instruction template (the `Realtime Co-Agent - Progress
|
|
175
192
|
* Narration` prompt's `TemplateText`, containing a `{{ progressMessage }}` placeholder).
|
|
@@ -265,6 +282,11 @@ export interface RealtimeModelResolution {
|
|
|
265
282
|
ModelID: string;
|
|
266
283
|
/** The chosen vendor id. */
|
|
267
284
|
VendorID: string;
|
|
285
|
+
/**
|
|
286
|
+
* The chosen `MJ: AI Model Vendors` ROW id (not the vendor id) — the most-specific layer of
|
|
287
|
+
* the model-catalog `ModelConfiguration` cascade. Optional for back-compat with test seams.
|
|
288
|
+
*/
|
|
289
|
+
ModelVendorID?: string;
|
|
268
290
|
/** The vendor API name passed to the provider as the model id. */
|
|
269
291
|
APIName: string;
|
|
270
292
|
/** The model's display name (`MJ: AI Models.Name`). Optional for back-compat with test seams. */
|
|
@@ -322,6 +344,33 @@ export interface RealtimeModelResolutionOutcome {
|
|
|
322
344
|
/** Why resolution failed. Present on failure. */
|
|
323
345
|
ErrorMessage?: string;
|
|
324
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Logs when a configuration authored per-provider voice settings but NONE matched the vendor that
|
|
349
|
+
* actually ran — those settings are dropped, and pre-#3530 that happened with no trace at all: the
|
|
350
|
+
* value stayed visible in the config and simply never reached a driver. Names the authored keys and
|
|
351
|
+
* the resolved driver so the fix is readable straight off the log line.
|
|
352
|
+
*
|
|
353
|
+
* The session still proceeds — an unmatched provider bag is a MISCONFIGURATION, not a fault: the
|
|
354
|
+
* agnostic voice (or the driver's own default) still applies. It is logged at error level anyway,
|
|
355
|
+
* matching how this module already reports tolerant-degradation config problems (see
|
|
356
|
+
* {@link RealtimeClientSessionService.resolveConfiguredModelPreference}), because a silently ignored
|
|
357
|
+
* setting is exactly what nobody noticed for long enough to file the issue.
|
|
358
|
+
*
|
|
359
|
+
* Shared by BOTH realtime surfaces — the client-direct prepare and `BaseAgent`'s server-bridged
|
|
360
|
+
* session — so neither path can drift back into silence.
|
|
361
|
+
*
|
|
362
|
+
* WHY IT LIVES HERE rather than beside {@link MatchProviderVoiceSettings}, which it wraps: this
|
|
363
|
+
* function LOGS, and `realtime-coagent-config.ts` declares itself deliberately framework-free — no DB,
|
|
364
|
+
* no metadata provider, no logging imports. Moving it there would breach that constraint; keeping it
|
|
365
|
+
* here costs `BaseAgent` an import of this module. The placement is the constraint's consequence, not
|
|
366
|
+
* an accident. (The alternative — returning a diagnostic string for callers to log — was rejected as
|
|
367
|
+
* it lets one surface silently choose not to log, which is the failure mode being fixed.)
|
|
368
|
+
*
|
|
369
|
+
* @param effectiveConfig The resolved effective configuration.
|
|
370
|
+
* @param driverClass The resolved vendor's `DriverClass`.
|
|
371
|
+
* @param surface The calling surface, for log attribution (e.g. `RealtimeClientSessionService`).
|
|
372
|
+
*/
|
|
373
|
+
export declare function WarnOnUnmatchedProviderVoice(effectiveConfig: RealtimeCoAgentConfig | undefined, driverClass: string | undefined, surface: string): void;
|
|
325
374
|
/**
|
|
326
375
|
* Server-agnostic service that prepares a client-direct realtime session and executes the tool
|
|
327
376
|
* calls the browser relays back. Constructed per-request (a normal injectable service — NOT a
|
|
@@ -785,16 +834,13 @@ export declare class RealtimeClientSessionService {
|
|
|
785
834
|
private selectRealtimeModelCandidates;
|
|
786
835
|
/**
|
|
787
836
|
* Selects the highest-priority active vendor for a model whose `DriverClass` has a resolvable
|
|
788
|
-
* API key.
|
|
837
|
+
* API key. Delegates to {@link SelectRealtimeVendorForModel} (the one copy of the rule), threading
|
|
838
|
+
* THIS service's {@link getAPIKeyForDriver} so subclasses and tests keep their key-resolution seam.
|
|
789
839
|
*
|
|
790
840
|
* @param modelID The chosen model's id.
|
|
791
841
|
* @returns The vendor driver/api identifiers, or `null` when none has a usable key.
|
|
792
842
|
*/
|
|
793
|
-
protected selectRealtimeVendor(modelID: string):
|
|
794
|
-
VendorID: string;
|
|
795
|
-
DriverClass: string;
|
|
796
|
-
APIName: string;
|
|
797
|
-
} | null;
|
|
843
|
+
protected selectRealtimeVendor(modelID: string): RealtimeVendorSelection | null;
|
|
798
844
|
/**
|
|
799
845
|
* Resolves the DB-driven progress-narration instruction template: the Active `MJ: AI Prompts`
|
|
800
846
|
* row named {@link RealtimeClientSessionService.NarrationPromptName}, read from
|
|
@@ -818,25 +864,30 @@ export declare class RealtimeClientSessionService {
|
|
|
818
864
|
* @param provider The request-scoped metadata provider.
|
|
819
865
|
* @param effectiveConfig The resolved effective configuration (voice persona + provider settings).
|
|
820
866
|
* @param driverClass The resolved vendor's DriverClass — matches per-provider voice settings.
|
|
867
|
+
* @param modelID The resolved `MJ: AI Models` id — keys the model-catalog `ModelConfiguration` cascade.
|
|
868
|
+
* @param modelVendorID The resolved `MJ: AI Model Vendors` ROW id — the cascade's most-specific layer.
|
|
821
869
|
* @returns The assembled session params.
|
|
822
870
|
*/
|
|
823
|
-
protected buildSessionParams(input: PrepareClientSessionInput, coAgent: MJAIAgentEntityExtended, modelApiName: string, contextUser: UserInfo, provider: IMetadataProvider, effectiveConfig?: RealtimeCoAgentConfig, driverClass?: string): Promise<RealtimeSessionParams>;
|
|
871
|
+
protected buildSessionParams(input: PrepareClientSessionInput, coAgent: MJAIAgentEntityExtended, modelApiName: string, contextUser: UserInfo, provider: IMetadataProvider, effectiveConfig?: RealtimeCoAgentConfig, driverClass?: string, modelID?: string, modelVendorID?: string): Promise<RealtimeSessionParams>;
|
|
824
872
|
/**
|
|
825
|
-
* Builds the provider-pact `Config` bag for the session: the effective config's
|
|
826
|
-
* per
|
|
827
|
-
*
|
|
828
|
-
*
|
|
829
|
-
*
|
|
830
|
-
*
|
|
831
|
-
*
|
|
832
|
-
*
|
|
873
|
+
* Builds the provider-pact `Config` bag for the session: the effective config's resolved voice
|
|
874
|
+
* settings (per {@link GetProviderVoiceSettings} — the persona's agnostic wire-level slots
|
|
875
|
+
* under `realtime.voice.default`
|
|
876
|
+
* and/or a matching `realtime.voice.providers.<provider>` bag) merged UNDER any caller-supplied
|
|
877
|
+
* {@link PrepareClientSessionInput.Config} (the runtime bag wins per key). The settings objects
|
|
878
|
+
* are OPAQUE driver pacts — each server driver consumes its own keys exactly as it consumes any
|
|
879
|
+
* other entry of the open config bag (OpenAI spreads it into `session.update`, AssemblyAI reads
|
|
880
|
+
* `voice`, Gemini merges it last). Returns the original `input.Config` (possibly `undefined`)
|
|
881
|
+
* when the config contributes no voice and no session tuning.
|
|
833
882
|
*
|
|
834
883
|
* @param input The prepare-session input (carries the runtime config bag).
|
|
835
884
|
* @param effectiveConfig The resolved effective configuration.
|
|
836
885
|
* @param driverClass The resolved vendor's DriverClass.
|
|
886
|
+
* @param modelID The resolved model id — keys the model-catalog `ModelConfiguration` cascade.
|
|
887
|
+
* @param modelVendorID The resolved model-vendor ROW id — the cascade's most-specific layer.
|
|
837
888
|
* @returns The merged config bag, or `undefined` when nothing contributes.
|
|
838
889
|
*/
|
|
839
|
-
protected buildSessionConfigBag(input: PrepareClientSessionInput, effectiveConfig?: RealtimeCoAgentConfig, driverClass?: string): JSONObject | undefined;
|
|
890
|
+
protected buildSessionConfigBag(input: PrepareClientSessionInput, effectiveConfig?: RealtimeCoAgentConfig, driverClass?: string, modelID?: string, modelVendorID?: string): JSONObject | undefined;
|
|
840
891
|
/**
|
|
841
892
|
* Assembles the companion system prompt: the framing ("you are the voice for the target"), the
|
|
842
893
|
* co-agent's own system prompt text, the TARGET agent's identity/capabilities (Name +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-client-session-service.d.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AAM,GAAG,SAAS,EAC/B,WAAW,EAAE,QAAQ,EACrB,QAAQ,EAAE,iBAAiB,GAC5B,OAAO,CAAC,0BAA0B,GAAG,IAAI,CAAC;IAQ7C;;;;;;OAMG;cACa,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAQ1F;;;;;;OAMG;IACH,OAAO,CAAC,wBAAwB;IAYhC;;;;;;;;OAQG;IACH,OAAO,CAAC,cAAc;IAetB;;;;OAIG;IACH,OAAO,CAAC,cAAc;CAOzB"}
|
|
1
|
+
{"version":3,"file":"realtime-client-session-service.d.ts","sourceRoot":"","sources":["../../src/realtime/realtime-client-session-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAgC,MAAM,sBAAsB,CAAC;AAGjG,OAAO,EACH,iBAAiB,EACjB,WAAW,EACX,2BAA2B,EAE3B,gBAAgB,EAChB,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,kBAAkB,EAAE,kBAAkB,EAAwB,MAAM,8BAA8B,CAAC;AAK1N,OAAO,EACH,kBAAkB,EAIlB,iBAAiB,EACjB,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACtB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAUH,oBAAoB,EACpB,qBAAqB,EAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAgC,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAErG;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACtC,iGAAiG;IACjG,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,2HAA2H;IAC3H,SAAS,CAAC,EAAE,MAAM,CAAC;I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39
39
|
import { RealtimeToolBroker, INVOKE_TARGET_AGENT_TOOL_NAME, BuildRealtimeAgentFraming } from './realtime-tool-broker.js';
|
|
40
40
|
import { NARRATION_PROMPT_NAME, LEGACY_NARRATION_PROMPT_NAME, ResolveNarrationInstructionsTemplate } from './realtime-narration.js';
|
|
41
|
-
import { BuildVoiceMannerSection, BuildAppRealtimeOverridesJson, DeepMergeConfigs, GetDisclosureForTarget, GetNarrationPaceMs, GetProviderVoiceSettings, GetSessionTuningSettings, ResolveEffectiveRealtimeConfig } from './realtime-coagent-config.js';
|
|
41
|
+
import { BuildVoiceMannerSection, BuildAppRealtimeOverridesJson, DeepMergeConfigs, GetModelCatalogSessionSettings, GetDisclosureForTarget, GetNarrationPaceMs, GetProviderVoiceSettings, GetSessionTuningSettings, ResolveEffectiveRealtimeConfig, MatchProviderVoiceSettings } from './realtime-coagent-config.js';
|
|
42
|
+
import { SelectRealtimeVendorForModel } from './realtime-vendor-resolution.js';
|
|
43
|
+
/**
|
|
44
|
+
* Logs when a configuration authored per-provider voice settings but NONE matched the vendor that
|
|
45
|
+
* actually ran — those settings are dropped, and pre-#3530 that happened with no trace at all: the
|
|
46
|
+
* value stayed visible in the config and simply never reached a driver. Names the authored keys and
|
|
47
|
+
* the resolved driver so the fix is readable straight off the log line.
|
|
48
|
+
*
|
|
49
|
+
* The session still proceeds — an unmatched provider bag is a MISCONFIGURATION, not a fault: the
|
|
50
|
+
* agnostic voice (or the driver's own default) still applies. It is logged at error level anyway,
|
|
51
|
+
* matching how this module already reports tolerant-degradation config problems (see
|
|
52
|
+
* {@link RealtimeClientSessionService.resolveConfiguredModelPreference}), because a silently ignored
|
|
53
|
+
* setting is exactly what nobody noticed for long enough to file the issue.
|
|
54
|
+
*
|
|
55
|
+
* Shared by BOTH realtime surfaces — the client-direct prepare and `BaseAgent`'s server-bridged
|
|
56
|
+
* session — so neither path can drift back into silence.
|
|
57
|
+
*
|
|
58
|
+
* WHY IT LIVES HERE rather than beside {@link MatchProviderVoiceSettings}, which it wraps: this
|
|
59
|
+
* function LOGS, and `realtime-coagent-config.ts` declares itself deliberately framework-free — no DB,
|
|
60
|
+
* no metadata provider, no logging imports. Moving it there would breach that constraint; keeping it
|
|
61
|
+
* here costs `BaseAgent` an import of this module. The placement is the constraint's consequence, not
|
|
62
|
+
* an accident. (The alternative — returning a diagnostic string for callers to log — was rejected as
|
|
63
|
+
* it lets one surface silently choose not to log, which is the failure mode being fixed.)
|
|
64
|
+
*
|
|
65
|
+
* @param effectiveConfig The resolved effective configuration.
|
|
66
|
+
* @param driverClass The resolved vendor's `DriverClass`.
|
|
67
|
+
* @param surface The calling surface, for log attribution (e.g. `RealtimeClientSessionService`).
|
|
68
|
+
*/
|
|
69
|
+
export function WarnOnUnmatchedProviderVoice(effectiveConfig, driverClass, surface) {
|
|
70
|
+
const authored = Object.keys(effectiveConfig?.realtime?.voice?.providers ?? {});
|
|
71
|
+
// MatchProviderVoiceSettings, NOT GetProviderVoiceSettings — the latter is truthy for every
|
|
72
|
+
// driver once an agnostic voice is set, which would silence this on the exact path that emits one.
|
|
73
|
+
if (authored.length === 0 || MatchProviderVoiceSettings(effectiveConfig, driverClass ?? null)) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
LogError(`${surface}: realtime.voice.providers authored [${authored.join(', ')}] but the session resolved ` +
|
|
77
|
+
`driver '${driverClass ?? 'unknown'}' — none matched, so those settings were dropped. Author ` +
|
|
78
|
+
'realtime.voice.default.voice to carry a voice to whichever vendor runs.');
|
|
79
|
+
}
|
|
42
80
|
/**
|
|
43
81
|
* Server-agnostic service that prepares a client-direct realtime session and executes the tool
|
|
44
82
|
* calls the browser relays back. Constructed per-request (a normal injectable service — NOT a
|
|
@@ -160,6 +198,7 @@ export class RealtimeClientSessionService {
|
|
|
160
198
|
CoAgentRunStepID: obs?.CoAgentRunStepID,
|
|
161
199
|
ModelID: resolution.ModelID,
|
|
162
200
|
ModelName: resolution.ModelName,
|
|
201
|
+
DriverClass: resolution.DriverClass,
|
|
163
202
|
NarrationInstructionsTemplate: this.resolveNarrationInstructionsTemplate() ?? undefined,
|
|
164
203
|
EffectiveConfig: effectiveConfig,
|
|
165
204
|
NarrationPaceMs: GetNarrationPaceMs(effectiveConfig) ?? undefined,
|
|
@@ -282,7 +321,7 @@ export class RealtimeClientSessionService {
|
|
|
282
321
|
return { Success: false, ErrorMessage: outcome.ErrorMessage ?? this.noModelMessage() };
|
|
283
322
|
}
|
|
284
323
|
const resolution = outcome.Resolution;
|
|
285
|
-
const sessionParams = await this.buildSessionParams(input, coAgent, resolution.APIName, contextUser, provider, effectiveConfig, resolution.DriverClass);
|
|
324
|
+
const sessionParams = await this.buildSessionParams(input, coAgent, resolution.APIName, contextUser, provider, effectiveConfig, resolution.DriverClass, resolution.ModelID, resolution.ModelVendorID);
|
|
286
325
|
return { Success: true, CoAgent: coAgent, Resolution: resolution, EffectiveConfig: effectiveConfig, SessionParams: sessionParams };
|
|
287
326
|
}
|
|
288
327
|
/**
|
|
@@ -1075,6 +1114,7 @@ export class RealtimeClientSessionService {
|
|
|
1075
1114
|
Model: instance,
|
|
1076
1115
|
ModelID: model.ID,
|
|
1077
1116
|
VendorID: vendor.VendorID,
|
|
1117
|
+
ModelVendorID: vendor.ModelVendorID,
|
|
1078
1118
|
APIName: vendor.APIName,
|
|
1079
1119
|
ModelName: model.Name,
|
|
1080
1120
|
DriverClass: vendor.DriverClass
|
|
@@ -1117,21 +1157,14 @@ export class RealtimeClientSessionService {
|
|
|
1117
1157
|
}
|
|
1118
1158
|
/**
|
|
1119
1159
|
* Selects the highest-priority active vendor for a model whose `DriverClass` has a resolvable
|
|
1120
|
-
* API key.
|
|
1160
|
+
* API key. Delegates to {@link SelectRealtimeVendorForModel} (the one copy of the rule), threading
|
|
1161
|
+
* THIS service's {@link getAPIKeyForDriver} so subclasses and tests keep their key-resolution seam.
|
|
1121
1162
|
*
|
|
1122
1163
|
* @param modelID The chosen model's id.
|
|
1123
1164
|
* @returns The vendor driver/api identifiers, or `null` when none has a usable key.
|
|
1124
1165
|
*/
|
|
1125
1166
|
selectRealtimeVendor(modelID) {
|
|
1126
|
-
|
|
1127
|
-
.filter(mv => UUIDsEqual(mv.ModelID, modelID) && mv.Status === 'Active' && mv.DriverClass != null)
|
|
1128
|
-
.sort((a, b) => (b.Priority ?? 0) - (a.Priority ?? 0));
|
|
1129
|
-
for (const v of vendors) {
|
|
1130
|
-
if (this.getAPIKeyForDriver(v.DriverClass)) {
|
|
1131
|
-
return { VendorID: v.VendorID ?? '', DriverClass: v.DriverClass, APIName: v.APIName ?? '' };
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
return null;
|
|
1167
|
+
return SelectRealtimeVendorForModel(modelID, (driverClass) => this.getAPIKeyForDriver(driverClass));
|
|
1135
1168
|
}
|
|
1136
1169
|
/**
|
|
1137
1170
|
* Resolves the DB-driven progress-narration instruction template: the Active `MJ: AI Prompts`
|
|
@@ -1158,17 +1191,25 @@ export class RealtimeClientSessionService {
|
|
|
1158
1191
|
* @param provider The request-scoped metadata provider.
|
|
1159
1192
|
* @param effectiveConfig The resolved effective configuration (voice persona + provider settings).
|
|
1160
1193
|
* @param driverClass The resolved vendor's DriverClass — matches per-provider voice settings.
|
|
1194
|
+
* @param modelID The resolved `MJ: AI Models` id — keys the model-catalog `ModelConfiguration` cascade.
|
|
1195
|
+
* @param modelVendorID The resolved `MJ: AI Model Vendors` ROW id — the cascade's most-specific layer.
|
|
1161
1196
|
* @returns The assembled session params.
|
|
1162
1197
|
*/
|
|
1163
|
-
async buildSessionParams(input, coAgent, modelApiName, contextUser, provider, effectiveConfig, driverClass) {
|
|
1198
|
+
async buildSessionParams(input, coAgent, modelApiName, contextUser, provider, effectiveConfig, driverClass, modelID, modelVendorID) {
|
|
1164
1199
|
const systemPrompt = await this.buildCompanionSystemPrompt(input, coAgent, contextUser, provider, effectiveConfig);
|
|
1165
1200
|
const memoryContext = await this.assembleMemoryContext(input, coAgent, contextUser, provider);
|
|
1166
1201
|
const tools = this.buildStableToolSet(input.ExtraTools);
|
|
1202
|
+
// Hoisted (rather than built inline at the return) so the mint log below can report the voice
|
|
1203
|
+
// that ACTUALLY reached the driver — see the `voice=` field. Same bag, built once.
|
|
1204
|
+
const configBag = this.buildSessionConfigBag(input, effectiveConfig, driverClass, modelID, modelVendorID);
|
|
1205
|
+
WarnOnUnmatchedProviderVoice(effectiveConfig, driverClass, 'RealtimeClientSessionService');
|
|
1167
1206
|
// One line per mint: confirms which tools + whether the channel-direct framing actually reach
|
|
1168
1207
|
// the model — settles "why does the co-agent delegate instead of calling browser_*" without
|
|
1169
1208
|
// runtime guesswork (channelExceptionInPrompt=false ⇒ stale build; browser_* missing from
|
|
1170
|
-
// tools ⇒ the channel's tools never reached the mint).
|
|
1171
|
-
|
|
1209
|
+
// tools ⇒ the channel's tools never reached the mint). `driver`/`voice` make the voice that
|
|
1210
|
+
// actually reached the driver legible — the whole failure mode in #3530 was that it was not.
|
|
1211
|
+
console.log(`[RealtimeCoAgent] mint model=${modelApiName} driver=${driverClass ?? 'unknown'} ` +
|
|
1212
|
+
`voice=${typeof configBag?.['voice'] === 'string' ? configBag['voice'] : 'none'} ` +
|
|
1172
1213
|
`tools=[${tools.map(t => t.Name).join(', ')}] ` +
|
|
1173
1214
|
`channelExceptionInPrompt=${systemPrompt.includes('interactive-surface')}`);
|
|
1174
1215
|
return {
|
|
@@ -1176,7 +1217,7 @@ export class RealtimeClientSessionService {
|
|
|
1176
1217
|
SystemPrompt: systemPrompt,
|
|
1177
1218
|
Tools: tools,
|
|
1178
1219
|
InitialContext: memoryContext || undefined,
|
|
1179
|
-
Config:
|
|
1220
|
+
Config: configBag,
|
|
1180
1221
|
// Server-authoritative duration ceiling (public web-widget voice cap). Drivers that can
|
|
1181
1222
|
// bound the provider session/token apply min(default, this); the janitor enforces it
|
|
1182
1223
|
// regardless of driver support via the session deadline stamped by the transport layer.
|
|
@@ -1184,28 +1225,37 @@ export class RealtimeClientSessionService {
|
|
|
1184
1225
|
};
|
|
1185
1226
|
}
|
|
1186
1227
|
/**
|
|
1187
|
-
* Builds the provider-pact `Config` bag for the session: the effective config's
|
|
1188
|
-
* per
|
|
1189
|
-
*
|
|
1190
|
-
*
|
|
1191
|
-
*
|
|
1192
|
-
*
|
|
1193
|
-
*
|
|
1194
|
-
*
|
|
1228
|
+
* Builds the provider-pact `Config` bag for the session: the effective config's resolved voice
|
|
1229
|
+
* settings (per {@link GetProviderVoiceSettings} — the persona's agnostic wire-level slots
|
|
1230
|
+
* under `realtime.voice.default`
|
|
1231
|
+
* and/or a matching `realtime.voice.providers.<provider>` bag) merged UNDER any caller-supplied
|
|
1232
|
+
* {@link PrepareClientSessionInput.Config} (the runtime bag wins per key). The settings objects
|
|
1233
|
+
* are OPAQUE driver pacts — each server driver consumes its own keys exactly as it consumes any
|
|
1234
|
+
* other entry of the open config bag (OpenAI spreads it into `session.update`, AssemblyAI reads
|
|
1235
|
+
* `voice`, Gemini merges it last). Returns the original `input.Config` (possibly `undefined`)
|
|
1236
|
+
* when the config contributes no voice and no session tuning.
|
|
1195
1237
|
*
|
|
1196
1238
|
* @param input The prepare-session input (carries the runtime config bag).
|
|
1197
1239
|
* @param effectiveConfig The resolved effective configuration.
|
|
1198
1240
|
* @param driverClass The resolved vendor's DriverClass.
|
|
1241
|
+
* @param modelID The resolved model id — keys the model-catalog `ModelConfiguration` cascade.
|
|
1242
|
+
* @param modelVendorID The resolved model-vendor ROW id — the cascade's most-specific layer.
|
|
1199
1243
|
* @returns The merged config bag, or `undefined` when nothing contributes.
|
|
1200
1244
|
*/
|
|
1201
|
-
buildSessionConfigBag(input, effectiveConfig, driverClass) {
|
|
1245
|
+
buildSessionConfigBag(input, effectiveConfig, driverClass, modelID, modelVendorID) {
|
|
1202
1246
|
const providerVoice = GetProviderVoiceSettings(effectiveConfig, driverClass ?? null);
|
|
1247
|
+
// Model-catalog defaults (AIModelType < AIModel < AIModelVendor ModelConfiguration cascade,
|
|
1248
|
+
// resolved by AIEngine) are the BASE layer: the catalog declares what the model supports
|
|
1249
|
+
// (e.g. Realtime.TurnDetection), and every layer above may refine it.
|
|
1250
|
+
const catalogSettings = modelID
|
|
1251
|
+
? GetModelCatalogSessionSettings(AIEngine.Instance.GetEffectiveModelConfiguration(modelID, modelVendorID))
|
|
1252
|
+
: null;
|
|
1203
1253
|
// Session-tuning knobs (realtime.session: effortLevel / parallelToolCalls / mcpTools /
|
|
1204
|
-
// inputTranscriptionModel) merge UNDER the provider voice UNDER the runtime
|
|
1205
|
-
// exact cascade precedence every other config entry follows (runtime wins per key).
|
|
1254
|
+
// inputTranscriptionModel / turnDetection) merge UNDER the provider voice UNDER the runtime
|
|
1255
|
+
// bag — the exact cascade precedence every other config entry follows (runtime wins per key).
|
|
1206
1256
|
const sessionTuning = GetSessionTuningSettings(effectiveConfig);
|
|
1207
|
-
let bag = (sessionTuning || providerVoice)
|
|
1208
|
-
? DeepMergeConfigs(sessionTuning, providerVoice, input.Config)
|
|
1257
|
+
let bag = (catalogSettings || sessionTuning || providerVoice)
|
|
1258
|
+
? DeepMergeConfigs(catalogSettings, sessionTuning, providerVoice, input.Config)
|
|
1209
1259
|
: input.Config;
|
|
1210
1260
|
// Multi-agent meeting: carry the host-NEUTRAL disable-auto-response flag in the open config bag so
|
|
1211
1261
|
// each provider translates it its own way (OpenAI → turn_detection.create_response=false) — the
|