@copilotkit/runtime 1.5.15-next.2 → 1.5.15-next.4
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/CHANGELOG.md +17 -0
- package/__snapshots__/schema/schema.graphql +26 -0
- package/dist/{chunk-C2HNOETE.mjs → chunk-6Z3DFNOC.mjs} +2 -2
- package/dist/{chunk-OTB2F27M.mjs → chunk-EC2ZHPRU.mjs} +2 -2
- package/dist/{chunk-I33ESKDS.mjs → chunk-QDK4OP2Y.mjs} +2 -2
- package/dist/{chunk-4KT3HMC3.mjs → chunk-W4G47FRC.mjs} +539 -303
- package/dist/chunk-W4G47FRC.mjs.map +1 -0
- package/dist/{copilot-runtime-e6c34790.d.ts → copilot-runtime-a113045f.d.ts} +13 -1
- package/dist/{groq-adapter-acb6ed0b.d.ts → groq-adapter-248058e8.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +808 -574
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{langserve-9614171f.d.ts → langserve-9580bd66.d.ts} +16 -2
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +808 -574
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.d.ts +3 -3
- package/dist/lib/integrations/index.js +500 -319
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.d.ts +2 -2
- package/dist/lib/integrations/nest/index.js +500 -319
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.d.ts +2 -2
- package/dist/lib/integrations/node-express/index.js +500 -319
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.d.ts +2 -2
- package/dist/lib/integrations/node-http/index.js +500 -319
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/dist/service-adapters/index.d.ts +3 -3
- package/package.json +3 -3
- package/src/agents/langgraph/event-source.ts +14 -2
- package/src/agents/langgraph/events.ts +12 -1
- package/src/graphql/inputs/generate-copilot-response.input.ts +4 -0
- package/src/graphql/inputs/meta-event.input.ts +17 -0
- package/src/graphql/resolvers/copilot.resolver.ts +67 -22
- package/src/graphql/types/copilot-response.type.ts +6 -0
- package/src/graphql/types/meta-events.type.ts +31 -0
- package/src/lib/runtime/copilot-runtime.ts +14 -0
- package/src/lib/runtime/remote-action-constructors.ts +5 -1
- package/src/lib/runtime/remote-actions.ts +2 -0
- package/src/lib/runtime/remote-lg-action.ts +46 -10
- package/src/service-adapters/events.ts +20 -1
- package/dist/chunk-4KT3HMC3.mjs.map +0 -1
- /package/dist/{chunk-C2HNOETE.mjs.map → chunk-6Z3DFNOC.mjs.map} +0 -0
- /package/dist/{chunk-OTB2F27M.mjs.map → chunk-EC2ZHPRU.mjs.map} +0 -0
- /package/dist/{chunk-I33ESKDS.mjs.map → chunk-QDK4OP2Y.mjs.map} +0 -0
package/dist/lib/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.5.15-next.
|
|
47
|
+
version: "1.5.15-next.4",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -87,7 +87,7 @@ var require_package = __commonJS({
|
|
|
87
87
|
"@langchain/community": "^0.0.53",
|
|
88
88
|
"@langchain/core": "^0.3.13",
|
|
89
89
|
"@langchain/google-gauth": "^0.1.0",
|
|
90
|
-
"@langchain/langgraph-sdk": "^0.0.
|
|
90
|
+
"@langchain/langgraph-sdk": "^0.0.36",
|
|
91
91
|
"@langchain/openai": "^0.0.28",
|
|
92
92
|
"class-transformer": "^0.5.1",
|
|
93
93
|
express: "^4.19.2",
|
|
@@ -1254,7 +1254,12 @@ var LangGraphEventTypes;
|
|
|
1254
1254
|
LangGraphEventTypes2["OnCopilotKitEmitMessage"] = "on_copilotkit_emit_message";
|
|
1255
1255
|
LangGraphEventTypes2["OnCopilotKitEmitToolCall"] = "on_copilotkit_emit_tool_call";
|
|
1256
1256
|
LangGraphEventTypes2["OnCustomEvent"] = "on_custom_event";
|
|
1257
|
+
LangGraphEventTypes2["OnInterrupt"] = "on_interrupt";
|
|
1257
1258
|
})(LangGraphEventTypes || (LangGraphEventTypes = {}));
|
|
1259
|
+
var MetaEventNames;
|
|
1260
|
+
(function(MetaEventNames2) {
|
|
1261
|
+
MetaEventNames2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
1262
|
+
})(MetaEventNames || (MetaEventNames = {}));
|
|
1258
1263
|
var CustomEventNames;
|
|
1259
1264
|
(function(CustomEventNames2) {
|
|
1260
1265
|
CustomEventNames2["CopilotKitManuallyEmitMessage"] = "copilotkit_manually_emit_message";
|
|
@@ -1351,6 +1356,13 @@ var RemoteLangGraphEventSource = class {
|
|
|
1351
1356
|
shouldEmitMessages = acc.event.metadata["copilotkit:emit-messages"];
|
|
1352
1357
|
}
|
|
1353
1358
|
}
|
|
1359
|
+
if (acc.event.event === LangGraphEventTypes.OnInterrupt) {
|
|
1360
|
+
events.push({
|
|
1361
|
+
type: RuntimeEventTypes.MetaEvent,
|
|
1362
|
+
name: RuntimeMetaEventName.LangGraphInterruptEvent,
|
|
1363
|
+
value: acc.event.value
|
|
1364
|
+
});
|
|
1365
|
+
}
|
|
1354
1366
|
const responseMetadata = this.getResponseMetadata(acc.event);
|
|
1355
1367
|
if ((responseMetadata == null ? void 0 : responseMetadata.finish_reason) === "tool_calls" && this.shouldEmitToolCall(shouldEmitToolCalls, acc.lastToolCallName)) {
|
|
1356
1368
|
events.push({
|
|
@@ -1518,6 +1530,74 @@ var ActionInputAvailability;
|
|
|
1518
1530
|
description: "The availability of the frontend action"
|
|
1519
1531
|
});
|
|
1520
1532
|
|
|
1533
|
+
// src/graphql/types/meta-events.type.ts
|
|
1534
|
+
var import_type_graphql2 = require("type-graphql");
|
|
1535
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
1536
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1537
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1538
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
1539
|
+
else
|
|
1540
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
1541
|
+
if (d = decorators[i])
|
|
1542
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1543
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1544
|
+
}
|
|
1545
|
+
__name(_ts_decorate, "_ts_decorate");
|
|
1546
|
+
function _ts_metadata(k, v) {
|
|
1547
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1548
|
+
return Reflect.metadata(k, v);
|
|
1549
|
+
}
|
|
1550
|
+
__name(_ts_metadata, "_ts_metadata");
|
|
1551
|
+
var MetaEventName;
|
|
1552
|
+
(function(MetaEventName2) {
|
|
1553
|
+
MetaEventName2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
1554
|
+
})(MetaEventName || (MetaEventName = {}));
|
|
1555
|
+
(0, import_type_graphql2.registerEnumType)(MetaEventName, {
|
|
1556
|
+
name: "MetaEventName",
|
|
1557
|
+
description: "Meta event types"
|
|
1558
|
+
});
|
|
1559
|
+
var BaseMetaEvent = class {
|
|
1560
|
+
type = "MetaEvent";
|
|
1561
|
+
name;
|
|
1562
|
+
};
|
|
1563
|
+
__name(BaseMetaEvent, "BaseMetaEvent");
|
|
1564
|
+
_ts_decorate([
|
|
1565
|
+
(0, import_type_graphql2.Field)(() => String),
|
|
1566
|
+
_ts_metadata("design:type", String)
|
|
1567
|
+
], BaseMetaEvent.prototype, "type", void 0);
|
|
1568
|
+
_ts_decorate([
|
|
1569
|
+
(0, import_type_graphql2.Field)(() => MetaEventName),
|
|
1570
|
+
_ts_metadata("design:type", String)
|
|
1571
|
+
], BaseMetaEvent.prototype, "name", void 0);
|
|
1572
|
+
BaseMetaEvent = _ts_decorate([
|
|
1573
|
+
(0, import_type_graphql2.InterfaceType)()
|
|
1574
|
+
], BaseMetaEvent);
|
|
1575
|
+
var LangGraphInterruptEvent = class {
|
|
1576
|
+
name = "LangGraphInterruptEvent";
|
|
1577
|
+
value;
|
|
1578
|
+
response;
|
|
1579
|
+
};
|
|
1580
|
+
__name(LangGraphInterruptEvent, "LangGraphInterruptEvent");
|
|
1581
|
+
_ts_decorate([
|
|
1582
|
+
(0, import_type_graphql2.Field)(() => MetaEventName),
|
|
1583
|
+
_ts_metadata("design:type", typeof MetaEventName === "undefined" || false ? Object : "LangGraphInterruptEvent")
|
|
1584
|
+
], LangGraphInterruptEvent.prototype, "name", void 0);
|
|
1585
|
+
_ts_decorate([
|
|
1586
|
+
(0, import_type_graphql2.Field)(() => String),
|
|
1587
|
+
_ts_metadata("design:type", String)
|
|
1588
|
+
], LangGraphInterruptEvent.prototype, "value", void 0);
|
|
1589
|
+
_ts_decorate([
|
|
1590
|
+
(0, import_type_graphql2.Field)(() => String, {
|
|
1591
|
+
nullable: true
|
|
1592
|
+
}),
|
|
1593
|
+
_ts_metadata("design:type", String)
|
|
1594
|
+
], LangGraphInterruptEvent.prototype, "response", void 0);
|
|
1595
|
+
LangGraphInterruptEvent = _ts_decorate([
|
|
1596
|
+
(0, import_type_graphql2.ObjectType)({
|
|
1597
|
+
implements: BaseMetaEvent
|
|
1598
|
+
})
|
|
1599
|
+
], LangGraphInterruptEvent);
|
|
1600
|
+
|
|
1521
1601
|
// src/lib/runtime/remote-lg-action.ts
|
|
1522
1602
|
async function execute(args) {
|
|
1523
1603
|
return new ReadableStream({
|
|
@@ -1532,14 +1612,20 @@ async function execute(args) {
|
|
|
1532
1612
|
}
|
|
1533
1613
|
__name(execute, "execute");
|
|
1534
1614
|
async function streamEvents(controller, args) {
|
|
1535
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1536
|
-
const { deploymentUrl, langsmithApiKey, threadId: argsInitialThreadId, agent, nodeName: initialNodeName, state: initialState, messages, actions, logger: logger2 } = args;
|
|
1615
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1616
|
+
const { deploymentUrl, langsmithApiKey, threadId: argsInitialThreadId, agent, nodeName: initialNodeName, state: initialState, messages, actions, logger: logger2, properties, metaEvents } = args;
|
|
1537
1617
|
let nodeName = initialNodeName;
|
|
1538
1618
|
let state = initialState;
|
|
1539
1619
|
const { name, assistantId: initialAssistantId } = agent;
|
|
1620
|
+
const propertyHeaders = properties.authorization ? {
|
|
1621
|
+
authorization: `Bearer ${properties.authorization}`
|
|
1622
|
+
} : null;
|
|
1540
1623
|
const client = new import_langgraph_sdk.Client({
|
|
1541
1624
|
apiUrl: deploymentUrl,
|
|
1542
|
-
apiKey: langsmithApiKey
|
|
1625
|
+
apiKey: langsmithApiKey,
|
|
1626
|
+
defaultHeaders: {
|
|
1627
|
+
...propertyHeaders
|
|
1628
|
+
}
|
|
1543
1629
|
});
|
|
1544
1630
|
let threadId = argsInitialThreadId ?? (0, import_shared8.randomUUID)();
|
|
1545
1631
|
if (argsInitialThreadId && argsInitialThreadId.startsWith("ck-")) {
|
|
@@ -1573,7 +1659,8 @@ async function streamEvents(controller, args) {
|
|
|
1573
1659
|
logger2.error(e, `Error event thrown: ${e.message}`);
|
|
1574
1660
|
}
|
|
1575
1661
|
state = langGraphDefaultMergeState(state, formattedMessages, actions, name);
|
|
1576
|
-
|
|
1662
|
+
const lgInterruptEvent = metaEvents == null ? void 0 : metaEvents.find((ev) => ev.name === MetaEventName.LangGraphInterruptEvent);
|
|
1663
|
+
if (mode === "continue" && !lgInterruptEvent) {
|
|
1577
1664
|
await client.threads.updateState(threadId, {
|
|
1578
1665
|
values: state,
|
|
1579
1666
|
asNode: nodeName
|
|
@@ -1606,13 +1693,21 @@ async function streamEvents(controller, args) {
|
|
|
1606
1693
|
let emitIntermediateStateUntilEnd = null;
|
|
1607
1694
|
let shouldExit = false;
|
|
1608
1695
|
let externalRunId = null;
|
|
1609
|
-
const
|
|
1696
|
+
const payload = {
|
|
1610
1697
|
input: streamInput,
|
|
1611
1698
|
streamMode: [
|
|
1612
1699
|
"events",
|
|
1613
|
-
"values"
|
|
1614
|
-
|
|
1615
|
-
|
|
1700
|
+
"values",
|
|
1701
|
+
"updates"
|
|
1702
|
+
],
|
|
1703
|
+
command: void 0
|
|
1704
|
+
};
|
|
1705
|
+
if (lgInterruptEvent == null ? void 0 : lgInterruptEvent.response) {
|
|
1706
|
+
payload.command = {
|
|
1707
|
+
resume: lgInterruptEvent.response
|
|
1708
|
+
};
|
|
1709
|
+
}
|
|
1710
|
+
const streamResponse2 = client.runs.stream(threadId, assistantId, payload);
|
|
1616
1711
|
const emit = /* @__PURE__ */ __name((message) => controller.enqueue(new TextEncoder().encode(message)), "emit");
|
|
1617
1712
|
let latestStateValues = {};
|
|
1618
1713
|
let updatedState = state;
|
|
@@ -1625,12 +1720,22 @@ async function streamEvents(controller, args) {
|
|
|
1625
1720
|
if (![
|
|
1626
1721
|
"events",
|
|
1627
1722
|
"values",
|
|
1628
|
-
"error"
|
|
1723
|
+
"error",
|
|
1724
|
+
"updates"
|
|
1629
1725
|
].includes(chunk.event))
|
|
1630
1726
|
continue;
|
|
1631
1727
|
if (chunk.event === "error") {
|
|
1632
1728
|
throw new Error(`Error event thrown: ${chunk.data.message}`);
|
|
1633
1729
|
}
|
|
1730
|
+
if (chunk.event === "updates" && chunk.data.__interrupt__) {
|
|
1731
|
+
emit(JSON.stringify({
|
|
1732
|
+
event: LangGraphEventTypes.OnInterrupt,
|
|
1733
|
+
value: chunk.data.__interrupt__[0].value
|
|
1734
|
+
}) + "\n");
|
|
1735
|
+
continue;
|
|
1736
|
+
}
|
|
1737
|
+
if (chunk.event === "updates")
|
|
1738
|
+
continue;
|
|
1634
1739
|
if (chunk.event === "values") {
|
|
1635
1740
|
latestStateValues = chunk.data;
|
|
1636
1741
|
continue;
|
|
@@ -1711,8 +1816,9 @@ async function streamEvents(controller, args) {
|
|
|
1711
1816
|
emit(JSON.stringify(event) + "\n");
|
|
1712
1817
|
}
|
|
1713
1818
|
state = await client.threads.getState(threadId);
|
|
1714
|
-
const
|
|
1715
|
-
nodeName = Object.keys(state.metadata.writes)[0];
|
|
1819
|
+
const interrupts = (_h = (_g = state.tasks) == null ? void 0 : _g[0]) == null ? void 0 : _h.interrupts;
|
|
1820
|
+
nodeName = interrupts ? nodeName : Object.keys(state.metadata.writes)[0];
|
|
1821
|
+
const isEndNode = state.next.length === 0 && !interrupts;
|
|
1716
1822
|
telemetry_client_default.capture("oss.runtime.agent_execution_stream_ended", streamInfo);
|
|
1717
1823
|
emit(getStateSyncEvent({
|
|
1718
1824
|
threadId,
|
|
@@ -1993,7 +2099,7 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
|
|
|
1993
2099
|
parameters: [],
|
|
1994
2100
|
handler: async (_args) => {
|
|
1995
2101
|
},
|
|
1996
|
-
langGraphAgentHandler: async ({ name, actionInputsWithoutAgents, threadId, nodeName, additionalMessages = [] }) => {
|
|
2102
|
+
langGraphAgentHandler: async ({ name, actionInputsWithoutAgents, threadId, nodeName, additionalMessages = [], metaEvents }) => {
|
|
1997
2103
|
var _a;
|
|
1998
2104
|
logger2.debug({
|
|
1999
2105
|
actionName: agent.name
|
|
@@ -2013,7 +2119,9 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
|
|
|
2013
2119
|
}
|
|
2014
2120
|
try {
|
|
2015
2121
|
const response = await execute({
|
|
2016
|
-
logger: logger2
|
|
2122
|
+
logger: logger2.child({
|
|
2123
|
+
component: "remote-actions.remote-lg-action.streamEvents"
|
|
2124
|
+
}),
|
|
2017
2125
|
deploymentUrl: endpoint.deploymentUrl,
|
|
2018
2126
|
langsmithApiKey: endpoint.langsmithApiKey,
|
|
2019
2127
|
agent,
|
|
@@ -2029,7 +2137,8 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
|
|
|
2029
2137
|
name: action.name,
|
|
2030
2138
|
description: action.description,
|
|
2031
2139
|
parameters: JSON.parse(action.jsonSchema)
|
|
2032
|
-
}))
|
|
2140
|
+
})),
|
|
2141
|
+
metaEvents
|
|
2033
2142
|
});
|
|
2034
2143
|
const eventSource = new RemoteLangGraphEventSource();
|
|
2035
2144
|
streamResponse(response, eventSource.eventStream$);
|
|
@@ -2109,7 +2218,7 @@ function constructRemoteActions({ json, url, onBeforeRequest, graphqlContext, lo
|
|
|
2109
2218
|
parameters: [],
|
|
2110
2219
|
handler: async (_args) => {
|
|
2111
2220
|
},
|
|
2112
|
-
langGraphAgentHandler: async ({ name, actionInputsWithoutAgents, threadId, nodeName, additionalMessages = [] }) => {
|
|
2221
|
+
langGraphAgentHandler: async ({ name, actionInputsWithoutAgents, threadId, nodeName, additionalMessages = [], metaEvents }) => {
|
|
2113
2222
|
var _a;
|
|
2114
2223
|
logger2.debug({
|
|
2115
2224
|
actionName: agent.name
|
|
@@ -2146,7 +2255,8 @@ function constructRemoteActions({ json, url, onBeforeRequest, graphqlContext, lo
|
|
|
2146
2255
|
name: action.name,
|
|
2147
2256
|
description: action.description,
|
|
2148
2257
|
parameters: JSON.parse(action.jsonSchema)
|
|
2149
|
-
}))
|
|
2258
|
+
})),
|
|
2259
|
+
metaEvents
|
|
2150
2260
|
})
|
|
2151
2261
|
});
|
|
2152
2262
|
if (!response.ok) {
|
|
@@ -2394,8 +2504,8 @@ __name(getRuntimeInstanceTelemetryInfo, "getRuntimeInstanceTelemetryInfo");
|
|
|
2394
2504
|
var telemetry_client_default = telemetryClient;
|
|
2395
2505
|
|
|
2396
2506
|
// src/graphql/types/base/index.ts
|
|
2397
|
-
var
|
|
2398
|
-
function
|
|
2507
|
+
var import_type_graphql3 = require("type-graphql");
|
|
2508
|
+
function _ts_decorate2(decorators, target, key, desc) {
|
|
2399
2509
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2400
2510
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2401
2511
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2405,27 +2515,27 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
2405
2515
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2406
2516
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2407
2517
|
}
|
|
2408
|
-
__name(
|
|
2409
|
-
function
|
|
2518
|
+
__name(_ts_decorate2, "_ts_decorate");
|
|
2519
|
+
function _ts_metadata2(k, v) {
|
|
2410
2520
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2411
2521
|
return Reflect.metadata(k, v);
|
|
2412
2522
|
}
|
|
2413
|
-
__name(
|
|
2523
|
+
__name(_ts_metadata2, "_ts_metadata");
|
|
2414
2524
|
var BaseMessageInput = class {
|
|
2415
2525
|
id;
|
|
2416
2526
|
createdAt;
|
|
2417
2527
|
};
|
|
2418
2528
|
__name(BaseMessageInput, "BaseMessageInput");
|
|
2419
|
-
|
|
2420
|
-
(0,
|
|
2421
|
-
|
|
2529
|
+
_ts_decorate2([
|
|
2530
|
+
(0, import_type_graphql3.Field)(() => String),
|
|
2531
|
+
_ts_metadata2("design:type", String)
|
|
2422
2532
|
], BaseMessageInput.prototype, "id", void 0);
|
|
2423
|
-
|
|
2424
|
-
(0,
|
|
2425
|
-
|
|
2533
|
+
_ts_decorate2([
|
|
2534
|
+
(0, import_type_graphql3.Field)(() => Date),
|
|
2535
|
+
_ts_metadata2("design:type", typeof Date === "undefined" ? Object : Date)
|
|
2426
2536
|
], BaseMessageInput.prototype, "createdAt", void 0);
|
|
2427
|
-
BaseMessageInput =
|
|
2428
|
-
(0,
|
|
2537
|
+
BaseMessageInput = _ts_decorate2([
|
|
2538
|
+
(0, import_type_graphql3.InputType)()
|
|
2429
2539
|
], BaseMessageInput);
|
|
2430
2540
|
|
|
2431
2541
|
// src/graphql/types/converted/index.ts
|
|
@@ -2554,7 +2664,13 @@ var RuntimeEventTypes;
|
|
|
2554
2664
|
RuntimeEventTypes2["ActionExecutionEnd"] = "ActionExecutionEnd";
|
|
2555
2665
|
RuntimeEventTypes2["ActionExecutionResult"] = "ActionExecutionResult";
|
|
2556
2666
|
RuntimeEventTypes2["AgentStateMessage"] = "AgentStateMessage";
|
|
2667
|
+
RuntimeEventTypes2["MetaEvent"] = "MetaEvent";
|
|
2557
2668
|
})(RuntimeEventTypes || (RuntimeEventTypes = {}));
|
|
2669
|
+
var RuntimeMetaEventName;
|
|
2670
|
+
(function(RuntimeMetaEventName2) {
|
|
2671
|
+
RuntimeMetaEventName2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
2672
|
+
RuntimeMetaEventName2["LangGraphInterruptResumeEvent"] = "LangGraphInterruptResumeEvent";
|
|
2673
|
+
})(RuntimeMetaEventName || (RuntimeMetaEventName = {}));
|
|
2558
2674
|
var RuntimeEventSubject = class extends import_rxjs2.ReplaySubject {
|
|
2559
2675
|
constructor() {
|
|
2560
2676
|
super();
|
|
@@ -2975,9 +3091,15 @@ please use an LLM adapter instead.`
|
|
|
2975
3091
|
const agents = this.remoteEndpointDefinitions.reduce(async (acc, endpoint) => {
|
|
2976
3092
|
const agents2 = await acc;
|
|
2977
3093
|
if (endpoint.type === EndpointType.LangGraphPlatform) {
|
|
3094
|
+
const propertyHeaders = graphqlContext.properties.authorization ? {
|
|
3095
|
+
authorization: `Bearer ${graphqlContext.properties.authorization}`
|
|
3096
|
+
} : null;
|
|
2978
3097
|
const client = new import_langgraph_sdk2.Client({
|
|
2979
3098
|
apiUrl: endpoint.deploymentUrl,
|
|
2980
|
-
apiKey: endpoint.langsmithApiKey
|
|
3099
|
+
apiKey: endpoint.langsmithApiKey,
|
|
3100
|
+
defaultHeaders: {
|
|
3101
|
+
...propertyHeaders
|
|
3102
|
+
}
|
|
2981
3103
|
});
|
|
2982
3104
|
const data = await client.assistants.search();
|
|
2983
3105
|
const endpointAgents = (data ?? []).map((entry) => ({
|
|
@@ -3040,9 +3162,15 @@ please use an LLM adapter instead.`
|
|
|
3040
3162
|
}
|
|
3041
3163
|
const headers = createHeaders(null, graphqlContext);
|
|
3042
3164
|
if (agentWithEndpoint.endpoint.type === EndpointType.LangGraphPlatform) {
|
|
3165
|
+
const propertyHeaders = graphqlContext.properties.authorization ? {
|
|
3166
|
+
authorization: `Bearer ${graphqlContext.properties.authorization}`
|
|
3167
|
+
} : null;
|
|
3043
3168
|
const client = new import_langgraph_sdk2.Client({
|
|
3044
3169
|
apiUrl: agentWithEndpoint.endpoint.deploymentUrl,
|
|
3045
|
-
apiKey: agentWithEndpoint.endpoint.langsmithApiKey
|
|
3170
|
+
apiKey: agentWithEndpoint.endpoint.langsmithApiKey,
|
|
3171
|
+
defaultHeaders: {
|
|
3172
|
+
...propertyHeaders
|
|
3173
|
+
}
|
|
3046
3174
|
});
|
|
3047
3175
|
let state = {};
|
|
3048
3176
|
try {
|
|
@@ -3088,7 +3216,7 @@ please use an LLM adapter instead.`
|
|
|
3088
3216
|
}
|
|
3089
3217
|
async processAgentRequest(request) {
|
|
3090
3218
|
var _a;
|
|
3091
|
-
const { messages: rawMessages, outputMessagesPromise, graphqlContext, agentSession, threadId: threadIdFromRequest } = request;
|
|
3219
|
+
const { messages: rawMessages, outputMessagesPromise, graphqlContext, agentSession, threadId: threadIdFromRequest, metaEvents } = request;
|
|
3092
3220
|
const { agentName, nodeName } = agentSession;
|
|
3093
3221
|
const threadId = threadIdFromRequest ?? agentSession.threadId;
|
|
3094
3222
|
const serverSideActions = await this.getServerSideActions(request);
|
|
@@ -3120,7 +3248,8 @@ please use an LLM adapter instead.`
|
|
|
3120
3248
|
name: agentName,
|
|
3121
3249
|
threadId,
|
|
3122
3250
|
nodeName,
|
|
3123
|
-
actionInputsWithoutAgents
|
|
3251
|
+
actionInputsWithoutAgents,
|
|
3252
|
+
metaEvents
|
|
3124
3253
|
});
|
|
3125
3254
|
eventSource.stream(async (eventStream$) => {
|
|
3126
3255
|
(0, import_rxjs3.from)(stream).subscribe({
|
|
@@ -3230,18 +3359,18 @@ function resolveEndpointType(endpoint) {
|
|
|
3230
3359
|
__name(resolveEndpointType, "resolveEndpointType");
|
|
3231
3360
|
|
|
3232
3361
|
// src/lib/integrations/shared.ts
|
|
3233
|
-
var
|
|
3362
|
+
var import_type_graphql26 = require("type-graphql");
|
|
3234
3363
|
|
|
3235
3364
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
3236
|
-
var
|
|
3365
|
+
var import_type_graphql20 = require("type-graphql");
|
|
3237
3366
|
var import_rxjs4 = require("rxjs");
|
|
3238
3367
|
|
|
3239
3368
|
// src/graphql/inputs/generate-copilot-response.input.ts
|
|
3240
|
-
var
|
|
3369
|
+
var import_type_graphql14 = require("type-graphql");
|
|
3241
3370
|
|
|
3242
3371
|
// src/graphql/inputs/message.input.ts
|
|
3243
|
-
var
|
|
3244
|
-
function
|
|
3372
|
+
var import_type_graphql4 = require("type-graphql");
|
|
3373
|
+
function _ts_decorate3(decorators, target, key, desc) {
|
|
3245
3374
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3246
3375
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3247
3376
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3251,12 +3380,12 @@ function _ts_decorate2(decorators, target, key, desc) {
|
|
|
3251
3380
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3252
3381
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3253
3382
|
}
|
|
3254
|
-
__name(
|
|
3255
|
-
function
|
|
3383
|
+
__name(_ts_decorate3, "_ts_decorate");
|
|
3384
|
+
function _ts_metadata3(k, v) {
|
|
3256
3385
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3257
3386
|
return Reflect.metadata(k, v);
|
|
3258
3387
|
}
|
|
3259
|
-
__name(
|
|
3388
|
+
__name(_ts_metadata3, "_ts_metadata");
|
|
3260
3389
|
var MessageInput = class extends BaseMessageInput {
|
|
3261
3390
|
textMessage;
|
|
3262
3391
|
actionExecutionMessage;
|
|
@@ -3264,32 +3393,32 @@ var MessageInput = class extends BaseMessageInput {
|
|
|
3264
3393
|
agentStateMessage;
|
|
3265
3394
|
};
|
|
3266
3395
|
__name(MessageInput, "MessageInput");
|
|
3267
|
-
|
|
3268
|
-
(0,
|
|
3396
|
+
_ts_decorate3([
|
|
3397
|
+
(0, import_type_graphql4.Field)(() => TextMessageInput, {
|
|
3269
3398
|
nullable: true
|
|
3270
3399
|
}),
|
|
3271
|
-
|
|
3400
|
+
_ts_metadata3("design:type", typeof TextMessageInput === "undefined" ? Object : TextMessageInput)
|
|
3272
3401
|
], MessageInput.prototype, "textMessage", void 0);
|
|
3273
|
-
|
|
3274
|
-
(0,
|
|
3402
|
+
_ts_decorate3([
|
|
3403
|
+
(0, import_type_graphql4.Field)(() => ActionExecutionMessageInput, {
|
|
3275
3404
|
nullable: true
|
|
3276
3405
|
}),
|
|
3277
|
-
|
|
3406
|
+
_ts_metadata3("design:type", typeof ActionExecutionMessageInput === "undefined" ? Object : ActionExecutionMessageInput)
|
|
3278
3407
|
], MessageInput.prototype, "actionExecutionMessage", void 0);
|
|
3279
|
-
|
|
3280
|
-
(0,
|
|
3408
|
+
_ts_decorate3([
|
|
3409
|
+
(0, import_type_graphql4.Field)(() => ResultMessageInput, {
|
|
3281
3410
|
nullable: true
|
|
3282
3411
|
}),
|
|
3283
|
-
|
|
3412
|
+
_ts_metadata3("design:type", typeof ResultMessageInput === "undefined" ? Object : ResultMessageInput)
|
|
3284
3413
|
], MessageInput.prototype, "resultMessage", void 0);
|
|
3285
|
-
|
|
3286
|
-
(0,
|
|
3414
|
+
_ts_decorate3([
|
|
3415
|
+
(0, import_type_graphql4.Field)(() => AgentStateMessageInput, {
|
|
3287
3416
|
nullable: true
|
|
3288
3417
|
}),
|
|
3289
|
-
|
|
3418
|
+
_ts_metadata3("design:type", typeof AgentStateMessageInput === "undefined" ? Object : AgentStateMessageInput)
|
|
3290
3419
|
], MessageInput.prototype, "agentStateMessage", void 0);
|
|
3291
|
-
MessageInput =
|
|
3292
|
-
(0,
|
|
3420
|
+
MessageInput = _ts_decorate3([
|
|
3421
|
+
(0, import_type_graphql4.InputType)()
|
|
3293
3422
|
], MessageInput);
|
|
3294
3423
|
var TextMessageInput = class {
|
|
3295
3424
|
content;
|
|
@@ -3297,22 +3426,22 @@ var TextMessageInput = class {
|
|
|
3297
3426
|
role;
|
|
3298
3427
|
};
|
|
3299
3428
|
__name(TextMessageInput, "TextMessageInput");
|
|
3300
|
-
|
|
3301
|
-
(0,
|
|
3302
|
-
|
|
3429
|
+
_ts_decorate3([
|
|
3430
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3431
|
+
_ts_metadata3("design:type", String)
|
|
3303
3432
|
], TextMessageInput.prototype, "content", void 0);
|
|
3304
|
-
|
|
3305
|
-
(0,
|
|
3433
|
+
_ts_decorate3([
|
|
3434
|
+
(0, import_type_graphql4.Field)(() => String, {
|
|
3306
3435
|
nullable: true
|
|
3307
3436
|
}),
|
|
3308
|
-
|
|
3437
|
+
_ts_metadata3("design:type", String)
|
|
3309
3438
|
], TextMessageInput.prototype, "parentMessageId", void 0);
|
|
3310
|
-
|
|
3311
|
-
(0,
|
|
3312
|
-
|
|
3439
|
+
_ts_decorate3([
|
|
3440
|
+
(0, import_type_graphql4.Field)(() => MessageRole),
|
|
3441
|
+
_ts_metadata3("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
3313
3442
|
], TextMessageInput.prototype, "role", void 0);
|
|
3314
|
-
TextMessageInput =
|
|
3315
|
-
(0,
|
|
3443
|
+
TextMessageInput = _ts_decorate3([
|
|
3444
|
+
(0, import_type_graphql4.InputType)()
|
|
3316
3445
|
], TextMessageInput);
|
|
3317
3446
|
var ActionExecutionMessageInput = class {
|
|
3318
3447
|
name;
|
|
@@ -3321,29 +3450,29 @@ var ActionExecutionMessageInput = class {
|
|
|
3321
3450
|
scope;
|
|
3322
3451
|
};
|
|
3323
3452
|
__name(ActionExecutionMessageInput, "ActionExecutionMessageInput");
|
|
3324
|
-
|
|
3325
|
-
(0,
|
|
3326
|
-
|
|
3453
|
+
_ts_decorate3([
|
|
3454
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3455
|
+
_ts_metadata3("design:type", String)
|
|
3327
3456
|
], ActionExecutionMessageInput.prototype, "name", void 0);
|
|
3328
|
-
|
|
3329
|
-
(0,
|
|
3330
|
-
|
|
3457
|
+
_ts_decorate3([
|
|
3458
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3459
|
+
_ts_metadata3("design:type", String)
|
|
3331
3460
|
], ActionExecutionMessageInput.prototype, "arguments", void 0);
|
|
3332
|
-
|
|
3333
|
-
(0,
|
|
3461
|
+
_ts_decorate3([
|
|
3462
|
+
(0, import_type_graphql4.Field)(() => String, {
|
|
3334
3463
|
nullable: true
|
|
3335
3464
|
}),
|
|
3336
|
-
|
|
3465
|
+
_ts_metadata3("design:type", String)
|
|
3337
3466
|
], ActionExecutionMessageInput.prototype, "parentMessageId", void 0);
|
|
3338
|
-
|
|
3339
|
-
(0,
|
|
3467
|
+
_ts_decorate3([
|
|
3468
|
+
(0, import_type_graphql4.Field)(() => String, {
|
|
3340
3469
|
nullable: true,
|
|
3341
3470
|
deprecationReason: "This field will be removed in a future version"
|
|
3342
3471
|
}),
|
|
3343
|
-
|
|
3472
|
+
_ts_metadata3("design:type", typeof String === "undefined" ? Object : String)
|
|
3344
3473
|
], ActionExecutionMessageInput.prototype, "scope", void 0);
|
|
3345
|
-
ActionExecutionMessageInput =
|
|
3346
|
-
(0,
|
|
3474
|
+
ActionExecutionMessageInput = _ts_decorate3([
|
|
3475
|
+
(0, import_type_graphql4.InputType)()
|
|
3347
3476
|
], ActionExecutionMessageInput);
|
|
3348
3477
|
var ResultMessageInput = class {
|
|
3349
3478
|
actionExecutionId;
|
|
@@ -3352,26 +3481,26 @@ var ResultMessageInput = class {
|
|
|
3352
3481
|
result;
|
|
3353
3482
|
};
|
|
3354
3483
|
__name(ResultMessageInput, "ResultMessageInput");
|
|
3355
|
-
|
|
3356
|
-
(0,
|
|
3357
|
-
|
|
3484
|
+
_ts_decorate3([
|
|
3485
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3486
|
+
_ts_metadata3("design:type", String)
|
|
3358
3487
|
], ResultMessageInput.prototype, "actionExecutionId", void 0);
|
|
3359
|
-
|
|
3360
|
-
(0,
|
|
3361
|
-
|
|
3488
|
+
_ts_decorate3([
|
|
3489
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3490
|
+
_ts_metadata3("design:type", String)
|
|
3362
3491
|
], ResultMessageInput.prototype, "actionName", void 0);
|
|
3363
|
-
|
|
3364
|
-
(0,
|
|
3492
|
+
_ts_decorate3([
|
|
3493
|
+
(0, import_type_graphql4.Field)(() => String, {
|
|
3365
3494
|
nullable: true
|
|
3366
3495
|
}),
|
|
3367
|
-
|
|
3496
|
+
_ts_metadata3("design:type", String)
|
|
3368
3497
|
], ResultMessageInput.prototype, "parentMessageId", void 0);
|
|
3369
|
-
|
|
3370
|
-
(0,
|
|
3371
|
-
|
|
3498
|
+
_ts_decorate3([
|
|
3499
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3500
|
+
_ts_metadata3("design:type", String)
|
|
3372
3501
|
], ResultMessageInput.prototype, "result", void 0);
|
|
3373
|
-
ResultMessageInput =
|
|
3374
|
-
(0,
|
|
3502
|
+
ResultMessageInput = _ts_decorate3([
|
|
3503
|
+
(0, import_type_graphql4.InputType)()
|
|
3375
3504
|
], ResultMessageInput);
|
|
3376
3505
|
var AgentStateMessageInput = class {
|
|
3377
3506
|
threadId;
|
|
@@ -3384,48 +3513,48 @@ var AgentStateMessageInput = class {
|
|
|
3384
3513
|
active;
|
|
3385
3514
|
};
|
|
3386
3515
|
__name(AgentStateMessageInput, "AgentStateMessageInput");
|
|
3387
|
-
|
|
3388
|
-
(0,
|
|
3389
|
-
|
|
3516
|
+
_ts_decorate3([
|
|
3517
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3518
|
+
_ts_metadata3("design:type", String)
|
|
3390
3519
|
], AgentStateMessageInput.prototype, "threadId", void 0);
|
|
3391
|
-
|
|
3392
|
-
(0,
|
|
3393
|
-
|
|
3520
|
+
_ts_decorate3([
|
|
3521
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3522
|
+
_ts_metadata3("design:type", String)
|
|
3394
3523
|
], AgentStateMessageInput.prototype, "agentName", void 0);
|
|
3395
|
-
|
|
3396
|
-
(0,
|
|
3397
|
-
|
|
3524
|
+
_ts_decorate3([
|
|
3525
|
+
(0, import_type_graphql4.Field)(() => MessageRole),
|
|
3526
|
+
_ts_metadata3("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
3398
3527
|
], AgentStateMessageInput.prototype, "role", void 0);
|
|
3399
|
-
|
|
3400
|
-
(0,
|
|
3401
|
-
|
|
3528
|
+
_ts_decorate3([
|
|
3529
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3530
|
+
_ts_metadata3("design:type", String)
|
|
3402
3531
|
], AgentStateMessageInput.prototype, "state", void 0);
|
|
3403
|
-
|
|
3404
|
-
(0,
|
|
3405
|
-
|
|
3532
|
+
_ts_decorate3([
|
|
3533
|
+
(0, import_type_graphql4.Field)(() => Boolean),
|
|
3534
|
+
_ts_metadata3("design:type", Boolean)
|
|
3406
3535
|
], AgentStateMessageInput.prototype, "running", void 0);
|
|
3407
|
-
|
|
3408
|
-
(0,
|
|
3409
|
-
|
|
3536
|
+
_ts_decorate3([
|
|
3537
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3538
|
+
_ts_metadata3("design:type", String)
|
|
3410
3539
|
], AgentStateMessageInput.prototype, "nodeName", void 0);
|
|
3411
|
-
|
|
3412
|
-
(0,
|
|
3413
|
-
|
|
3540
|
+
_ts_decorate3([
|
|
3541
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3542
|
+
_ts_metadata3("design:type", String)
|
|
3414
3543
|
], AgentStateMessageInput.prototype, "runId", void 0);
|
|
3415
|
-
|
|
3416
|
-
(0,
|
|
3417
|
-
|
|
3544
|
+
_ts_decorate3([
|
|
3545
|
+
(0, import_type_graphql4.Field)(() => Boolean),
|
|
3546
|
+
_ts_metadata3("design:type", Boolean)
|
|
3418
3547
|
], AgentStateMessageInput.prototype, "active", void 0);
|
|
3419
|
-
AgentStateMessageInput =
|
|
3420
|
-
(0,
|
|
3548
|
+
AgentStateMessageInput = _ts_decorate3([
|
|
3549
|
+
(0, import_type_graphql4.InputType)()
|
|
3421
3550
|
], AgentStateMessageInput);
|
|
3422
3551
|
|
|
3423
3552
|
// src/graphql/inputs/frontend.input.ts
|
|
3424
|
-
var
|
|
3553
|
+
var import_type_graphql6 = require("type-graphql");
|
|
3425
3554
|
|
|
3426
3555
|
// src/graphql/inputs/action.input.ts
|
|
3427
|
-
var
|
|
3428
|
-
function
|
|
3556
|
+
var import_type_graphql5 = require("type-graphql");
|
|
3557
|
+
function _ts_decorate4(decorators, target, key, desc) {
|
|
3429
3558
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3430
3559
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3431
3560
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3435,12 +3564,12 @@ function _ts_decorate3(decorators, target, key, desc) {
|
|
|
3435
3564
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3436
3565
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3437
3566
|
}
|
|
3438
|
-
__name(
|
|
3439
|
-
function
|
|
3567
|
+
__name(_ts_decorate4, "_ts_decorate");
|
|
3568
|
+
function _ts_metadata4(k, v) {
|
|
3440
3569
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3441
3570
|
return Reflect.metadata(k, v);
|
|
3442
3571
|
}
|
|
3443
|
-
__name(
|
|
3572
|
+
__name(_ts_metadata4, "_ts_metadata");
|
|
3444
3573
|
var ActionInput = class {
|
|
3445
3574
|
name;
|
|
3446
3575
|
description;
|
|
@@ -3448,30 +3577,30 @@ var ActionInput = class {
|
|
|
3448
3577
|
available;
|
|
3449
3578
|
};
|
|
3450
3579
|
__name(ActionInput, "ActionInput");
|
|
3451
|
-
|
|
3452
|
-
(0,
|
|
3453
|
-
|
|
3580
|
+
_ts_decorate4([
|
|
3581
|
+
(0, import_type_graphql5.Field)(() => String),
|
|
3582
|
+
_ts_metadata4("design:type", String)
|
|
3454
3583
|
], ActionInput.prototype, "name", void 0);
|
|
3455
|
-
|
|
3456
|
-
(0,
|
|
3457
|
-
|
|
3584
|
+
_ts_decorate4([
|
|
3585
|
+
(0, import_type_graphql5.Field)(() => String),
|
|
3586
|
+
_ts_metadata4("design:type", String)
|
|
3458
3587
|
], ActionInput.prototype, "description", void 0);
|
|
3459
|
-
|
|
3460
|
-
(0,
|
|
3461
|
-
|
|
3588
|
+
_ts_decorate4([
|
|
3589
|
+
(0, import_type_graphql5.Field)(() => String),
|
|
3590
|
+
_ts_metadata4("design:type", String)
|
|
3462
3591
|
], ActionInput.prototype, "jsonSchema", void 0);
|
|
3463
|
-
|
|
3464
|
-
(0,
|
|
3592
|
+
_ts_decorate4([
|
|
3593
|
+
(0, import_type_graphql5.Field)(() => ActionInputAvailability, {
|
|
3465
3594
|
nullable: true
|
|
3466
3595
|
}),
|
|
3467
|
-
|
|
3596
|
+
_ts_metadata4("design:type", typeof ActionInputAvailability === "undefined" ? Object : ActionInputAvailability)
|
|
3468
3597
|
], ActionInput.prototype, "available", void 0);
|
|
3469
|
-
ActionInput =
|
|
3470
|
-
(0,
|
|
3598
|
+
ActionInput = _ts_decorate4([
|
|
3599
|
+
(0, import_type_graphql5.InputType)()
|
|
3471
3600
|
], ActionInput);
|
|
3472
3601
|
|
|
3473
3602
|
// src/graphql/inputs/frontend.input.ts
|
|
3474
|
-
function
|
|
3603
|
+
function _ts_decorate5(decorators, target, key, desc) {
|
|
3475
3604
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3476
3605
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3477
3606
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3481,46 +3610,46 @@ function _ts_decorate4(decorators, target, key, desc) {
|
|
|
3481
3610
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3482
3611
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3483
3612
|
}
|
|
3484
|
-
__name(
|
|
3485
|
-
function
|
|
3613
|
+
__name(_ts_decorate5, "_ts_decorate");
|
|
3614
|
+
function _ts_metadata5(k, v) {
|
|
3486
3615
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3487
3616
|
return Reflect.metadata(k, v);
|
|
3488
3617
|
}
|
|
3489
|
-
__name(
|
|
3618
|
+
__name(_ts_metadata5, "_ts_metadata");
|
|
3490
3619
|
var FrontendInput = class {
|
|
3491
3620
|
toDeprecate_fullContext;
|
|
3492
3621
|
actions;
|
|
3493
3622
|
url;
|
|
3494
3623
|
};
|
|
3495
3624
|
__name(FrontendInput, "FrontendInput");
|
|
3496
|
-
|
|
3497
|
-
(0,
|
|
3625
|
+
_ts_decorate5([
|
|
3626
|
+
(0, import_type_graphql6.Field)(() => String, {
|
|
3498
3627
|
nullable: true
|
|
3499
3628
|
}),
|
|
3500
|
-
|
|
3629
|
+
_ts_metadata5("design:type", String)
|
|
3501
3630
|
], FrontendInput.prototype, "toDeprecate_fullContext", void 0);
|
|
3502
|
-
|
|
3503
|
-
(0,
|
|
3631
|
+
_ts_decorate5([
|
|
3632
|
+
(0, import_type_graphql6.Field)(() => [
|
|
3504
3633
|
ActionInput
|
|
3505
3634
|
]),
|
|
3506
|
-
|
|
3635
|
+
_ts_metadata5("design:type", Array)
|
|
3507
3636
|
], FrontendInput.prototype, "actions", void 0);
|
|
3508
|
-
|
|
3509
|
-
(0,
|
|
3637
|
+
_ts_decorate5([
|
|
3638
|
+
(0, import_type_graphql6.Field)(() => String, {
|
|
3510
3639
|
nullable: true
|
|
3511
3640
|
}),
|
|
3512
|
-
|
|
3641
|
+
_ts_metadata5("design:type", String)
|
|
3513
3642
|
], FrontendInput.prototype, "url", void 0);
|
|
3514
|
-
FrontendInput =
|
|
3515
|
-
(0,
|
|
3643
|
+
FrontendInput = _ts_decorate5([
|
|
3644
|
+
(0, import_type_graphql6.InputType)()
|
|
3516
3645
|
], FrontendInput);
|
|
3517
3646
|
|
|
3518
3647
|
// src/graphql/inputs/cloud.input.ts
|
|
3519
|
-
var
|
|
3648
|
+
var import_type_graphql8 = require("type-graphql");
|
|
3520
3649
|
|
|
3521
3650
|
// src/graphql/inputs/cloud-guardrails.input.ts
|
|
3522
|
-
var
|
|
3523
|
-
function
|
|
3651
|
+
var import_type_graphql7 = require("type-graphql");
|
|
3652
|
+
function _ts_decorate6(decorators, target, key, desc) {
|
|
3524
3653
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3525
3654
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3526
3655
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3530,52 +3659,52 @@ function _ts_decorate5(decorators, target, key, desc) {
|
|
|
3530
3659
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3531
3660
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3532
3661
|
}
|
|
3533
|
-
__name(
|
|
3534
|
-
function
|
|
3662
|
+
__name(_ts_decorate6, "_ts_decorate");
|
|
3663
|
+
function _ts_metadata6(k, v) {
|
|
3535
3664
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3536
3665
|
return Reflect.metadata(k, v);
|
|
3537
3666
|
}
|
|
3538
|
-
__name(
|
|
3667
|
+
__name(_ts_metadata6, "_ts_metadata");
|
|
3539
3668
|
var GuardrailsRuleInput = class {
|
|
3540
3669
|
allowList = [];
|
|
3541
3670
|
denyList = [];
|
|
3542
3671
|
};
|
|
3543
3672
|
__name(GuardrailsRuleInput, "GuardrailsRuleInput");
|
|
3544
|
-
|
|
3545
|
-
(0,
|
|
3673
|
+
_ts_decorate6([
|
|
3674
|
+
(0, import_type_graphql7.Field)(() => [
|
|
3546
3675
|
String
|
|
3547
3676
|
], {
|
|
3548
3677
|
nullable: true
|
|
3549
3678
|
}),
|
|
3550
|
-
|
|
3679
|
+
_ts_metadata6("design:type", Array)
|
|
3551
3680
|
], GuardrailsRuleInput.prototype, "allowList", void 0);
|
|
3552
|
-
|
|
3553
|
-
(0,
|
|
3681
|
+
_ts_decorate6([
|
|
3682
|
+
(0, import_type_graphql7.Field)(() => [
|
|
3554
3683
|
String
|
|
3555
3684
|
], {
|
|
3556
3685
|
nullable: true
|
|
3557
3686
|
}),
|
|
3558
|
-
|
|
3687
|
+
_ts_metadata6("design:type", Array)
|
|
3559
3688
|
], GuardrailsRuleInput.prototype, "denyList", void 0);
|
|
3560
|
-
GuardrailsRuleInput =
|
|
3561
|
-
(0,
|
|
3689
|
+
GuardrailsRuleInput = _ts_decorate6([
|
|
3690
|
+
(0, import_type_graphql7.InputType)()
|
|
3562
3691
|
], GuardrailsRuleInput);
|
|
3563
3692
|
var GuardrailsInput = class {
|
|
3564
3693
|
inputValidationRules;
|
|
3565
3694
|
};
|
|
3566
3695
|
__name(GuardrailsInput, "GuardrailsInput");
|
|
3567
|
-
|
|
3568
|
-
(0,
|
|
3696
|
+
_ts_decorate6([
|
|
3697
|
+
(0, import_type_graphql7.Field)(() => GuardrailsRuleInput, {
|
|
3569
3698
|
nullable: false
|
|
3570
3699
|
}),
|
|
3571
|
-
|
|
3700
|
+
_ts_metadata6("design:type", typeof GuardrailsRuleInput === "undefined" ? Object : GuardrailsRuleInput)
|
|
3572
3701
|
], GuardrailsInput.prototype, "inputValidationRules", void 0);
|
|
3573
|
-
GuardrailsInput =
|
|
3574
|
-
(0,
|
|
3702
|
+
GuardrailsInput = _ts_decorate6([
|
|
3703
|
+
(0, import_type_graphql7.InputType)()
|
|
3575
3704
|
], GuardrailsInput);
|
|
3576
3705
|
|
|
3577
3706
|
// src/graphql/inputs/cloud.input.ts
|
|
3578
|
-
function
|
|
3707
|
+
function _ts_decorate7(decorators, target, key, desc) {
|
|
3579
3708
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3580
3709
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3581
3710
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3585,29 +3714,29 @@ function _ts_decorate6(decorators, target, key, desc) {
|
|
|
3585
3714
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3586
3715
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3587
3716
|
}
|
|
3588
|
-
__name(
|
|
3589
|
-
function
|
|
3717
|
+
__name(_ts_decorate7, "_ts_decorate");
|
|
3718
|
+
function _ts_metadata7(k, v) {
|
|
3590
3719
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3591
3720
|
return Reflect.metadata(k, v);
|
|
3592
3721
|
}
|
|
3593
|
-
__name(
|
|
3722
|
+
__name(_ts_metadata7, "_ts_metadata");
|
|
3594
3723
|
var CloudInput = class {
|
|
3595
3724
|
guardrails;
|
|
3596
3725
|
};
|
|
3597
3726
|
__name(CloudInput, "CloudInput");
|
|
3598
|
-
|
|
3599
|
-
(0,
|
|
3727
|
+
_ts_decorate7([
|
|
3728
|
+
(0, import_type_graphql8.Field)(() => GuardrailsInput, {
|
|
3600
3729
|
nullable: true
|
|
3601
3730
|
}),
|
|
3602
|
-
|
|
3731
|
+
_ts_metadata7("design:type", typeof GuardrailsInput === "undefined" ? Object : GuardrailsInput)
|
|
3603
3732
|
], CloudInput.prototype, "guardrails", void 0);
|
|
3604
|
-
CloudInput =
|
|
3605
|
-
(0,
|
|
3733
|
+
CloudInput = _ts_decorate7([
|
|
3734
|
+
(0, import_type_graphql8.InputType)()
|
|
3606
3735
|
], CloudInput);
|
|
3607
3736
|
|
|
3608
3737
|
// src/graphql/inputs/forwarded-parameters.input.ts
|
|
3609
|
-
var
|
|
3610
|
-
function
|
|
3738
|
+
var import_type_graphql9 = require("type-graphql");
|
|
3739
|
+
function _ts_decorate8(decorators, target, key, desc) {
|
|
3611
3740
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3612
3741
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3613
3742
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3617,12 +3746,12 @@ function _ts_decorate7(decorators, target, key, desc) {
|
|
|
3617
3746
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3618
3747
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3619
3748
|
}
|
|
3620
|
-
__name(
|
|
3621
|
-
function
|
|
3749
|
+
__name(_ts_decorate8, "_ts_decorate");
|
|
3750
|
+
function _ts_metadata8(k, v) {
|
|
3622
3751
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3623
3752
|
return Reflect.metadata(k, v);
|
|
3624
3753
|
}
|
|
3625
|
-
__name(
|
|
3754
|
+
__name(_ts_metadata8, "_ts_metadata");
|
|
3626
3755
|
var ForwardedParametersInput = class {
|
|
3627
3756
|
model;
|
|
3628
3757
|
maxTokens;
|
|
@@ -3632,51 +3761,51 @@ var ForwardedParametersInput = class {
|
|
|
3632
3761
|
temperature;
|
|
3633
3762
|
};
|
|
3634
3763
|
__name(ForwardedParametersInput, "ForwardedParametersInput");
|
|
3635
|
-
|
|
3636
|
-
(0,
|
|
3764
|
+
_ts_decorate8([
|
|
3765
|
+
(0, import_type_graphql9.Field)(() => String, {
|
|
3637
3766
|
nullable: true
|
|
3638
3767
|
}),
|
|
3639
|
-
|
|
3768
|
+
_ts_metadata8("design:type", String)
|
|
3640
3769
|
], ForwardedParametersInput.prototype, "model", void 0);
|
|
3641
|
-
|
|
3642
|
-
(0,
|
|
3770
|
+
_ts_decorate8([
|
|
3771
|
+
(0, import_type_graphql9.Field)(() => Number, {
|
|
3643
3772
|
nullable: true
|
|
3644
3773
|
}),
|
|
3645
|
-
|
|
3774
|
+
_ts_metadata8("design:type", Number)
|
|
3646
3775
|
], ForwardedParametersInput.prototype, "maxTokens", void 0);
|
|
3647
|
-
|
|
3648
|
-
(0,
|
|
3776
|
+
_ts_decorate8([
|
|
3777
|
+
(0, import_type_graphql9.Field)(() => [
|
|
3649
3778
|
String
|
|
3650
3779
|
], {
|
|
3651
3780
|
nullable: true
|
|
3652
3781
|
}),
|
|
3653
|
-
|
|
3782
|
+
_ts_metadata8("design:type", Array)
|
|
3654
3783
|
], ForwardedParametersInput.prototype, "stop", void 0);
|
|
3655
|
-
|
|
3656
|
-
(0,
|
|
3784
|
+
_ts_decorate8([
|
|
3785
|
+
(0, import_type_graphql9.Field)(() => String, {
|
|
3657
3786
|
nullable: true
|
|
3658
3787
|
}),
|
|
3659
|
-
|
|
3788
|
+
_ts_metadata8("design:type", typeof String === "undefined" ? Object : String)
|
|
3660
3789
|
], ForwardedParametersInput.prototype, "toolChoice", void 0);
|
|
3661
|
-
|
|
3662
|
-
(0,
|
|
3790
|
+
_ts_decorate8([
|
|
3791
|
+
(0, import_type_graphql9.Field)(() => String, {
|
|
3663
3792
|
nullable: true
|
|
3664
3793
|
}),
|
|
3665
|
-
|
|
3794
|
+
_ts_metadata8("design:type", String)
|
|
3666
3795
|
], ForwardedParametersInput.prototype, "toolChoiceFunctionName", void 0);
|
|
3667
|
-
|
|
3668
|
-
(0,
|
|
3796
|
+
_ts_decorate8([
|
|
3797
|
+
(0, import_type_graphql9.Field)(() => Number, {
|
|
3669
3798
|
nullable: true
|
|
3670
3799
|
}),
|
|
3671
|
-
|
|
3800
|
+
_ts_metadata8("design:type", Number)
|
|
3672
3801
|
], ForwardedParametersInput.prototype, "temperature", void 0);
|
|
3673
|
-
ForwardedParametersInput =
|
|
3674
|
-
(0,
|
|
3802
|
+
ForwardedParametersInput = _ts_decorate8([
|
|
3803
|
+
(0, import_type_graphql9.InputType)()
|
|
3675
3804
|
], ForwardedParametersInput);
|
|
3676
3805
|
|
|
3677
3806
|
// src/graphql/inputs/agent-session.input.ts
|
|
3678
|
-
var
|
|
3679
|
-
function
|
|
3807
|
+
var import_type_graphql10 = require("type-graphql");
|
|
3808
|
+
function _ts_decorate9(decorators, target, key, desc) {
|
|
3680
3809
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3681
3810
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3682
3811
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3686,41 +3815,41 @@ function _ts_decorate8(decorators, target, key, desc) {
|
|
|
3686
3815
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3687
3816
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3688
3817
|
}
|
|
3689
|
-
__name(
|
|
3690
|
-
function
|
|
3818
|
+
__name(_ts_decorate9, "_ts_decorate");
|
|
3819
|
+
function _ts_metadata9(k, v) {
|
|
3691
3820
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3692
3821
|
return Reflect.metadata(k, v);
|
|
3693
3822
|
}
|
|
3694
|
-
__name(
|
|
3823
|
+
__name(_ts_metadata9, "_ts_metadata");
|
|
3695
3824
|
var AgentSessionInput = class {
|
|
3696
3825
|
agentName;
|
|
3697
3826
|
threadId;
|
|
3698
3827
|
nodeName;
|
|
3699
3828
|
};
|
|
3700
3829
|
__name(AgentSessionInput, "AgentSessionInput");
|
|
3701
|
-
|
|
3702
|
-
(0,
|
|
3703
|
-
|
|
3830
|
+
_ts_decorate9([
|
|
3831
|
+
(0, import_type_graphql10.Field)(() => String),
|
|
3832
|
+
_ts_metadata9("design:type", String)
|
|
3704
3833
|
], AgentSessionInput.prototype, "agentName", void 0);
|
|
3705
|
-
|
|
3706
|
-
(0,
|
|
3834
|
+
_ts_decorate9([
|
|
3835
|
+
(0, import_type_graphql10.Field)(() => String, {
|
|
3707
3836
|
nullable: true
|
|
3708
3837
|
}),
|
|
3709
|
-
|
|
3838
|
+
_ts_metadata9("design:type", String)
|
|
3710
3839
|
], AgentSessionInput.prototype, "threadId", void 0);
|
|
3711
|
-
|
|
3712
|
-
(0,
|
|
3840
|
+
_ts_decorate9([
|
|
3841
|
+
(0, import_type_graphql10.Field)(() => String, {
|
|
3713
3842
|
nullable: true
|
|
3714
3843
|
}),
|
|
3715
|
-
|
|
3844
|
+
_ts_metadata9("design:type", String)
|
|
3716
3845
|
], AgentSessionInput.prototype, "nodeName", void 0);
|
|
3717
|
-
AgentSessionInput =
|
|
3718
|
-
(0,
|
|
3846
|
+
AgentSessionInput = _ts_decorate9([
|
|
3847
|
+
(0, import_type_graphql10.InputType)()
|
|
3719
3848
|
], AgentSessionInput);
|
|
3720
3849
|
|
|
3721
3850
|
// src/graphql/inputs/agent-state.input.ts
|
|
3722
|
-
var
|
|
3723
|
-
function
|
|
3851
|
+
var import_type_graphql11 = require("type-graphql");
|
|
3852
|
+
function _ts_decorate10(decorators, target, key, desc) {
|
|
3724
3853
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3725
3854
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3726
3855
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3730,32 +3859,32 @@ function _ts_decorate9(decorators, target, key, desc) {
|
|
|
3730
3859
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3731
3860
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3732
3861
|
}
|
|
3733
|
-
__name(
|
|
3734
|
-
function
|
|
3862
|
+
__name(_ts_decorate10, "_ts_decorate");
|
|
3863
|
+
function _ts_metadata10(k, v) {
|
|
3735
3864
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3736
3865
|
return Reflect.metadata(k, v);
|
|
3737
3866
|
}
|
|
3738
|
-
__name(
|
|
3867
|
+
__name(_ts_metadata10, "_ts_metadata");
|
|
3739
3868
|
var AgentStateInput = class {
|
|
3740
3869
|
agentName;
|
|
3741
3870
|
state;
|
|
3742
3871
|
};
|
|
3743
3872
|
__name(AgentStateInput, "AgentStateInput");
|
|
3744
|
-
|
|
3745
|
-
(0,
|
|
3746
|
-
|
|
3873
|
+
_ts_decorate10([
|
|
3874
|
+
(0, import_type_graphql11.Field)(() => String),
|
|
3875
|
+
_ts_metadata10("design:type", String)
|
|
3747
3876
|
], AgentStateInput.prototype, "agentName", void 0);
|
|
3748
|
-
|
|
3749
|
-
(0,
|
|
3750
|
-
|
|
3877
|
+
_ts_decorate10([
|
|
3878
|
+
(0, import_type_graphql11.Field)(() => String),
|
|
3879
|
+
_ts_metadata10("design:type", String)
|
|
3751
3880
|
], AgentStateInput.prototype, "state", void 0);
|
|
3752
|
-
AgentStateInput =
|
|
3753
|
-
(0,
|
|
3881
|
+
AgentStateInput = _ts_decorate10([
|
|
3882
|
+
(0, import_type_graphql11.InputType)()
|
|
3754
3883
|
], AgentStateInput);
|
|
3755
3884
|
|
|
3756
3885
|
// src/graphql/inputs/extensions.input.ts
|
|
3757
|
-
var
|
|
3758
|
-
function
|
|
3886
|
+
var import_type_graphql12 = require("type-graphql");
|
|
3887
|
+
function _ts_decorate11(decorators, target, key, desc) {
|
|
3759
3888
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3760
3889
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3761
3890
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3765,48 +3894,95 @@ function _ts_decorate10(decorators, target, key, desc) {
|
|
|
3765
3894
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3766
3895
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3767
3896
|
}
|
|
3768
|
-
__name(
|
|
3769
|
-
function
|
|
3897
|
+
__name(_ts_decorate11, "_ts_decorate");
|
|
3898
|
+
function _ts_metadata11(k, v) {
|
|
3770
3899
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3771
3900
|
return Reflect.metadata(k, v);
|
|
3772
3901
|
}
|
|
3773
|
-
__name(
|
|
3902
|
+
__name(_ts_metadata11, "_ts_metadata");
|
|
3774
3903
|
var ExtensionsInput = class {
|
|
3775
3904
|
openaiAssistantAPI;
|
|
3776
3905
|
};
|
|
3777
3906
|
__name(ExtensionsInput, "ExtensionsInput");
|
|
3778
|
-
|
|
3779
|
-
(0,
|
|
3907
|
+
_ts_decorate11([
|
|
3908
|
+
(0, import_type_graphql12.Field)(() => OpenAIApiAssistantAPIInput, {
|
|
3780
3909
|
nullable: true
|
|
3781
3910
|
}),
|
|
3782
|
-
|
|
3911
|
+
_ts_metadata11("design:type", typeof OpenAIApiAssistantAPIInput === "undefined" ? Object : OpenAIApiAssistantAPIInput)
|
|
3783
3912
|
], ExtensionsInput.prototype, "openaiAssistantAPI", void 0);
|
|
3784
|
-
ExtensionsInput =
|
|
3785
|
-
(0,
|
|
3913
|
+
ExtensionsInput = _ts_decorate11([
|
|
3914
|
+
(0, import_type_graphql12.InputType)()
|
|
3786
3915
|
], ExtensionsInput);
|
|
3787
3916
|
var OpenAIApiAssistantAPIInput = class {
|
|
3788
3917
|
runId;
|
|
3789
3918
|
threadId;
|
|
3790
3919
|
};
|
|
3791
3920
|
__name(OpenAIApiAssistantAPIInput, "OpenAIApiAssistantAPIInput");
|
|
3792
|
-
|
|
3793
|
-
(0,
|
|
3921
|
+
_ts_decorate11([
|
|
3922
|
+
(0, import_type_graphql12.Field)(() => String, {
|
|
3794
3923
|
nullable: true
|
|
3795
3924
|
}),
|
|
3796
|
-
|
|
3925
|
+
_ts_metadata11("design:type", String)
|
|
3797
3926
|
], OpenAIApiAssistantAPIInput.prototype, "runId", void 0);
|
|
3798
|
-
|
|
3799
|
-
(0,
|
|
3927
|
+
_ts_decorate11([
|
|
3928
|
+
(0, import_type_graphql12.Field)(() => String, {
|
|
3800
3929
|
nullable: true
|
|
3801
3930
|
}),
|
|
3802
|
-
|
|
3931
|
+
_ts_metadata11("design:type", String)
|
|
3803
3932
|
], OpenAIApiAssistantAPIInput.prototype, "threadId", void 0);
|
|
3804
|
-
OpenAIApiAssistantAPIInput =
|
|
3805
|
-
(0,
|
|
3933
|
+
OpenAIApiAssistantAPIInput = _ts_decorate11([
|
|
3934
|
+
(0, import_type_graphql12.InputType)()
|
|
3806
3935
|
], OpenAIApiAssistantAPIInput);
|
|
3807
3936
|
|
|
3937
|
+
// src/graphql/inputs/meta-event.input.ts
|
|
3938
|
+
var import_type_graphql13 = require("type-graphql");
|
|
3939
|
+
function _ts_decorate12(decorators, target, key, desc) {
|
|
3940
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3941
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3942
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
3943
|
+
else
|
|
3944
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
3945
|
+
if (d = decorators[i])
|
|
3946
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3947
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3948
|
+
}
|
|
3949
|
+
__name(_ts_decorate12, "_ts_decorate");
|
|
3950
|
+
function _ts_metadata12(k, v) {
|
|
3951
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3952
|
+
return Reflect.metadata(k, v);
|
|
3953
|
+
}
|
|
3954
|
+
__name(_ts_metadata12, "_ts_metadata");
|
|
3955
|
+
var MetaEventInput = class {
|
|
3956
|
+
type = "MetaEvent";
|
|
3957
|
+
name;
|
|
3958
|
+
value;
|
|
3959
|
+
response;
|
|
3960
|
+
};
|
|
3961
|
+
__name(MetaEventInput, "MetaEventInput");
|
|
3962
|
+
_ts_decorate12([
|
|
3963
|
+
(0, import_type_graphql13.Field)(() => String),
|
|
3964
|
+
_ts_metadata12("design:type", String)
|
|
3965
|
+
], MetaEventInput.prototype, "type", void 0);
|
|
3966
|
+
_ts_decorate12([
|
|
3967
|
+
(0, import_type_graphql13.Field)(() => MetaEventName),
|
|
3968
|
+
_ts_metadata12("design:type", typeof MetaEventName === "undefined" ? Object : MetaEventName)
|
|
3969
|
+
], MetaEventInput.prototype, "name", void 0);
|
|
3970
|
+
_ts_decorate12([
|
|
3971
|
+
(0, import_type_graphql13.Field)(() => String),
|
|
3972
|
+
_ts_metadata12("design:type", String)
|
|
3973
|
+
], MetaEventInput.prototype, "value", void 0);
|
|
3974
|
+
_ts_decorate12([
|
|
3975
|
+
(0, import_type_graphql13.Field)(() => String, {
|
|
3976
|
+
nullable: true
|
|
3977
|
+
}),
|
|
3978
|
+
_ts_metadata12("design:type", String)
|
|
3979
|
+
], MetaEventInput.prototype, "response", void 0);
|
|
3980
|
+
MetaEventInput = _ts_decorate12([
|
|
3981
|
+
(0, import_type_graphql13.InputType)()
|
|
3982
|
+
], MetaEventInput);
|
|
3983
|
+
|
|
3808
3984
|
// src/graphql/inputs/generate-copilot-response.input.ts
|
|
3809
|
-
function
|
|
3985
|
+
function _ts_decorate13(decorators, target, key, desc) {
|
|
3810
3986
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3811
3987
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3812
3988
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3816,24 +3992,24 @@ function _ts_decorate11(decorators, target, key, desc) {
|
|
|
3816
3992
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3817
3993
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3818
3994
|
}
|
|
3819
|
-
__name(
|
|
3820
|
-
function
|
|
3995
|
+
__name(_ts_decorate13, "_ts_decorate");
|
|
3996
|
+
function _ts_metadata13(k, v) {
|
|
3821
3997
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3822
3998
|
return Reflect.metadata(k, v);
|
|
3823
3999
|
}
|
|
3824
|
-
__name(
|
|
4000
|
+
__name(_ts_metadata13, "_ts_metadata");
|
|
3825
4001
|
var GenerateCopilotResponseMetadataInput = class {
|
|
3826
4002
|
requestType;
|
|
3827
4003
|
};
|
|
3828
4004
|
__name(GenerateCopilotResponseMetadataInput, "GenerateCopilotResponseMetadataInput");
|
|
3829
|
-
|
|
3830
|
-
(0,
|
|
4005
|
+
_ts_decorate13([
|
|
4006
|
+
(0, import_type_graphql14.Field)(() => CopilotRequestType, {
|
|
3831
4007
|
nullable: true
|
|
3832
4008
|
}),
|
|
3833
|
-
|
|
4009
|
+
_ts_metadata13("design:type", typeof CopilotRequestType === "undefined" ? Object : CopilotRequestType)
|
|
3834
4010
|
], GenerateCopilotResponseMetadataInput.prototype, "requestType", void 0);
|
|
3835
|
-
GenerateCopilotResponseMetadataInput =
|
|
3836
|
-
(0,
|
|
4011
|
+
GenerateCopilotResponseMetadataInput = _ts_decorate13([
|
|
4012
|
+
(0, import_type_graphql14.InputType)()
|
|
3837
4013
|
], GenerateCopilotResponseMetadataInput);
|
|
3838
4014
|
var GenerateCopilotResponseInput = class {
|
|
3839
4015
|
metadata;
|
|
@@ -3847,84 +4023,93 @@ var GenerateCopilotResponseInput = class {
|
|
|
3847
4023
|
agentState;
|
|
3848
4024
|
agentStates;
|
|
3849
4025
|
extensions;
|
|
4026
|
+
metaEvents;
|
|
3850
4027
|
};
|
|
3851
4028
|
__name(GenerateCopilotResponseInput, "GenerateCopilotResponseInput");
|
|
3852
|
-
|
|
3853
|
-
(0,
|
|
4029
|
+
_ts_decorate13([
|
|
4030
|
+
(0, import_type_graphql14.Field)(() => GenerateCopilotResponseMetadataInput, {
|
|
3854
4031
|
nullable: false
|
|
3855
4032
|
}),
|
|
3856
|
-
|
|
4033
|
+
_ts_metadata13("design:type", typeof GenerateCopilotResponseMetadataInput === "undefined" ? Object : GenerateCopilotResponseMetadataInput)
|
|
3857
4034
|
], GenerateCopilotResponseInput.prototype, "metadata", void 0);
|
|
3858
|
-
|
|
3859
|
-
(0,
|
|
4035
|
+
_ts_decorate13([
|
|
4036
|
+
(0, import_type_graphql14.Field)(() => String, {
|
|
3860
4037
|
nullable: true
|
|
3861
4038
|
}),
|
|
3862
|
-
|
|
4039
|
+
_ts_metadata13("design:type", String)
|
|
3863
4040
|
], GenerateCopilotResponseInput.prototype, "threadId", void 0);
|
|
3864
|
-
|
|
3865
|
-
(0,
|
|
4041
|
+
_ts_decorate13([
|
|
4042
|
+
(0, import_type_graphql14.Field)(() => String, {
|
|
3866
4043
|
nullable: true
|
|
3867
4044
|
}),
|
|
3868
|
-
|
|
4045
|
+
_ts_metadata13("design:type", String)
|
|
3869
4046
|
], GenerateCopilotResponseInput.prototype, "runId", void 0);
|
|
3870
|
-
|
|
3871
|
-
(0,
|
|
4047
|
+
_ts_decorate13([
|
|
4048
|
+
(0, import_type_graphql14.Field)(() => [
|
|
3872
4049
|
MessageInput
|
|
3873
4050
|
]),
|
|
3874
|
-
|
|
4051
|
+
_ts_metadata13("design:type", Array)
|
|
3875
4052
|
], GenerateCopilotResponseInput.prototype, "messages", void 0);
|
|
3876
|
-
|
|
3877
|
-
(0,
|
|
3878
|
-
|
|
4053
|
+
_ts_decorate13([
|
|
4054
|
+
(0, import_type_graphql14.Field)(() => FrontendInput),
|
|
4055
|
+
_ts_metadata13("design:type", typeof FrontendInput === "undefined" ? Object : FrontendInput)
|
|
3879
4056
|
], GenerateCopilotResponseInput.prototype, "frontend", void 0);
|
|
3880
|
-
|
|
3881
|
-
(0,
|
|
4057
|
+
_ts_decorate13([
|
|
4058
|
+
(0, import_type_graphql14.Field)(() => CloudInput, {
|
|
3882
4059
|
nullable: true
|
|
3883
4060
|
}),
|
|
3884
|
-
|
|
4061
|
+
_ts_metadata13("design:type", typeof CloudInput === "undefined" ? Object : CloudInput)
|
|
3885
4062
|
], GenerateCopilotResponseInput.prototype, "cloud", void 0);
|
|
3886
|
-
|
|
3887
|
-
(0,
|
|
4063
|
+
_ts_decorate13([
|
|
4064
|
+
(0, import_type_graphql14.Field)(() => ForwardedParametersInput, {
|
|
3888
4065
|
nullable: true
|
|
3889
4066
|
}),
|
|
3890
|
-
|
|
4067
|
+
_ts_metadata13("design:type", typeof ForwardedParametersInput === "undefined" ? Object : ForwardedParametersInput)
|
|
3891
4068
|
], GenerateCopilotResponseInput.prototype, "forwardedParameters", void 0);
|
|
3892
|
-
|
|
3893
|
-
(0,
|
|
4069
|
+
_ts_decorate13([
|
|
4070
|
+
(0, import_type_graphql14.Field)(() => AgentSessionInput, {
|
|
3894
4071
|
nullable: true
|
|
3895
4072
|
}),
|
|
3896
|
-
|
|
4073
|
+
_ts_metadata13("design:type", typeof AgentSessionInput === "undefined" ? Object : AgentSessionInput)
|
|
3897
4074
|
], GenerateCopilotResponseInput.prototype, "agentSession", void 0);
|
|
3898
|
-
|
|
3899
|
-
(0,
|
|
4075
|
+
_ts_decorate13([
|
|
4076
|
+
(0, import_type_graphql14.Field)(() => AgentStateInput, {
|
|
3900
4077
|
nullable: true
|
|
3901
4078
|
}),
|
|
3902
|
-
|
|
4079
|
+
_ts_metadata13("design:type", typeof AgentStateInput === "undefined" ? Object : AgentStateInput)
|
|
3903
4080
|
], GenerateCopilotResponseInput.prototype, "agentState", void 0);
|
|
3904
|
-
|
|
3905
|
-
(0,
|
|
4081
|
+
_ts_decorate13([
|
|
4082
|
+
(0, import_type_graphql14.Field)(() => [
|
|
3906
4083
|
AgentStateInput
|
|
3907
4084
|
], {
|
|
3908
4085
|
nullable: true
|
|
3909
4086
|
}),
|
|
3910
|
-
|
|
4087
|
+
_ts_metadata13("design:type", Array)
|
|
3911
4088
|
], GenerateCopilotResponseInput.prototype, "agentStates", void 0);
|
|
3912
|
-
|
|
3913
|
-
(0,
|
|
4089
|
+
_ts_decorate13([
|
|
4090
|
+
(0, import_type_graphql14.Field)(() => ExtensionsInput, {
|
|
3914
4091
|
nullable: true
|
|
3915
4092
|
}),
|
|
3916
|
-
|
|
4093
|
+
_ts_metadata13("design:type", typeof ExtensionsInput === "undefined" ? Object : ExtensionsInput)
|
|
3917
4094
|
], GenerateCopilotResponseInput.prototype, "extensions", void 0);
|
|
3918
|
-
|
|
3919
|
-
(0,
|
|
4095
|
+
_ts_decorate13([
|
|
4096
|
+
(0, import_type_graphql14.Field)(() => [
|
|
4097
|
+
MetaEventInput
|
|
4098
|
+
], {
|
|
4099
|
+
nullable: true
|
|
4100
|
+
}),
|
|
4101
|
+
_ts_metadata13("design:type", Array)
|
|
4102
|
+
], GenerateCopilotResponseInput.prototype, "metaEvents", void 0);
|
|
4103
|
+
GenerateCopilotResponseInput = _ts_decorate13([
|
|
4104
|
+
(0, import_type_graphql14.InputType)()
|
|
3920
4105
|
], GenerateCopilotResponseInput);
|
|
3921
4106
|
|
|
3922
4107
|
// src/graphql/types/copilot-response.type.ts
|
|
3923
|
-
var
|
|
4108
|
+
var import_type_graphql18 = require("type-graphql");
|
|
3924
4109
|
|
|
3925
4110
|
// src/graphql/types/message-status.type.ts
|
|
3926
|
-
var
|
|
3927
|
-
function
|
|
4111
|
+
var import_type_graphql15 = require("type-graphql");
|
|
4112
|
+
function _ts_decorate14(decorators, target, key, desc) {
|
|
3928
4113
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3929
4114
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3930
4115
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3934,58 +4119,58 @@ function _ts_decorate12(decorators, target, key, desc) {
|
|
|
3934
4119
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3935
4120
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3936
4121
|
}
|
|
3937
|
-
__name(
|
|
3938
|
-
function
|
|
4122
|
+
__name(_ts_decorate14, "_ts_decorate");
|
|
4123
|
+
function _ts_metadata14(k, v) {
|
|
3939
4124
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3940
4125
|
return Reflect.metadata(k, v);
|
|
3941
4126
|
}
|
|
3942
|
-
__name(
|
|
4127
|
+
__name(_ts_metadata14, "_ts_metadata");
|
|
3943
4128
|
var MessageStatusCode;
|
|
3944
4129
|
(function(MessageStatusCode2) {
|
|
3945
4130
|
MessageStatusCode2["Pending"] = "pending";
|
|
3946
4131
|
MessageStatusCode2["Success"] = "success";
|
|
3947
4132
|
MessageStatusCode2["Failed"] = "failed";
|
|
3948
4133
|
})(MessageStatusCode || (MessageStatusCode = {}));
|
|
3949
|
-
(0,
|
|
4134
|
+
(0, import_type_graphql15.registerEnumType)(MessageStatusCode, {
|
|
3950
4135
|
name: "MessageStatusCode"
|
|
3951
4136
|
});
|
|
3952
4137
|
var BaseMessageStatus = /* @__PURE__ */ __name(class BaseMessageStatus2 {
|
|
3953
4138
|
code;
|
|
3954
4139
|
}, "BaseMessageStatus");
|
|
3955
|
-
|
|
3956
|
-
(0,
|
|
3957
|
-
|
|
4140
|
+
_ts_decorate14([
|
|
4141
|
+
(0, import_type_graphql15.Field)(() => MessageStatusCode),
|
|
4142
|
+
_ts_metadata14("design:type", String)
|
|
3958
4143
|
], BaseMessageStatus.prototype, "code", void 0);
|
|
3959
|
-
BaseMessageStatus =
|
|
3960
|
-
(0,
|
|
4144
|
+
BaseMessageStatus = _ts_decorate14([
|
|
4145
|
+
(0, import_type_graphql15.ObjectType)()
|
|
3961
4146
|
], BaseMessageStatus);
|
|
3962
4147
|
var PendingMessageStatus = class extends BaseMessageStatus {
|
|
3963
4148
|
code = "pending";
|
|
3964
4149
|
};
|
|
3965
4150
|
__name(PendingMessageStatus, "PendingMessageStatus");
|
|
3966
|
-
PendingMessageStatus =
|
|
3967
|
-
(0,
|
|
4151
|
+
PendingMessageStatus = _ts_decorate14([
|
|
4152
|
+
(0, import_type_graphql15.ObjectType)()
|
|
3968
4153
|
], PendingMessageStatus);
|
|
3969
4154
|
var SuccessMessageStatus = class extends BaseMessageStatus {
|
|
3970
4155
|
code = "success";
|
|
3971
4156
|
};
|
|
3972
4157
|
__name(SuccessMessageStatus, "SuccessMessageStatus");
|
|
3973
|
-
SuccessMessageStatus =
|
|
3974
|
-
(0,
|
|
4158
|
+
SuccessMessageStatus = _ts_decorate14([
|
|
4159
|
+
(0, import_type_graphql15.ObjectType)()
|
|
3975
4160
|
], SuccessMessageStatus);
|
|
3976
4161
|
var FailedMessageStatus = class extends BaseMessageStatus {
|
|
3977
4162
|
code = "failed";
|
|
3978
4163
|
reason;
|
|
3979
4164
|
};
|
|
3980
4165
|
__name(FailedMessageStatus, "FailedMessageStatus");
|
|
3981
|
-
|
|
3982
|
-
(0,
|
|
3983
|
-
|
|
4166
|
+
_ts_decorate14([
|
|
4167
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
4168
|
+
_ts_metadata14("design:type", String)
|
|
3984
4169
|
], FailedMessageStatus.prototype, "reason", void 0);
|
|
3985
|
-
FailedMessageStatus =
|
|
3986
|
-
(0,
|
|
4170
|
+
FailedMessageStatus = _ts_decorate14([
|
|
4171
|
+
(0, import_type_graphql15.ObjectType)()
|
|
3987
4172
|
], FailedMessageStatus);
|
|
3988
|
-
var MessageStatusUnion = (0,
|
|
4173
|
+
var MessageStatusUnion = (0, import_type_graphql15.createUnionType)({
|
|
3989
4174
|
name: "MessageStatus",
|
|
3990
4175
|
types: () => [
|
|
3991
4176
|
PendingMessageStatus,
|
|
@@ -3996,8 +4181,8 @@ var MessageStatusUnion = (0, import_type_graphql13.createUnionType)({
|
|
|
3996
4181
|
|
|
3997
4182
|
// src/graphql/types/response-status.type.ts
|
|
3998
4183
|
var import_graphql_scalars = require("graphql-scalars");
|
|
3999
|
-
var
|
|
4000
|
-
function
|
|
4184
|
+
var import_type_graphql16 = require("type-graphql");
|
|
4185
|
+
function _ts_decorate15(decorators, target, key, desc) {
|
|
4001
4186
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4002
4187
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4003
4188
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4007,30 +4192,30 @@ function _ts_decorate13(decorators, target, key, desc) {
|
|
|
4007
4192
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4008
4193
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4009
4194
|
}
|
|
4010
|
-
__name(
|
|
4011
|
-
function
|
|
4195
|
+
__name(_ts_decorate15, "_ts_decorate");
|
|
4196
|
+
function _ts_metadata15(k, v) {
|
|
4012
4197
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4013
4198
|
return Reflect.metadata(k, v);
|
|
4014
4199
|
}
|
|
4015
|
-
__name(
|
|
4200
|
+
__name(_ts_metadata15, "_ts_metadata");
|
|
4016
4201
|
var ResponseStatusCode;
|
|
4017
4202
|
(function(ResponseStatusCode2) {
|
|
4018
4203
|
ResponseStatusCode2["Pending"] = "pending";
|
|
4019
4204
|
ResponseStatusCode2["Success"] = "success";
|
|
4020
4205
|
ResponseStatusCode2["Failed"] = "failed";
|
|
4021
4206
|
})(ResponseStatusCode || (ResponseStatusCode = {}));
|
|
4022
|
-
(0,
|
|
4207
|
+
(0, import_type_graphql16.registerEnumType)(ResponseStatusCode, {
|
|
4023
4208
|
name: "ResponseStatusCode"
|
|
4024
4209
|
});
|
|
4025
4210
|
var BaseResponseStatus = /* @__PURE__ */ __name(class BaseResponseStatus2 {
|
|
4026
4211
|
code;
|
|
4027
4212
|
}, "BaseResponseStatus");
|
|
4028
|
-
|
|
4029
|
-
(0,
|
|
4030
|
-
|
|
4213
|
+
_ts_decorate15([
|
|
4214
|
+
(0, import_type_graphql16.Field)(() => ResponseStatusCode),
|
|
4215
|
+
_ts_metadata15("design:type", String)
|
|
4031
4216
|
], BaseResponseStatus.prototype, "code", void 0);
|
|
4032
|
-
BaseResponseStatus =
|
|
4033
|
-
(0,
|
|
4217
|
+
BaseResponseStatus = _ts_decorate15([
|
|
4218
|
+
(0, import_type_graphql16.InterfaceType)({
|
|
4034
4219
|
resolveType(value) {
|
|
4035
4220
|
if (value.code === "success") {
|
|
4036
4221
|
return SuccessResponseStatus;
|
|
@@ -4042,14 +4227,14 @@ BaseResponseStatus = _ts_decorate13([
|
|
|
4042
4227
|
return void 0;
|
|
4043
4228
|
}
|
|
4044
4229
|
}),
|
|
4045
|
-
(0,
|
|
4230
|
+
(0, import_type_graphql16.ObjectType)()
|
|
4046
4231
|
], BaseResponseStatus);
|
|
4047
4232
|
var PendingResponseStatus = class extends BaseResponseStatus {
|
|
4048
4233
|
code = "pending";
|
|
4049
4234
|
};
|
|
4050
4235
|
__name(PendingResponseStatus, "PendingResponseStatus");
|
|
4051
|
-
PendingResponseStatus =
|
|
4052
|
-
(0,
|
|
4236
|
+
PendingResponseStatus = _ts_decorate15([
|
|
4237
|
+
(0, import_type_graphql16.ObjectType)({
|
|
4053
4238
|
implements: BaseResponseStatus
|
|
4054
4239
|
})
|
|
4055
4240
|
], PendingResponseStatus);
|
|
@@ -4057,8 +4242,8 @@ var SuccessResponseStatus = class extends BaseResponseStatus {
|
|
|
4057
4242
|
code = "success";
|
|
4058
4243
|
};
|
|
4059
4244
|
__name(SuccessResponseStatus, "SuccessResponseStatus");
|
|
4060
|
-
SuccessResponseStatus =
|
|
4061
|
-
(0,
|
|
4245
|
+
SuccessResponseStatus = _ts_decorate15([
|
|
4246
|
+
(0, import_type_graphql16.ObjectType)({
|
|
4062
4247
|
implements: BaseResponseStatus
|
|
4063
4248
|
})
|
|
4064
4249
|
], SuccessResponseStatus);
|
|
@@ -4068,7 +4253,7 @@ var FailedResponseStatusReason;
|
|
|
4068
4253
|
FailedResponseStatusReason2["MESSAGE_STREAM_INTERRUPTED"] = "MESSAGE_STREAM_INTERRUPTED";
|
|
4069
4254
|
FailedResponseStatusReason2["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
4070
4255
|
})(FailedResponseStatusReason || (FailedResponseStatusReason = {}));
|
|
4071
|
-
(0,
|
|
4256
|
+
(0, import_type_graphql16.registerEnumType)(FailedResponseStatusReason, {
|
|
4072
4257
|
name: "FailedResponseStatusReason"
|
|
4073
4258
|
});
|
|
4074
4259
|
var FailedResponseStatus = class extends BaseResponseStatus {
|
|
@@ -4077,22 +4262,22 @@ var FailedResponseStatus = class extends BaseResponseStatus {
|
|
|
4077
4262
|
details = null;
|
|
4078
4263
|
};
|
|
4079
4264
|
__name(FailedResponseStatus, "FailedResponseStatus");
|
|
4080
|
-
|
|
4081
|
-
(0,
|
|
4082
|
-
|
|
4265
|
+
_ts_decorate15([
|
|
4266
|
+
(0, import_type_graphql16.Field)(() => FailedResponseStatusReason),
|
|
4267
|
+
_ts_metadata15("design:type", String)
|
|
4083
4268
|
], FailedResponseStatus.prototype, "reason", void 0);
|
|
4084
|
-
|
|
4085
|
-
(0,
|
|
4269
|
+
_ts_decorate15([
|
|
4270
|
+
(0, import_type_graphql16.Field)(() => import_graphql_scalars.GraphQLJSON, {
|
|
4086
4271
|
nullable: true
|
|
4087
4272
|
}),
|
|
4088
|
-
|
|
4273
|
+
_ts_metadata15("design:type", typeof Record === "undefined" ? Object : Record)
|
|
4089
4274
|
], FailedResponseStatus.prototype, "details", void 0);
|
|
4090
|
-
FailedResponseStatus =
|
|
4091
|
-
(0,
|
|
4275
|
+
FailedResponseStatus = _ts_decorate15([
|
|
4276
|
+
(0, import_type_graphql16.ObjectType)({
|
|
4092
4277
|
implements: BaseResponseStatus
|
|
4093
4278
|
})
|
|
4094
4279
|
], FailedResponseStatus);
|
|
4095
|
-
var ResponseStatusUnion = (0,
|
|
4280
|
+
var ResponseStatusUnion = (0, import_type_graphql16.createUnionType)({
|
|
4096
4281
|
name: "ResponseStatus",
|
|
4097
4282
|
types: () => [
|
|
4098
4283
|
PendingResponseStatus,
|
|
@@ -4102,8 +4287,8 @@ var ResponseStatusUnion = (0, import_type_graphql14.createUnionType)({
|
|
|
4102
4287
|
});
|
|
4103
4288
|
|
|
4104
4289
|
// src/graphql/types/extensions-response.type.ts
|
|
4105
|
-
var
|
|
4106
|
-
function
|
|
4290
|
+
var import_type_graphql17 = require("type-graphql");
|
|
4291
|
+
function _ts_decorate16(decorators, target, key, desc) {
|
|
4107
4292
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4108
4293
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4109
4294
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4113,48 +4298,48 @@ function _ts_decorate14(decorators, target, key, desc) {
|
|
|
4113
4298
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4114
4299
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4115
4300
|
}
|
|
4116
|
-
__name(
|
|
4117
|
-
function
|
|
4301
|
+
__name(_ts_decorate16, "_ts_decorate");
|
|
4302
|
+
function _ts_metadata16(k, v) {
|
|
4118
4303
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4119
4304
|
return Reflect.metadata(k, v);
|
|
4120
4305
|
}
|
|
4121
|
-
__name(
|
|
4306
|
+
__name(_ts_metadata16, "_ts_metadata");
|
|
4122
4307
|
var ExtensionsResponse = class {
|
|
4123
4308
|
openaiAssistantAPI;
|
|
4124
4309
|
};
|
|
4125
4310
|
__name(ExtensionsResponse, "ExtensionsResponse");
|
|
4126
|
-
|
|
4127
|
-
(0,
|
|
4311
|
+
_ts_decorate16([
|
|
4312
|
+
(0, import_type_graphql17.Field)(() => OpenAIApiAssistantAPIResponse, {
|
|
4128
4313
|
nullable: true
|
|
4129
4314
|
}),
|
|
4130
|
-
|
|
4315
|
+
_ts_metadata16("design:type", typeof OpenAIApiAssistantAPIResponse === "undefined" ? Object : OpenAIApiAssistantAPIResponse)
|
|
4131
4316
|
], ExtensionsResponse.prototype, "openaiAssistantAPI", void 0);
|
|
4132
|
-
ExtensionsResponse =
|
|
4133
|
-
(0,
|
|
4317
|
+
ExtensionsResponse = _ts_decorate16([
|
|
4318
|
+
(0, import_type_graphql17.ObjectType)()
|
|
4134
4319
|
], ExtensionsResponse);
|
|
4135
4320
|
var OpenAIApiAssistantAPIResponse = class {
|
|
4136
4321
|
runId;
|
|
4137
4322
|
threadId;
|
|
4138
4323
|
};
|
|
4139
4324
|
__name(OpenAIApiAssistantAPIResponse, "OpenAIApiAssistantAPIResponse");
|
|
4140
|
-
|
|
4141
|
-
(0,
|
|
4325
|
+
_ts_decorate16([
|
|
4326
|
+
(0, import_type_graphql17.Field)(() => String, {
|
|
4142
4327
|
nullable: true
|
|
4143
4328
|
}),
|
|
4144
|
-
|
|
4329
|
+
_ts_metadata16("design:type", String)
|
|
4145
4330
|
], OpenAIApiAssistantAPIResponse.prototype, "runId", void 0);
|
|
4146
|
-
|
|
4147
|
-
(0,
|
|
4331
|
+
_ts_decorate16([
|
|
4332
|
+
(0, import_type_graphql17.Field)(() => String, {
|
|
4148
4333
|
nullable: true
|
|
4149
4334
|
}),
|
|
4150
|
-
|
|
4335
|
+
_ts_metadata16("design:type", String)
|
|
4151
4336
|
], OpenAIApiAssistantAPIResponse.prototype, "threadId", void 0);
|
|
4152
|
-
OpenAIApiAssistantAPIResponse =
|
|
4153
|
-
(0,
|
|
4337
|
+
OpenAIApiAssistantAPIResponse = _ts_decorate16([
|
|
4338
|
+
(0, import_type_graphql17.ObjectType)()
|
|
4154
4339
|
], OpenAIApiAssistantAPIResponse);
|
|
4155
4340
|
|
|
4156
4341
|
// src/graphql/types/copilot-response.type.ts
|
|
4157
|
-
function
|
|
4342
|
+
function _ts_decorate17(decorators, target, key, desc) {
|
|
4158
4343
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4159
4344
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4160
4345
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4164,32 +4349,32 @@ function _ts_decorate15(decorators, target, key, desc) {
|
|
|
4164
4349
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4165
4350
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4166
4351
|
}
|
|
4167
|
-
__name(
|
|
4168
|
-
function
|
|
4352
|
+
__name(_ts_decorate17, "_ts_decorate");
|
|
4353
|
+
function _ts_metadata17(k, v) {
|
|
4169
4354
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4170
4355
|
return Reflect.metadata(k, v);
|
|
4171
4356
|
}
|
|
4172
|
-
__name(
|
|
4357
|
+
__name(_ts_metadata17, "_ts_metadata");
|
|
4173
4358
|
var BaseMessageOutput = class {
|
|
4174
4359
|
id;
|
|
4175
4360
|
createdAt;
|
|
4176
4361
|
status;
|
|
4177
4362
|
};
|
|
4178
4363
|
__name(BaseMessageOutput, "BaseMessageOutput");
|
|
4179
|
-
|
|
4180
|
-
(0,
|
|
4181
|
-
|
|
4364
|
+
_ts_decorate17([
|
|
4365
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4366
|
+
_ts_metadata17("design:type", String)
|
|
4182
4367
|
], BaseMessageOutput.prototype, "id", void 0);
|
|
4183
|
-
|
|
4184
|
-
(0,
|
|
4185
|
-
|
|
4368
|
+
_ts_decorate17([
|
|
4369
|
+
(0, import_type_graphql18.Field)(() => Date),
|
|
4370
|
+
_ts_metadata17("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4186
4371
|
], BaseMessageOutput.prototype, "createdAt", void 0);
|
|
4187
|
-
|
|
4188
|
-
(0,
|
|
4189
|
-
|
|
4372
|
+
_ts_decorate17([
|
|
4373
|
+
(0, import_type_graphql18.Field)(() => MessageStatusUnion),
|
|
4374
|
+
_ts_metadata17("design:type", Object)
|
|
4190
4375
|
], BaseMessageOutput.prototype, "status", void 0);
|
|
4191
|
-
BaseMessageOutput =
|
|
4192
|
-
(0,
|
|
4376
|
+
BaseMessageOutput = _ts_decorate17([
|
|
4377
|
+
(0, import_type_graphql18.InterfaceType)({
|
|
4193
4378
|
resolveType(value) {
|
|
4194
4379
|
if (value.hasOwnProperty("content")) {
|
|
4195
4380
|
return TextMessageOutput;
|
|
@@ -4199,6 +4384,8 @@ BaseMessageOutput = _ts_decorate15([
|
|
|
4199
4384
|
return ResultMessageOutput;
|
|
4200
4385
|
} else if (value.hasOwnProperty("state")) {
|
|
4201
4386
|
return AgentStateMessageOutput;
|
|
4387
|
+
} else if (value.name === MetaEventName.LangGraphInterruptEvent) {
|
|
4388
|
+
return LangGraphInterruptEvent;
|
|
4202
4389
|
}
|
|
4203
4390
|
return void 0;
|
|
4204
4391
|
}
|
|
@@ -4210,24 +4397,24 @@ var TextMessageOutput = class {
|
|
|
4210
4397
|
parentMessageId;
|
|
4211
4398
|
};
|
|
4212
4399
|
__name(TextMessageOutput, "TextMessageOutput");
|
|
4213
|
-
|
|
4214
|
-
(0,
|
|
4215
|
-
|
|
4400
|
+
_ts_decorate17([
|
|
4401
|
+
(0, import_type_graphql18.Field)(() => MessageRole),
|
|
4402
|
+
_ts_metadata17("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
4216
4403
|
], TextMessageOutput.prototype, "role", void 0);
|
|
4217
|
-
|
|
4218
|
-
(0,
|
|
4404
|
+
_ts_decorate17([
|
|
4405
|
+
(0, import_type_graphql18.Field)(() => [
|
|
4219
4406
|
String
|
|
4220
4407
|
]),
|
|
4221
|
-
|
|
4408
|
+
_ts_metadata17("design:type", Array)
|
|
4222
4409
|
], TextMessageOutput.prototype, "content", void 0);
|
|
4223
|
-
|
|
4224
|
-
(0,
|
|
4410
|
+
_ts_decorate17([
|
|
4411
|
+
(0, import_type_graphql18.Field)(() => String, {
|
|
4225
4412
|
nullable: true
|
|
4226
4413
|
}),
|
|
4227
|
-
|
|
4414
|
+
_ts_metadata17("design:type", String)
|
|
4228
4415
|
], TextMessageOutput.prototype, "parentMessageId", void 0);
|
|
4229
|
-
TextMessageOutput =
|
|
4230
|
-
(0,
|
|
4416
|
+
TextMessageOutput = _ts_decorate17([
|
|
4417
|
+
(0, import_type_graphql18.ObjectType)({
|
|
4231
4418
|
implements: BaseMessageOutput
|
|
4232
4419
|
})
|
|
4233
4420
|
], TextMessageOutput);
|
|
@@ -4238,31 +4425,31 @@ var ActionExecutionMessageOutput = class {
|
|
|
4238
4425
|
parentMessageId;
|
|
4239
4426
|
};
|
|
4240
4427
|
__name(ActionExecutionMessageOutput, "ActionExecutionMessageOutput");
|
|
4241
|
-
|
|
4242
|
-
(0,
|
|
4243
|
-
|
|
4428
|
+
_ts_decorate17([
|
|
4429
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4430
|
+
_ts_metadata17("design:type", String)
|
|
4244
4431
|
], ActionExecutionMessageOutput.prototype, "name", void 0);
|
|
4245
|
-
|
|
4246
|
-
(0,
|
|
4432
|
+
_ts_decorate17([
|
|
4433
|
+
(0, import_type_graphql18.Field)(() => String, {
|
|
4247
4434
|
nullable: true,
|
|
4248
4435
|
deprecationReason: "This field will be removed in a future version"
|
|
4249
4436
|
}),
|
|
4250
|
-
|
|
4437
|
+
_ts_metadata17("design:type", String)
|
|
4251
4438
|
], ActionExecutionMessageOutput.prototype, "scope", void 0);
|
|
4252
|
-
|
|
4253
|
-
(0,
|
|
4439
|
+
_ts_decorate17([
|
|
4440
|
+
(0, import_type_graphql18.Field)(() => [
|
|
4254
4441
|
String
|
|
4255
4442
|
]),
|
|
4256
|
-
|
|
4443
|
+
_ts_metadata17("design:type", Array)
|
|
4257
4444
|
], ActionExecutionMessageOutput.prototype, "arguments", void 0);
|
|
4258
|
-
|
|
4259
|
-
(0,
|
|
4445
|
+
_ts_decorate17([
|
|
4446
|
+
(0, import_type_graphql18.Field)(() => String, {
|
|
4260
4447
|
nullable: true
|
|
4261
4448
|
}),
|
|
4262
|
-
|
|
4449
|
+
_ts_metadata17("design:type", String)
|
|
4263
4450
|
], ActionExecutionMessageOutput.prototype, "parentMessageId", void 0);
|
|
4264
|
-
ActionExecutionMessageOutput =
|
|
4265
|
-
(0,
|
|
4451
|
+
ActionExecutionMessageOutput = _ts_decorate17([
|
|
4452
|
+
(0, import_type_graphql18.ObjectType)({
|
|
4266
4453
|
implements: BaseMessageOutput
|
|
4267
4454
|
})
|
|
4268
4455
|
], ActionExecutionMessageOutput);
|
|
@@ -4272,20 +4459,20 @@ var ResultMessageOutput = class {
|
|
|
4272
4459
|
result;
|
|
4273
4460
|
};
|
|
4274
4461
|
__name(ResultMessageOutput, "ResultMessageOutput");
|
|
4275
|
-
|
|
4276
|
-
(0,
|
|
4277
|
-
|
|
4462
|
+
_ts_decorate17([
|
|
4463
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4464
|
+
_ts_metadata17("design:type", String)
|
|
4278
4465
|
], ResultMessageOutput.prototype, "actionExecutionId", void 0);
|
|
4279
|
-
|
|
4280
|
-
(0,
|
|
4281
|
-
|
|
4466
|
+
_ts_decorate17([
|
|
4467
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4468
|
+
_ts_metadata17("design:type", String)
|
|
4282
4469
|
], ResultMessageOutput.prototype, "actionName", void 0);
|
|
4283
|
-
|
|
4284
|
-
(0,
|
|
4285
|
-
|
|
4470
|
+
_ts_decorate17([
|
|
4471
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4472
|
+
_ts_metadata17("design:type", String)
|
|
4286
4473
|
], ResultMessageOutput.prototype, "result", void 0);
|
|
4287
|
-
ResultMessageOutput =
|
|
4288
|
-
(0,
|
|
4474
|
+
ResultMessageOutput = _ts_decorate17([
|
|
4475
|
+
(0, import_type_graphql18.ObjectType)({
|
|
4289
4476
|
implements: BaseMessageOutput
|
|
4290
4477
|
})
|
|
4291
4478
|
], ResultMessageOutput);
|
|
@@ -4300,40 +4487,40 @@ var AgentStateMessageOutput = class {
|
|
|
4300
4487
|
running;
|
|
4301
4488
|
};
|
|
4302
4489
|
__name(AgentStateMessageOutput, "AgentStateMessageOutput");
|
|
4303
|
-
|
|
4304
|
-
(0,
|
|
4305
|
-
|
|
4490
|
+
_ts_decorate17([
|
|
4491
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4492
|
+
_ts_metadata17("design:type", String)
|
|
4306
4493
|
], AgentStateMessageOutput.prototype, "threadId", void 0);
|
|
4307
|
-
|
|
4308
|
-
(0,
|
|
4309
|
-
|
|
4494
|
+
_ts_decorate17([
|
|
4495
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4496
|
+
_ts_metadata17("design:type", String)
|
|
4310
4497
|
], AgentStateMessageOutput.prototype, "agentName", void 0);
|
|
4311
|
-
|
|
4312
|
-
(0,
|
|
4313
|
-
|
|
4498
|
+
_ts_decorate17([
|
|
4499
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4500
|
+
_ts_metadata17("design:type", String)
|
|
4314
4501
|
], AgentStateMessageOutput.prototype, "nodeName", void 0);
|
|
4315
|
-
|
|
4316
|
-
(0,
|
|
4317
|
-
|
|
4502
|
+
_ts_decorate17([
|
|
4503
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4504
|
+
_ts_metadata17("design:type", String)
|
|
4318
4505
|
], AgentStateMessageOutput.prototype, "runId", void 0);
|
|
4319
|
-
|
|
4320
|
-
(0,
|
|
4321
|
-
|
|
4506
|
+
_ts_decorate17([
|
|
4507
|
+
(0, import_type_graphql18.Field)(() => Boolean),
|
|
4508
|
+
_ts_metadata17("design:type", Boolean)
|
|
4322
4509
|
], AgentStateMessageOutput.prototype, "active", void 0);
|
|
4323
|
-
|
|
4324
|
-
(0,
|
|
4325
|
-
|
|
4510
|
+
_ts_decorate17([
|
|
4511
|
+
(0, import_type_graphql18.Field)(() => MessageRole),
|
|
4512
|
+
_ts_metadata17("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
4326
4513
|
], AgentStateMessageOutput.prototype, "role", void 0);
|
|
4327
|
-
|
|
4328
|
-
(0,
|
|
4329
|
-
|
|
4514
|
+
_ts_decorate17([
|
|
4515
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4516
|
+
_ts_metadata17("design:type", String)
|
|
4330
4517
|
], AgentStateMessageOutput.prototype, "state", void 0);
|
|
4331
|
-
|
|
4332
|
-
(0,
|
|
4333
|
-
|
|
4518
|
+
_ts_decorate17([
|
|
4519
|
+
(0, import_type_graphql18.Field)(() => Boolean),
|
|
4520
|
+
_ts_metadata17("design:type", Boolean)
|
|
4334
4521
|
], AgentStateMessageOutput.prototype, "running", void 0);
|
|
4335
|
-
AgentStateMessageOutput =
|
|
4336
|
-
(0,
|
|
4522
|
+
AgentStateMessageOutput = _ts_decorate17([
|
|
4523
|
+
(0, import_type_graphql18.ObjectType)({
|
|
4337
4524
|
implements: BaseMessageOutput
|
|
4338
4525
|
})
|
|
4339
4526
|
], AgentStateMessageOutput);
|
|
@@ -4343,36 +4530,45 @@ var CopilotResponse = class {
|
|
|
4343
4530
|
runId;
|
|
4344
4531
|
messages;
|
|
4345
4532
|
extensions;
|
|
4533
|
+
metaEvents;
|
|
4346
4534
|
};
|
|
4347
4535
|
__name(CopilotResponse, "CopilotResponse");
|
|
4348
|
-
|
|
4349
|
-
(0,
|
|
4350
|
-
|
|
4536
|
+
_ts_decorate17([
|
|
4537
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4538
|
+
_ts_metadata17("design:type", String)
|
|
4351
4539
|
], CopilotResponse.prototype, "threadId", void 0);
|
|
4352
|
-
|
|
4353
|
-
(0,
|
|
4354
|
-
|
|
4540
|
+
_ts_decorate17([
|
|
4541
|
+
(0, import_type_graphql18.Field)(() => ResponseStatusUnion),
|
|
4542
|
+
_ts_metadata17("design:type", Object)
|
|
4355
4543
|
], CopilotResponse.prototype, "status", void 0);
|
|
4356
|
-
|
|
4357
|
-
(0,
|
|
4544
|
+
_ts_decorate17([
|
|
4545
|
+
(0, import_type_graphql18.Field)({
|
|
4358
4546
|
nullable: true
|
|
4359
4547
|
}),
|
|
4360
|
-
|
|
4548
|
+
_ts_metadata17("design:type", String)
|
|
4361
4549
|
], CopilotResponse.prototype, "runId", void 0);
|
|
4362
|
-
|
|
4363
|
-
(0,
|
|
4550
|
+
_ts_decorate17([
|
|
4551
|
+
(0, import_type_graphql18.Field)(() => [
|
|
4364
4552
|
BaseMessageOutput
|
|
4365
4553
|
]),
|
|
4366
|
-
|
|
4554
|
+
_ts_metadata17("design:type", Array)
|
|
4367
4555
|
], CopilotResponse.prototype, "messages", void 0);
|
|
4368
|
-
|
|
4369
|
-
(0,
|
|
4556
|
+
_ts_decorate17([
|
|
4557
|
+
(0, import_type_graphql18.Field)(() => ExtensionsResponse, {
|
|
4370
4558
|
nullable: true
|
|
4371
4559
|
}),
|
|
4372
|
-
|
|
4560
|
+
_ts_metadata17("design:type", typeof ExtensionsResponse === "undefined" ? Object : ExtensionsResponse)
|
|
4373
4561
|
], CopilotResponse.prototype, "extensions", void 0);
|
|
4374
|
-
|
|
4375
|
-
(0,
|
|
4562
|
+
_ts_decorate17([
|
|
4563
|
+
(0, import_type_graphql18.Field)(() => [
|
|
4564
|
+
BaseMetaEvent
|
|
4565
|
+
], {
|
|
4566
|
+
nullable: true
|
|
4567
|
+
}),
|
|
4568
|
+
_ts_metadata17("design:type", Array)
|
|
4569
|
+
], CopilotResponse.prototype, "metaEvents", void 0);
|
|
4570
|
+
CopilotResponse = _ts_decorate17([
|
|
4571
|
+
(0, import_type_graphql18.ObjectType)()
|
|
4376
4572
|
], CopilotResponse);
|
|
4377
4573
|
|
|
4378
4574
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
@@ -4418,8 +4614,8 @@ __name(UnknownErrorResponse, "UnknownErrorResponse");
|
|
|
4418
4614
|
var import_shared14 = require("@copilotkit/shared");
|
|
4419
4615
|
|
|
4420
4616
|
// src/graphql/types/agents-response.type.ts
|
|
4421
|
-
var
|
|
4422
|
-
function
|
|
4617
|
+
var import_type_graphql19 = require("type-graphql");
|
|
4618
|
+
function _ts_decorate18(decorators, target, key, desc) {
|
|
4423
4619
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4424
4620
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4425
4621
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4429,49 +4625,49 @@ function _ts_decorate16(decorators, target, key, desc) {
|
|
|
4429
4625
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4430
4626
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4431
4627
|
}
|
|
4432
|
-
__name(
|
|
4433
|
-
function
|
|
4628
|
+
__name(_ts_decorate18, "_ts_decorate");
|
|
4629
|
+
function _ts_metadata18(k, v) {
|
|
4434
4630
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4435
4631
|
return Reflect.metadata(k, v);
|
|
4436
4632
|
}
|
|
4437
|
-
__name(
|
|
4633
|
+
__name(_ts_metadata18, "_ts_metadata");
|
|
4438
4634
|
var Agent = class {
|
|
4439
4635
|
id;
|
|
4440
4636
|
name;
|
|
4441
4637
|
description;
|
|
4442
4638
|
};
|
|
4443
4639
|
__name(Agent, "Agent");
|
|
4444
|
-
|
|
4445
|
-
(0,
|
|
4446
|
-
|
|
4640
|
+
_ts_decorate18([
|
|
4641
|
+
(0, import_type_graphql19.Field)(() => String),
|
|
4642
|
+
_ts_metadata18("design:type", String)
|
|
4447
4643
|
], Agent.prototype, "id", void 0);
|
|
4448
|
-
|
|
4449
|
-
(0,
|
|
4450
|
-
|
|
4644
|
+
_ts_decorate18([
|
|
4645
|
+
(0, import_type_graphql19.Field)(() => String),
|
|
4646
|
+
_ts_metadata18("design:type", String)
|
|
4451
4647
|
], Agent.prototype, "name", void 0);
|
|
4452
|
-
|
|
4453
|
-
(0,
|
|
4454
|
-
|
|
4648
|
+
_ts_decorate18([
|
|
4649
|
+
(0, import_type_graphql19.Field)(() => String),
|
|
4650
|
+
_ts_metadata18("design:type", String)
|
|
4455
4651
|
], Agent.prototype, "description", void 0);
|
|
4456
|
-
Agent =
|
|
4457
|
-
(0,
|
|
4652
|
+
Agent = _ts_decorate18([
|
|
4653
|
+
(0, import_type_graphql19.ObjectType)()
|
|
4458
4654
|
], Agent);
|
|
4459
4655
|
var AgentsResponse = class {
|
|
4460
4656
|
agents;
|
|
4461
4657
|
};
|
|
4462
4658
|
__name(AgentsResponse, "AgentsResponse");
|
|
4463
|
-
|
|
4464
|
-
(0,
|
|
4659
|
+
_ts_decorate18([
|
|
4660
|
+
(0, import_type_graphql19.Field)(() => [
|
|
4465
4661
|
Agent
|
|
4466
4662
|
]),
|
|
4467
|
-
|
|
4663
|
+
_ts_metadata18("design:type", Array)
|
|
4468
4664
|
], AgentsResponse.prototype, "agents", void 0);
|
|
4469
|
-
AgentsResponse =
|
|
4470
|
-
(0,
|
|
4665
|
+
AgentsResponse = _ts_decorate18([
|
|
4666
|
+
(0, import_type_graphql19.ObjectType)()
|
|
4471
4667
|
], AgentsResponse);
|
|
4472
4668
|
|
|
4473
4669
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
4474
|
-
function
|
|
4670
|
+
function _ts_decorate19(decorators, target, key, desc) {
|
|
4475
4671
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4476
4672
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4477
4673
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4481,12 +4677,12 @@ function _ts_decorate17(decorators, target, key, desc) {
|
|
|
4481
4677
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4482
4678
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4483
4679
|
}
|
|
4484
|
-
__name(
|
|
4485
|
-
function
|
|
4680
|
+
__name(_ts_decorate19, "_ts_decorate");
|
|
4681
|
+
function _ts_metadata19(k, v) {
|
|
4486
4682
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4487
4683
|
return Reflect.metadata(k, v);
|
|
4488
4684
|
}
|
|
4489
|
-
__name(
|
|
4685
|
+
__name(_ts_metadata19, "_ts_metadata");
|
|
4490
4686
|
function _ts_param(paramIndex, decorator) {
|
|
4491
4687
|
return function(target, key) {
|
|
4492
4688
|
decorator(target, key, paramIndex);
|
|
@@ -4540,7 +4736,7 @@ var CopilotResolver = class {
|
|
|
4540
4736
|
};
|
|
4541
4737
|
}
|
|
4542
4738
|
async generateCopilotResponse(ctx, data, properties) {
|
|
4543
|
-
var _a, _b, _c;
|
|
4739
|
+
var _a, _b, _c, _d;
|
|
4544
4740
|
telemetry_client_default.capture("oss.runtime.copilot_request_created", {
|
|
4545
4741
|
"cloud.guardrails.enabled": ((_a = data.cloud) == null ? void 0 : _a.guardrails) !== void 0,
|
|
4546
4742
|
requestType: data.metadata.requestType
|
|
@@ -4611,16 +4807,68 @@ var CopilotResolver = class {
|
|
|
4611
4807
|
agentSession: data.agentSession,
|
|
4612
4808
|
agentStates: data.agentStates,
|
|
4613
4809
|
url: data.frontend.url,
|
|
4614
|
-
extensions: data.extensions
|
|
4810
|
+
extensions: data.extensions,
|
|
4811
|
+
metaEvents: data.metaEvents
|
|
4615
4812
|
});
|
|
4616
4813
|
logger2.debug("Event source created, creating response");
|
|
4814
|
+
const eventStream = eventSource.processRuntimeEvents({
|
|
4815
|
+
serverSideActions,
|
|
4816
|
+
guardrailsResult$: ((_d = data.cloud) == null ? void 0 : _d.guardrails) ? guardrailsResult$ : null,
|
|
4817
|
+
actionInputsWithoutAgents: actionInputsWithoutAgents.filter(
|
|
4818
|
+
// TODO-AGENTS: do not exclude ALL server side actions
|
|
4819
|
+
(action) => !serverSideActions.find((serverSideAction) => serverSideAction.name == action.name)
|
|
4820
|
+
),
|
|
4821
|
+
threadId
|
|
4822
|
+
}).pipe(
|
|
4823
|
+
// shareReplay() ensures that later subscribers will see the whole stream instead of
|
|
4824
|
+
// just the events that were emitted after the subscriber was added.
|
|
4825
|
+
(0, import_rxjs4.shareReplay)(),
|
|
4826
|
+
(0, import_rxjs4.finalize)(() => {
|
|
4827
|
+
logger2.debug("Event stream finalized");
|
|
4828
|
+
})
|
|
4829
|
+
);
|
|
4617
4830
|
const response = {
|
|
4618
4831
|
threadId,
|
|
4619
4832
|
runId,
|
|
4620
4833
|
status: (0, import_rxjs4.firstValueFrom)(responseStatus$),
|
|
4621
4834
|
extensions,
|
|
4835
|
+
metaEvents: new import_graphql_yoga.Repeater(async (push, stop) => {
|
|
4836
|
+
let eventStreamSubscription;
|
|
4837
|
+
eventStreamSubscription = eventStream.subscribe({
|
|
4838
|
+
next: async (event) => {
|
|
4839
|
+
if (event.type != RuntimeEventTypes.MetaEvent) {
|
|
4840
|
+
return;
|
|
4841
|
+
}
|
|
4842
|
+
switch (event.name) {
|
|
4843
|
+
case RuntimeMetaEventName.LangGraphInterruptEvent:
|
|
4844
|
+
push((0, import_class_transformer3.plainToInstance)(LangGraphInterruptEvent, {
|
|
4845
|
+
type: event.type,
|
|
4846
|
+
name: event.name,
|
|
4847
|
+
value: event.value
|
|
4848
|
+
}));
|
|
4849
|
+
break;
|
|
4850
|
+
}
|
|
4851
|
+
},
|
|
4852
|
+
error: (err) => {
|
|
4853
|
+
logger2.error({
|
|
4854
|
+
err
|
|
4855
|
+
}, "Error in meta events stream");
|
|
4856
|
+
responseStatus$.next(new UnknownErrorResponse({
|
|
4857
|
+
description: `An unknown error has occurred in the event stream`
|
|
4858
|
+
}));
|
|
4859
|
+
eventStreamSubscription == null ? void 0 : eventStreamSubscription.unsubscribe();
|
|
4860
|
+
stop();
|
|
4861
|
+
},
|
|
4862
|
+
complete: async () => {
|
|
4863
|
+
logger2.debug("Meta events stream completed");
|
|
4864
|
+
responseStatus$.next(new SuccessResponseStatus());
|
|
4865
|
+
eventStreamSubscription == null ? void 0 : eventStreamSubscription.unsubscribe();
|
|
4866
|
+
stop();
|
|
4867
|
+
}
|
|
4868
|
+
});
|
|
4869
|
+
}),
|
|
4622
4870
|
messages: new import_graphql_yoga.Repeater(async (pushMessage, stopStreamingMessages) => {
|
|
4623
|
-
var _a2
|
|
4871
|
+
var _a2;
|
|
4624
4872
|
logger2.debug("Messages repeater created");
|
|
4625
4873
|
if ((_a2 = data.cloud) == null ? void 0 : _a2.guardrails) {
|
|
4626
4874
|
logger2 = logger2.child({
|
|
@@ -4669,26 +4917,12 @@ var CopilotResolver = class {
|
|
|
4669
4917
|
});
|
|
4670
4918
|
}
|
|
4671
4919
|
let eventStreamSubscription;
|
|
4672
|
-
const eventStream = eventSource.processRuntimeEvents({
|
|
4673
|
-
serverSideActions,
|
|
4674
|
-
guardrailsResult$: ((_b2 = data.cloud) == null ? void 0 : _b2.guardrails) ? guardrailsResult$ : null,
|
|
4675
|
-
actionInputsWithoutAgents: actionInputsWithoutAgents.filter(
|
|
4676
|
-
// TODO-AGENTS: do not exclude ALL server side actions
|
|
4677
|
-
(action) => !serverSideActions.find((serverSideAction) => serverSideAction.name == action.name)
|
|
4678
|
-
),
|
|
4679
|
-
threadId
|
|
4680
|
-
}).pipe(
|
|
4681
|
-
// shareReplay() ensures that later subscribers will see the whole stream instead of
|
|
4682
|
-
// just the events that were emitted after the subscriber was added.
|
|
4683
|
-
(0, import_rxjs4.shareReplay)(),
|
|
4684
|
-
(0, import_rxjs4.finalize)(() => {
|
|
4685
|
-
logger2.debug("Event stream finalized");
|
|
4686
|
-
})
|
|
4687
|
-
);
|
|
4688
4920
|
logger2.debug("Event stream created, subscribing to event stream");
|
|
4689
4921
|
eventStreamSubscription = eventStream.subscribe({
|
|
4690
4922
|
next: async (event) => {
|
|
4691
4923
|
switch (event.type) {
|
|
4924
|
+
case RuntimeEventTypes.MetaEvent:
|
|
4925
|
+
break;
|
|
4692
4926
|
case RuntimeEventTypes.TextMessageStart:
|
|
4693
4927
|
const textMessageContentStream = eventStream.pipe(
|
|
4694
4928
|
// skip until this message start event
|
|
@@ -4894,38 +5128,38 @@ var CopilotResolver = class {
|
|
|
4894
5128
|
}
|
|
4895
5129
|
};
|
|
4896
5130
|
__name(CopilotResolver, "CopilotResolver");
|
|
4897
|
-
|
|
4898
|
-
(0,
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
5131
|
+
_ts_decorate19([
|
|
5132
|
+
(0, import_type_graphql20.Query)(() => String),
|
|
5133
|
+
_ts_metadata19("design:type", Function),
|
|
5134
|
+
_ts_metadata19("design:paramtypes", []),
|
|
5135
|
+
_ts_metadata19("design:returntype", Promise)
|
|
4902
5136
|
], CopilotResolver.prototype, "hello", null);
|
|
4903
|
-
|
|
4904
|
-
(0,
|
|
4905
|
-
_ts_param(0, (0,
|
|
4906
|
-
|
|
4907
|
-
|
|
5137
|
+
_ts_decorate19([
|
|
5138
|
+
(0, import_type_graphql20.Query)(() => AgentsResponse),
|
|
5139
|
+
_ts_param(0, (0, import_type_graphql20.Ctx)()),
|
|
5140
|
+
_ts_metadata19("design:type", Function),
|
|
5141
|
+
_ts_metadata19("design:paramtypes", [
|
|
4908
5142
|
typeof GraphQLContext === "undefined" ? Object : GraphQLContext
|
|
4909
5143
|
]),
|
|
4910
|
-
|
|
5144
|
+
_ts_metadata19("design:returntype", Promise)
|
|
4911
5145
|
], CopilotResolver.prototype, "availableAgents", null);
|
|
4912
|
-
|
|
4913
|
-
(0,
|
|
4914
|
-
_ts_param(0, (0,
|
|
4915
|
-
_ts_param(1, (0,
|
|
4916
|
-
_ts_param(2, (0,
|
|
5146
|
+
_ts_decorate19([
|
|
5147
|
+
(0, import_type_graphql20.Mutation)(() => CopilotResponse),
|
|
5148
|
+
_ts_param(0, (0, import_type_graphql20.Ctx)()),
|
|
5149
|
+
_ts_param(1, (0, import_type_graphql20.Arg)("data")),
|
|
5150
|
+
_ts_param(2, (0, import_type_graphql20.Arg)("properties", () => import_graphql_scalars2.GraphQLJSONObject, {
|
|
4917
5151
|
nullable: true
|
|
4918
5152
|
})),
|
|
4919
|
-
|
|
4920
|
-
|
|
5153
|
+
_ts_metadata19("design:type", Function),
|
|
5154
|
+
_ts_metadata19("design:paramtypes", [
|
|
4921
5155
|
typeof GraphQLContext === "undefined" ? Object : GraphQLContext,
|
|
4922
5156
|
typeof GenerateCopilotResponseInput === "undefined" ? Object : GenerateCopilotResponseInput,
|
|
4923
5157
|
typeof CopilotRequestContextProperties === "undefined" ? Object : CopilotRequestContextProperties
|
|
4924
5158
|
]),
|
|
4925
|
-
|
|
5159
|
+
_ts_metadata19("design:returntype", Promise)
|
|
4926
5160
|
], CopilotResolver.prototype, "generateCopilotResponse", null);
|
|
4927
|
-
CopilotResolver =
|
|
4928
|
-
(0,
|
|
5161
|
+
CopilotResolver = _ts_decorate19([
|
|
5162
|
+
(0, import_type_graphql20.Resolver)(() => CopilotResponse)
|
|
4929
5163
|
], CopilotResolver);
|
|
4930
5164
|
|
|
4931
5165
|
// src/lib/integrations/shared.ts
|
|
@@ -4960,13 +5194,13 @@ function createLogger(options) {
|
|
|
4960
5194
|
__name(createLogger, "createLogger");
|
|
4961
5195
|
|
|
4962
5196
|
// src/graphql/resolvers/state.resolver.ts
|
|
4963
|
-
var import_type_graphql21 = require("type-graphql");
|
|
4964
|
-
var import_type_graphql22 = require("type-graphql");
|
|
4965
5197
|
var import_type_graphql23 = require("type-graphql");
|
|
5198
|
+
var import_type_graphql24 = require("type-graphql");
|
|
5199
|
+
var import_type_graphql25 = require("type-graphql");
|
|
4966
5200
|
|
|
4967
5201
|
// src/graphql/types/load-agent-state-response.type.ts
|
|
4968
|
-
var
|
|
4969
|
-
function
|
|
5202
|
+
var import_type_graphql21 = require("type-graphql");
|
|
5203
|
+
function _ts_decorate20(decorators, target, key, desc) {
|
|
4970
5204
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4971
5205
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4972
5206
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4976,12 +5210,12 @@ function _ts_decorate18(decorators, target, key, desc) {
|
|
|
4976
5210
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4977
5211
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4978
5212
|
}
|
|
4979
|
-
__name(
|
|
4980
|
-
function
|
|
5213
|
+
__name(_ts_decorate20, "_ts_decorate");
|
|
5214
|
+
function _ts_metadata20(k, v) {
|
|
4981
5215
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4982
5216
|
return Reflect.metadata(k, v);
|
|
4983
5217
|
}
|
|
4984
|
-
__name(
|
|
5218
|
+
__name(_ts_metadata20, "_ts_metadata");
|
|
4985
5219
|
var LoadAgentStateResponse = class {
|
|
4986
5220
|
threadId;
|
|
4987
5221
|
threadExists;
|
|
@@ -4989,29 +5223,29 @@ var LoadAgentStateResponse = class {
|
|
|
4989
5223
|
messages;
|
|
4990
5224
|
};
|
|
4991
5225
|
__name(LoadAgentStateResponse, "LoadAgentStateResponse");
|
|
4992
|
-
|
|
4993
|
-
(0,
|
|
4994
|
-
|
|
5226
|
+
_ts_decorate20([
|
|
5227
|
+
(0, import_type_graphql21.Field)(() => String),
|
|
5228
|
+
_ts_metadata20("design:type", String)
|
|
4995
5229
|
], LoadAgentStateResponse.prototype, "threadId", void 0);
|
|
4996
|
-
|
|
4997
|
-
(0,
|
|
4998
|
-
|
|
5230
|
+
_ts_decorate20([
|
|
5231
|
+
(0, import_type_graphql21.Field)(() => Boolean),
|
|
5232
|
+
_ts_metadata20("design:type", Boolean)
|
|
4999
5233
|
], LoadAgentStateResponse.prototype, "threadExists", void 0);
|
|
5000
|
-
|
|
5001
|
-
(0,
|
|
5002
|
-
|
|
5234
|
+
_ts_decorate20([
|
|
5235
|
+
(0, import_type_graphql21.Field)(() => String),
|
|
5236
|
+
_ts_metadata20("design:type", String)
|
|
5003
5237
|
], LoadAgentStateResponse.prototype, "state", void 0);
|
|
5004
|
-
|
|
5005
|
-
(0,
|
|
5006
|
-
|
|
5238
|
+
_ts_decorate20([
|
|
5239
|
+
(0, import_type_graphql21.Field)(() => String),
|
|
5240
|
+
_ts_metadata20("design:type", String)
|
|
5007
5241
|
], LoadAgentStateResponse.prototype, "messages", void 0);
|
|
5008
|
-
LoadAgentStateResponse =
|
|
5009
|
-
(0,
|
|
5242
|
+
LoadAgentStateResponse = _ts_decorate20([
|
|
5243
|
+
(0, import_type_graphql21.ObjectType)()
|
|
5010
5244
|
], LoadAgentStateResponse);
|
|
5011
5245
|
|
|
5012
5246
|
// src/graphql/inputs/load-agent-state.input.ts
|
|
5013
|
-
var
|
|
5014
|
-
function
|
|
5247
|
+
var import_type_graphql22 = require("type-graphql");
|
|
5248
|
+
function _ts_decorate21(decorators, target, key, desc) {
|
|
5015
5249
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5016
5250
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5017
5251
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5021,31 +5255,31 @@ function _ts_decorate19(decorators, target, key, desc) {
|
|
|
5021
5255
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5022
5256
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5023
5257
|
}
|
|
5024
|
-
__name(
|
|
5025
|
-
function
|
|
5258
|
+
__name(_ts_decorate21, "_ts_decorate");
|
|
5259
|
+
function _ts_metadata21(k, v) {
|
|
5026
5260
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5027
5261
|
return Reflect.metadata(k, v);
|
|
5028
5262
|
}
|
|
5029
|
-
__name(
|
|
5263
|
+
__name(_ts_metadata21, "_ts_metadata");
|
|
5030
5264
|
var LoadAgentStateInput = class {
|
|
5031
5265
|
threadId;
|
|
5032
5266
|
agentName;
|
|
5033
5267
|
};
|
|
5034
5268
|
__name(LoadAgentStateInput, "LoadAgentStateInput");
|
|
5035
|
-
|
|
5036
|
-
(0,
|
|
5037
|
-
|
|
5269
|
+
_ts_decorate21([
|
|
5270
|
+
(0, import_type_graphql22.Field)(() => String),
|
|
5271
|
+
_ts_metadata21("design:type", String)
|
|
5038
5272
|
], LoadAgentStateInput.prototype, "threadId", void 0);
|
|
5039
|
-
|
|
5040
|
-
(0,
|
|
5041
|
-
|
|
5273
|
+
_ts_decorate21([
|
|
5274
|
+
(0, import_type_graphql22.Field)(() => String),
|
|
5275
|
+
_ts_metadata21("design:type", String)
|
|
5042
5276
|
], LoadAgentStateInput.prototype, "agentName", void 0);
|
|
5043
|
-
LoadAgentStateInput =
|
|
5044
|
-
(0,
|
|
5277
|
+
LoadAgentStateInput = _ts_decorate21([
|
|
5278
|
+
(0, import_type_graphql22.InputType)()
|
|
5045
5279
|
], LoadAgentStateInput);
|
|
5046
5280
|
|
|
5047
5281
|
// src/graphql/resolvers/state.resolver.ts
|
|
5048
|
-
function
|
|
5282
|
+
function _ts_decorate22(decorators, target, key, desc) {
|
|
5049
5283
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5050
5284
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5051
5285
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5055,12 +5289,12 @@ function _ts_decorate20(decorators, target, key, desc) {
|
|
|
5055
5289
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5056
5290
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5057
5291
|
}
|
|
5058
|
-
__name(
|
|
5059
|
-
function
|
|
5292
|
+
__name(_ts_decorate22, "_ts_decorate");
|
|
5293
|
+
function _ts_metadata22(k, v) {
|
|
5060
5294
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5061
5295
|
return Reflect.metadata(k, v);
|
|
5062
5296
|
}
|
|
5063
|
-
__name(
|
|
5297
|
+
__name(_ts_metadata22, "_ts_metadata");
|
|
5064
5298
|
function _ts_param2(paramIndex, decorator) {
|
|
5065
5299
|
return function(target, key) {
|
|
5066
5300
|
decorator(target, key, paramIndex);
|
|
@@ -5079,19 +5313,19 @@ var StateResolver = class {
|
|
|
5079
5313
|
}
|
|
5080
5314
|
};
|
|
5081
5315
|
__name(StateResolver, "StateResolver");
|
|
5082
|
-
|
|
5083
|
-
(0,
|
|
5084
|
-
_ts_param2(0, (0,
|
|
5085
|
-
_ts_param2(1, (0,
|
|
5086
|
-
|
|
5087
|
-
|
|
5316
|
+
_ts_decorate22([
|
|
5317
|
+
(0, import_type_graphql25.Query)(() => LoadAgentStateResponse),
|
|
5318
|
+
_ts_param2(0, (0, import_type_graphql24.Ctx)()),
|
|
5319
|
+
_ts_param2(1, (0, import_type_graphql23.Arg)("data")),
|
|
5320
|
+
_ts_metadata22("design:type", Function),
|
|
5321
|
+
_ts_metadata22("design:paramtypes", [
|
|
5088
5322
|
typeof GraphQLContext === "undefined" ? Object : GraphQLContext,
|
|
5089
5323
|
typeof LoadAgentStateInput === "undefined" ? Object : LoadAgentStateInput
|
|
5090
5324
|
]),
|
|
5091
|
-
|
|
5325
|
+
_ts_metadata22("design:returntype", Promise)
|
|
5092
5326
|
], StateResolver.prototype, "loadAgentState", null);
|
|
5093
|
-
StateResolver =
|
|
5094
|
-
(0,
|
|
5327
|
+
StateResolver = _ts_decorate22([
|
|
5328
|
+
(0, import_type_graphql23.Resolver)(() => LoadAgentStateResponse)
|
|
5095
5329
|
], StateResolver);
|
|
5096
5330
|
|
|
5097
5331
|
// src/lib/integrations/shared.ts
|
|
@@ -5115,7 +5349,7 @@ async function createContext(initialContext, copilotKitContext, contextLogger, p
|
|
|
5115
5349
|
__name(createContext, "createContext");
|
|
5116
5350
|
function buildSchema(options = {}) {
|
|
5117
5351
|
logger.debug("Building GraphQL schema...");
|
|
5118
|
-
const schema = (0,
|
|
5352
|
+
const schema = (0, import_type_graphql26.buildSchemaSync)({
|
|
5119
5353
|
resolvers: [
|
|
5120
5354
|
CopilotResolver,
|
|
5121
5355
|
StateResolver
|