@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/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",
|
|
@@ -1590,7 +1590,12 @@ var LangGraphEventTypes;
|
|
|
1590
1590
|
LangGraphEventTypes2["OnCopilotKitEmitMessage"] = "on_copilotkit_emit_message";
|
|
1591
1591
|
LangGraphEventTypes2["OnCopilotKitEmitToolCall"] = "on_copilotkit_emit_tool_call";
|
|
1592
1592
|
LangGraphEventTypes2["OnCustomEvent"] = "on_custom_event";
|
|
1593
|
+
LangGraphEventTypes2["OnInterrupt"] = "on_interrupt";
|
|
1593
1594
|
})(LangGraphEventTypes || (LangGraphEventTypes = {}));
|
|
1595
|
+
var MetaEventNames;
|
|
1596
|
+
(function(MetaEventNames2) {
|
|
1597
|
+
MetaEventNames2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
1598
|
+
})(MetaEventNames || (MetaEventNames = {}));
|
|
1594
1599
|
var CustomEventNames;
|
|
1595
1600
|
(function(CustomEventNames2) {
|
|
1596
1601
|
CustomEventNames2["CopilotKitManuallyEmitMessage"] = "copilotkit_manually_emit_message";
|
|
@@ -1687,6 +1692,13 @@ var RemoteLangGraphEventSource = class {
|
|
|
1687
1692
|
shouldEmitMessages = acc.event.metadata["copilotkit:emit-messages"];
|
|
1688
1693
|
}
|
|
1689
1694
|
}
|
|
1695
|
+
if (acc.event.event === LangGraphEventTypes.OnInterrupt) {
|
|
1696
|
+
events.push({
|
|
1697
|
+
type: RuntimeEventTypes.MetaEvent,
|
|
1698
|
+
name: RuntimeMetaEventName.LangGraphInterruptEvent,
|
|
1699
|
+
value: acc.event.value
|
|
1700
|
+
});
|
|
1701
|
+
}
|
|
1690
1702
|
const responseMetadata = this.getResponseMetadata(acc.event);
|
|
1691
1703
|
if ((responseMetadata == null ? void 0 : responseMetadata.finish_reason) === "tool_calls" && this.shouldEmitToolCall(shouldEmitToolCalls, acc.lastToolCallName)) {
|
|
1692
1704
|
events.push({
|
|
@@ -1854,6 +1866,74 @@ var ActionInputAvailability;
|
|
|
1854
1866
|
description: "The availability of the frontend action"
|
|
1855
1867
|
});
|
|
1856
1868
|
|
|
1869
|
+
// src/graphql/types/meta-events.type.ts
|
|
1870
|
+
var import_type_graphql2 = require("type-graphql");
|
|
1871
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
1872
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1873
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1874
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
1875
|
+
else
|
|
1876
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
1877
|
+
if (d = decorators[i])
|
|
1878
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1879
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1880
|
+
}
|
|
1881
|
+
__name(_ts_decorate, "_ts_decorate");
|
|
1882
|
+
function _ts_metadata(k, v) {
|
|
1883
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1884
|
+
return Reflect.metadata(k, v);
|
|
1885
|
+
}
|
|
1886
|
+
__name(_ts_metadata, "_ts_metadata");
|
|
1887
|
+
var MetaEventName;
|
|
1888
|
+
(function(MetaEventName2) {
|
|
1889
|
+
MetaEventName2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
1890
|
+
})(MetaEventName || (MetaEventName = {}));
|
|
1891
|
+
(0, import_type_graphql2.registerEnumType)(MetaEventName, {
|
|
1892
|
+
name: "MetaEventName",
|
|
1893
|
+
description: "Meta event types"
|
|
1894
|
+
});
|
|
1895
|
+
var BaseMetaEvent = class {
|
|
1896
|
+
type = "MetaEvent";
|
|
1897
|
+
name;
|
|
1898
|
+
};
|
|
1899
|
+
__name(BaseMetaEvent, "BaseMetaEvent");
|
|
1900
|
+
_ts_decorate([
|
|
1901
|
+
(0, import_type_graphql2.Field)(() => String),
|
|
1902
|
+
_ts_metadata("design:type", String)
|
|
1903
|
+
], BaseMetaEvent.prototype, "type", void 0);
|
|
1904
|
+
_ts_decorate([
|
|
1905
|
+
(0, import_type_graphql2.Field)(() => MetaEventName),
|
|
1906
|
+
_ts_metadata("design:type", String)
|
|
1907
|
+
], BaseMetaEvent.prototype, "name", void 0);
|
|
1908
|
+
BaseMetaEvent = _ts_decorate([
|
|
1909
|
+
(0, import_type_graphql2.InterfaceType)()
|
|
1910
|
+
], BaseMetaEvent);
|
|
1911
|
+
var LangGraphInterruptEvent = class {
|
|
1912
|
+
name = "LangGraphInterruptEvent";
|
|
1913
|
+
value;
|
|
1914
|
+
response;
|
|
1915
|
+
};
|
|
1916
|
+
__name(LangGraphInterruptEvent, "LangGraphInterruptEvent");
|
|
1917
|
+
_ts_decorate([
|
|
1918
|
+
(0, import_type_graphql2.Field)(() => MetaEventName),
|
|
1919
|
+
_ts_metadata("design:type", typeof MetaEventName === "undefined" || false ? Object : "LangGraphInterruptEvent")
|
|
1920
|
+
], LangGraphInterruptEvent.prototype, "name", void 0);
|
|
1921
|
+
_ts_decorate([
|
|
1922
|
+
(0, import_type_graphql2.Field)(() => String),
|
|
1923
|
+
_ts_metadata("design:type", String)
|
|
1924
|
+
], LangGraphInterruptEvent.prototype, "value", void 0);
|
|
1925
|
+
_ts_decorate([
|
|
1926
|
+
(0, import_type_graphql2.Field)(() => String, {
|
|
1927
|
+
nullable: true
|
|
1928
|
+
}),
|
|
1929
|
+
_ts_metadata("design:type", String)
|
|
1930
|
+
], LangGraphInterruptEvent.prototype, "response", void 0);
|
|
1931
|
+
LangGraphInterruptEvent = _ts_decorate([
|
|
1932
|
+
(0, import_type_graphql2.ObjectType)({
|
|
1933
|
+
implements: BaseMetaEvent
|
|
1934
|
+
})
|
|
1935
|
+
], LangGraphInterruptEvent);
|
|
1936
|
+
|
|
1857
1937
|
// src/lib/runtime/remote-lg-action.ts
|
|
1858
1938
|
async function execute(args) {
|
|
1859
1939
|
return new ReadableStream({
|
|
@@ -1868,14 +1948,20 @@ async function execute(args) {
|
|
|
1868
1948
|
}
|
|
1869
1949
|
__name(execute, "execute");
|
|
1870
1950
|
async function streamEvents(controller, args) {
|
|
1871
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1872
|
-
const { deploymentUrl, langsmithApiKey, threadId: argsInitialThreadId, agent, nodeName: initialNodeName, state: initialState, messages, actions, logger: logger2 } = args;
|
|
1951
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1952
|
+
const { deploymentUrl, langsmithApiKey, threadId: argsInitialThreadId, agent, nodeName: initialNodeName, state: initialState, messages, actions, logger: logger2, properties, metaEvents } = args;
|
|
1873
1953
|
let nodeName = initialNodeName;
|
|
1874
1954
|
let state = initialState;
|
|
1875
1955
|
const { name, assistantId: initialAssistantId } = agent;
|
|
1956
|
+
const propertyHeaders = properties.authorization ? {
|
|
1957
|
+
authorization: `Bearer ${properties.authorization}`
|
|
1958
|
+
} : null;
|
|
1876
1959
|
const client = new import_langgraph_sdk.Client({
|
|
1877
1960
|
apiUrl: deploymentUrl,
|
|
1878
|
-
apiKey: langsmithApiKey
|
|
1961
|
+
apiKey: langsmithApiKey,
|
|
1962
|
+
defaultHeaders: {
|
|
1963
|
+
...propertyHeaders
|
|
1964
|
+
}
|
|
1879
1965
|
});
|
|
1880
1966
|
let threadId = argsInitialThreadId ?? (0, import_shared10.randomUUID)();
|
|
1881
1967
|
if (argsInitialThreadId && argsInitialThreadId.startsWith("ck-")) {
|
|
@@ -1909,7 +1995,8 @@ async function streamEvents(controller, args) {
|
|
|
1909
1995
|
logger2.error(e, `Error event thrown: ${e.message}`);
|
|
1910
1996
|
}
|
|
1911
1997
|
state = langGraphDefaultMergeState(state, formattedMessages, actions, name);
|
|
1912
|
-
|
|
1998
|
+
const lgInterruptEvent = metaEvents == null ? void 0 : metaEvents.find((ev) => ev.name === MetaEventName.LangGraphInterruptEvent);
|
|
1999
|
+
if (mode === "continue" && !lgInterruptEvent) {
|
|
1913
2000
|
await client.threads.updateState(threadId, {
|
|
1914
2001
|
values: state,
|
|
1915
2002
|
asNode: nodeName
|
|
@@ -1942,13 +2029,21 @@ async function streamEvents(controller, args) {
|
|
|
1942
2029
|
let emitIntermediateStateUntilEnd = null;
|
|
1943
2030
|
let shouldExit = false;
|
|
1944
2031
|
let externalRunId = null;
|
|
1945
|
-
const
|
|
2032
|
+
const payload = {
|
|
1946
2033
|
input: streamInput,
|
|
1947
2034
|
streamMode: [
|
|
1948
2035
|
"events",
|
|
1949
|
-
"values"
|
|
1950
|
-
|
|
1951
|
-
|
|
2036
|
+
"values",
|
|
2037
|
+
"updates"
|
|
2038
|
+
],
|
|
2039
|
+
command: void 0
|
|
2040
|
+
};
|
|
2041
|
+
if (lgInterruptEvent == null ? void 0 : lgInterruptEvent.response) {
|
|
2042
|
+
payload.command = {
|
|
2043
|
+
resume: lgInterruptEvent.response
|
|
2044
|
+
};
|
|
2045
|
+
}
|
|
2046
|
+
const streamResponse2 = client.runs.stream(threadId, assistantId, payload);
|
|
1952
2047
|
const emit = /* @__PURE__ */ __name((message) => controller.enqueue(new TextEncoder().encode(message)), "emit");
|
|
1953
2048
|
let latestStateValues = {};
|
|
1954
2049
|
let updatedState = state;
|
|
@@ -1961,12 +2056,22 @@ async function streamEvents(controller, args) {
|
|
|
1961
2056
|
if (![
|
|
1962
2057
|
"events",
|
|
1963
2058
|
"values",
|
|
1964
|
-
"error"
|
|
2059
|
+
"error",
|
|
2060
|
+
"updates"
|
|
1965
2061
|
].includes(chunk.event))
|
|
1966
2062
|
continue;
|
|
1967
2063
|
if (chunk.event === "error") {
|
|
1968
2064
|
throw new Error(`Error event thrown: ${chunk.data.message}`);
|
|
1969
2065
|
}
|
|
2066
|
+
if (chunk.event === "updates" && chunk.data.__interrupt__) {
|
|
2067
|
+
emit(JSON.stringify({
|
|
2068
|
+
event: LangGraphEventTypes.OnInterrupt,
|
|
2069
|
+
value: chunk.data.__interrupt__[0].value
|
|
2070
|
+
}) + "\n");
|
|
2071
|
+
continue;
|
|
2072
|
+
}
|
|
2073
|
+
if (chunk.event === "updates")
|
|
2074
|
+
continue;
|
|
1970
2075
|
if (chunk.event === "values") {
|
|
1971
2076
|
latestStateValues = chunk.data;
|
|
1972
2077
|
continue;
|
|
@@ -2047,8 +2152,9 @@ async function streamEvents(controller, args) {
|
|
|
2047
2152
|
emit(JSON.stringify(event) + "\n");
|
|
2048
2153
|
}
|
|
2049
2154
|
state = await client.threads.getState(threadId);
|
|
2050
|
-
const
|
|
2051
|
-
nodeName = Object.keys(state.metadata.writes)[0];
|
|
2155
|
+
const interrupts = (_h = (_g = state.tasks) == null ? void 0 : _g[0]) == null ? void 0 : _h.interrupts;
|
|
2156
|
+
nodeName = interrupts ? nodeName : Object.keys(state.metadata.writes)[0];
|
|
2157
|
+
const isEndNode = state.next.length === 0 && !interrupts;
|
|
2052
2158
|
telemetry_client_default.capture("oss.runtime.agent_execution_stream_ended", streamInfo);
|
|
2053
2159
|
emit(getStateSyncEvent({
|
|
2054
2160
|
threadId,
|
|
@@ -2329,7 +2435,7 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
|
|
|
2329
2435
|
parameters: [],
|
|
2330
2436
|
handler: async (_args) => {
|
|
2331
2437
|
},
|
|
2332
|
-
langGraphAgentHandler: async ({ name, actionInputsWithoutAgents, threadId, nodeName, additionalMessages = [] }) => {
|
|
2438
|
+
langGraphAgentHandler: async ({ name, actionInputsWithoutAgents, threadId, nodeName, additionalMessages = [], metaEvents }) => {
|
|
2333
2439
|
var _a;
|
|
2334
2440
|
logger2.debug({
|
|
2335
2441
|
actionName: agent.name
|
|
@@ -2349,7 +2455,9 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
|
|
|
2349
2455
|
}
|
|
2350
2456
|
try {
|
|
2351
2457
|
const response = await execute({
|
|
2352
|
-
logger: logger2
|
|
2458
|
+
logger: logger2.child({
|
|
2459
|
+
component: "remote-actions.remote-lg-action.streamEvents"
|
|
2460
|
+
}),
|
|
2353
2461
|
deploymentUrl: endpoint.deploymentUrl,
|
|
2354
2462
|
langsmithApiKey: endpoint.langsmithApiKey,
|
|
2355
2463
|
agent,
|
|
@@ -2365,7 +2473,8 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
|
|
|
2365
2473
|
name: action.name,
|
|
2366
2474
|
description: action.description,
|
|
2367
2475
|
parameters: JSON.parse(action.jsonSchema)
|
|
2368
|
-
}))
|
|
2476
|
+
})),
|
|
2477
|
+
metaEvents
|
|
2369
2478
|
});
|
|
2370
2479
|
const eventSource = new RemoteLangGraphEventSource();
|
|
2371
2480
|
streamResponse(response, eventSource.eventStream$);
|
|
@@ -2445,7 +2554,7 @@ function constructRemoteActions({ json, url, onBeforeRequest, graphqlContext, lo
|
|
|
2445
2554
|
parameters: [],
|
|
2446
2555
|
handler: async (_args) => {
|
|
2447
2556
|
},
|
|
2448
|
-
langGraphAgentHandler: async ({ name, actionInputsWithoutAgents, threadId, nodeName, additionalMessages = [] }) => {
|
|
2557
|
+
langGraphAgentHandler: async ({ name, actionInputsWithoutAgents, threadId, nodeName, additionalMessages = [], metaEvents }) => {
|
|
2449
2558
|
var _a;
|
|
2450
2559
|
logger2.debug({
|
|
2451
2560
|
actionName: agent.name
|
|
@@ -2482,7 +2591,8 @@ function constructRemoteActions({ json, url, onBeforeRequest, graphqlContext, lo
|
|
|
2482
2591
|
name: action.name,
|
|
2483
2592
|
description: action.description,
|
|
2484
2593
|
parameters: JSON.parse(action.jsonSchema)
|
|
2485
|
-
}))
|
|
2594
|
+
})),
|
|
2595
|
+
metaEvents
|
|
2486
2596
|
})
|
|
2487
2597
|
});
|
|
2488
2598
|
if (!response.ok) {
|
|
@@ -2730,8 +2840,8 @@ __name(getRuntimeInstanceTelemetryInfo, "getRuntimeInstanceTelemetryInfo");
|
|
|
2730
2840
|
var telemetry_client_default = telemetryClient;
|
|
2731
2841
|
|
|
2732
2842
|
// src/graphql/types/base/index.ts
|
|
2733
|
-
var
|
|
2734
|
-
function
|
|
2843
|
+
var import_type_graphql3 = require("type-graphql");
|
|
2844
|
+
function _ts_decorate2(decorators, target, key, desc) {
|
|
2735
2845
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2736
2846
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2737
2847
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2741,27 +2851,27 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
2741
2851
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2742
2852
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2743
2853
|
}
|
|
2744
|
-
__name(
|
|
2745
|
-
function
|
|
2854
|
+
__name(_ts_decorate2, "_ts_decorate");
|
|
2855
|
+
function _ts_metadata2(k, v) {
|
|
2746
2856
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
2747
2857
|
return Reflect.metadata(k, v);
|
|
2748
2858
|
}
|
|
2749
|
-
__name(
|
|
2859
|
+
__name(_ts_metadata2, "_ts_metadata");
|
|
2750
2860
|
var BaseMessageInput = class {
|
|
2751
2861
|
id;
|
|
2752
2862
|
createdAt;
|
|
2753
2863
|
};
|
|
2754
2864
|
__name(BaseMessageInput, "BaseMessageInput");
|
|
2755
|
-
|
|
2756
|
-
(0,
|
|
2757
|
-
|
|
2865
|
+
_ts_decorate2([
|
|
2866
|
+
(0, import_type_graphql3.Field)(() => String),
|
|
2867
|
+
_ts_metadata2("design:type", String)
|
|
2758
2868
|
], BaseMessageInput.prototype, "id", void 0);
|
|
2759
|
-
|
|
2760
|
-
(0,
|
|
2761
|
-
|
|
2869
|
+
_ts_decorate2([
|
|
2870
|
+
(0, import_type_graphql3.Field)(() => Date),
|
|
2871
|
+
_ts_metadata2("design:type", typeof Date === "undefined" ? Object : Date)
|
|
2762
2872
|
], BaseMessageInput.prototype, "createdAt", void 0);
|
|
2763
|
-
BaseMessageInput =
|
|
2764
|
-
(0,
|
|
2873
|
+
BaseMessageInput = _ts_decorate2([
|
|
2874
|
+
(0, import_type_graphql3.InputType)()
|
|
2765
2875
|
], BaseMessageInput);
|
|
2766
2876
|
|
|
2767
2877
|
// src/graphql/types/converted/index.ts
|
|
@@ -2890,7 +3000,13 @@ var RuntimeEventTypes;
|
|
|
2890
3000
|
RuntimeEventTypes2["ActionExecutionEnd"] = "ActionExecutionEnd";
|
|
2891
3001
|
RuntimeEventTypes2["ActionExecutionResult"] = "ActionExecutionResult";
|
|
2892
3002
|
RuntimeEventTypes2["AgentStateMessage"] = "AgentStateMessage";
|
|
3003
|
+
RuntimeEventTypes2["MetaEvent"] = "MetaEvent";
|
|
2893
3004
|
})(RuntimeEventTypes || (RuntimeEventTypes = {}));
|
|
3005
|
+
var RuntimeMetaEventName;
|
|
3006
|
+
(function(RuntimeMetaEventName2) {
|
|
3007
|
+
RuntimeMetaEventName2["LangGraphInterruptEvent"] = "LangGraphInterruptEvent";
|
|
3008
|
+
RuntimeMetaEventName2["LangGraphInterruptResumeEvent"] = "LangGraphInterruptResumeEvent";
|
|
3009
|
+
})(RuntimeMetaEventName || (RuntimeMetaEventName = {}));
|
|
2894
3010
|
var RuntimeEventSubject = class extends import_rxjs2.ReplaySubject {
|
|
2895
3011
|
constructor() {
|
|
2896
3012
|
super();
|
|
@@ -3311,9 +3427,15 @@ please use an LLM adapter instead.`
|
|
|
3311
3427
|
const agents = this.remoteEndpointDefinitions.reduce(async (acc, endpoint) => {
|
|
3312
3428
|
const agents2 = await acc;
|
|
3313
3429
|
if (endpoint.type === EndpointType.LangGraphPlatform) {
|
|
3430
|
+
const propertyHeaders = graphqlContext.properties.authorization ? {
|
|
3431
|
+
authorization: `Bearer ${graphqlContext.properties.authorization}`
|
|
3432
|
+
} : null;
|
|
3314
3433
|
const client = new import_langgraph_sdk2.Client({
|
|
3315
3434
|
apiUrl: endpoint.deploymentUrl,
|
|
3316
|
-
apiKey: endpoint.langsmithApiKey
|
|
3435
|
+
apiKey: endpoint.langsmithApiKey,
|
|
3436
|
+
defaultHeaders: {
|
|
3437
|
+
...propertyHeaders
|
|
3438
|
+
}
|
|
3317
3439
|
});
|
|
3318
3440
|
const data = await client.assistants.search();
|
|
3319
3441
|
const endpointAgents = (data ?? []).map((entry) => ({
|
|
@@ -3376,9 +3498,15 @@ please use an LLM adapter instead.`
|
|
|
3376
3498
|
}
|
|
3377
3499
|
const headers = createHeaders(null, graphqlContext);
|
|
3378
3500
|
if (agentWithEndpoint.endpoint.type === EndpointType.LangGraphPlatform) {
|
|
3501
|
+
const propertyHeaders = graphqlContext.properties.authorization ? {
|
|
3502
|
+
authorization: `Bearer ${graphqlContext.properties.authorization}`
|
|
3503
|
+
} : null;
|
|
3379
3504
|
const client = new import_langgraph_sdk2.Client({
|
|
3380
3505
|
apiUrl: agentWithEndpoint.endpoint.deploymentUrl,
|
|
3381
|
-
apiKey: agentWithEndpoint.endpoint.langsmithApiKey
|
|
3506
|
+
apiKey: agentWithEndpoint.endpoint.langsmithApiKey,
|
|
3507
|
+
defaultHeaders: {
|
|
3508
|
+
...propertyHeaders
|
|
3509
|
+
}
|
|
3382
3510
|
});
|
|
3383
3511
|
let state = {};
|
|
3384
3512
|
try {
|
|
@@ -3424,7 +3552,7 @@ please use an LLM adapter instead.`
|
|
|
3424
3552
|
}
|
|
3425
3553
|
async processAgentRequest(request) {
|
|
3426
3554
|
var _a;
|
|
3427
|
-
const { messages: rawMessages, outputMessagesPromise, graphqlContext, agentSession, threadId: threadIdFromRequest } = request;
|
|
3555
|
+
const { messages: rawMessages, outputMessagesPromise, graphqlContext, agentSession, threadId: threadIdFromRequest, metaEvents } = request;
|
|
3428
3556
|
const { agentName, nodeName } = agentSession;
|
|
3429
3557
|
const threadId = threadIdFromRequest ?? agentSession.threadId;
|
|
3430
3558
|
const serverSideActions = await this.getServerSideActions(request);
|
|
@@ -3456,7 +3584,8 @@ please use an LLM adapter instead.`
|
|
|
3456
3584
|
name: agentName,
|
|
3457
3585
|
threadId,
|
|
3458
3586
|
nodeName,
|
|
3459
|
-
actionInputsWithoutAgents
|
|
3587
|
+
actionInputsWithoutAgents,
|
|
3588
|
+
metaEvents
|
|
3460
3589
|
});
|
|
3461
3590
|
eventSource.stream(async (eventStream$) => {
|
|
3462
3591
|
(0, import_rxjs3.from)(stream).subscribe({
|
|
@@ -3566,18 +3695,18 @@ function resolveEndpointType(endpoint) {
|
|
|
3566
3695
|
__name(resolveEndpointType, "resolveEndpointType");
|
|
3567
3696
|
|
|
3568
3697
|
// src/lib/integrations/shared.ts
|
|
3569
|
-
var
|
|
3698
|
+
var import_type_graphql26 = require("type-graphql");
|
|
3570
3699
|
|
|
3571
3700
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
3572
|
-
var
|
|
3701
|
+
var import_type_graphql20 = require("type-graphql");
|
|
3573
3702
|
var import_rxjs4 = require("rxjs");
|
|
3574
3703
|
|
|
3575
3704
|
// src/graphql/inputs/generate-copilot-response.input.ts
|
|
3576
|
-
var
|
|
3705
|
+
var import_type_graphql14 = require("type-graphql");
|
|
3577
3706
|
|
|
3578
3707
|
// src/graphql/inputs/message.input.ts
|
|
3579
|
-
var
|
|
3580
|
-
function
|
|
3708
|
+
var import_type_graphql4 = require("type-graphql");
|
|
3709
|
+
function _ts_decorate3(decorators, target, key, desc) {
|
|
3581
3710
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3582
3711
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3583
3712
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3587,12 +3716,12 @@ function _ts_decorate2(decorators, target, key, desc) {
|
|
|
3587
3716
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3588
3717
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3589
3718
|
}
|
|
3590
|
-
__name(
|
|
3591
|
-
function
|
|
3719
|
+
__name(_ts_decorate3, "_ts_decorate");
|
|
3720
|
+
function _ts_metadata3(k, v) {
|
|
3592
3721
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3593
3722
|
return Reflect.metadata(k, v);
|
|
3594
3723
|
}
|
|
3595
|
-
__name(
|
|
3724
|
+
__name(_ts_metadata3, "_ts_metadata");
|
|
3596
3725
|
var MessageInput = class extends BaseMessageInput {
|
|
3597
3726
|
textMessage;
|
|
3598
3727
|
actionExecutionMessage;
|
|
@@ -3600,32 +3729,32 @@ var MessageInput = class extends BaseMessageInput {
|
|
|
3600
3729
|
agentStateMessage;
|
|
3601
3730
|
};
|
|
3602
3731
|
__name(MessageInput, "MessageInput");
|
|
3603
|
-
|
|
3604
|
-
(0,
|
|
3732
|
+
_ts_decorate3([
|
|
3733
|
+
(0, import_type_graphql4.Field)(() => TextMessageInput, {
|
|
3605
3734
|
nullable: true
|
|
3606
3735
|
}),
|
|
3607
|
-
|
|
3736
|
+
_ts_metadata3("design:type", typeof TextMessageInput === "undefined" ? Object : TextMessageInput)
|
|
3608
3737
|
], MessageInput.prototype, "textMessage", void 0);
|
|
3609
|
-
|
|
3610
|
-
(0,
|
|
3738
|
+
_ts_decorate3([
|
|
3739
|
+
(0, import_type_graphql4.Field)(() => ActionExecutionMessageInput, {
|
|
3611
3740
|
nullable: true
|
|
3612
3741
|
}),
|
|
3613
|
-
|
|
3742
|
+
_ts_metadata3("design:type", typeof ActionExecutionMessageInput === "undefined" ? Object : ActionExecutionMessageInput)
|
|
3614
3743
|
], MessageInput.prototype, "actionExecutionMessage", void 0);
|
|
3615
|
-
|
|
3616
|
-
(0,
|
|
3744
|
+
_ts_decorate3([
|
|
3745
|
+
(0, import_type_graphql4.Field)(() => ResultMessageInput, {
|
|
3617
3746
|
nullable: true
|
|
3618
3747
|
}),
|
|
3619
|
-
|
|
3748
|
+
_ts_metadata3("design:type", typeof ResultMessageInput === "undefined" ? Object : ResultMessageInput)
|
|
3620
3749
|
], MessageInput.prototype, "resultMessage", void 0);
|
|
3621
|
-
|
|
3622
|
-
(0,
|
|
3750
|
+
_ts_decorate3([
|
|
3751
|
+
(0, import_type_graphql4.Field)(() => AgentStateMessageInput, {
|
|
3623
3752
|
nullable: true
|
|
3624
3753
|
}),
|
|
3625
|
-
|
|
3754
|
+
_ts_metadata3("design:type", typeof AgentStateMessageInput === "undefined" ? Object : AgentStateMessageInput)
|
|
3626
3755
|
], MessageInput.prototype, "agentStateMessage", void 0);
|
|
3627
|
-
MessageInput =
|
|
3628
|
-
(0,
|
|
3756
|
+
MessageInput = _ts_decorate3([
|
|
3757
|
+
(0, import_type_graphql4.InputType)()
|
|
3629
3758
|
], MessageInput);
|
|
3630
3759
|
var TextMessageInput = class {
|
|
3631
3760
|
content;
|
|
@@ -3633,22 +3762,22 @@ var TextMessageInput = class {
|
|
|
3633
3762
|
role;
|
|
3634
3763
|
};
|
|
3635
3764
|
__name(TextMessageInput, "TextMessageInput");
|
|
3636
|
-
|
|
3637
|
-
(0,
|
|
3638
|
-
|
|
3765
|
+
_ts_decorate3([
|
|
3766
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3767
|
+
_ts_metadata3("design:type", String)
|
|
3639
3768
|
], TextMessageInput.prototype, "content", void 0);
|
|
3640
|
-
|
|
3641
|
-
(0,
|
|
3769
|
+
_ts_decorate3([
|
|
3770
|
+
(0, import_type_graphql4.Field)(() => String, {
|
|
3642
3771
|
nullable: true
|
|
3643
3772
|
}),
|
|
3644
|
-
|
|
3773
|
+
_ts_metadata3("design:type", String)
|
|
3645
3774
|
], TextMessageInput.prototype, "parentMessageId", void 0);
|
|
3646
|
-
|
|
3647
|
-
(0,
|
|
3648
|
-
|
|
3775
|
+
_ts_decorate3([
|
|
3776
|
+
(0, import_type_graphql4.Field)(() => MessageRole),
|
|
3777
|
+
_ts_metadata3("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
3649
3778
|
], TextMessageInput.prototype, "role", void 0);
|
|
3650
|
-
TextMessageInput =
|
|
3651
|
-
(0,
|
|
3779
|
+
TextMessageInput = _ts_decorate3([
|
|
3780
|
+
(0, import_type_graphql4.InputType)()
|
|
3652
3781
|
], TextMessageInput);
|
|
3653
3782
|
var ActionExecutionMessageInput = class {
|
|
3654
3783
|
name;
|
|
@@ -3657,29 +3786,29 @@ var ActionExecutionMessageInput = class {
|
|
|
3657
3786
|
scope;
|
|
3658
3787
|
};
|
|
3659
3788
|
__name(ActionExecutionMessageInput, "ActionExecutionMessageInput");
|
|
3660
|
-
|
|
3661
|
-
(0,
|
|
3662
|
-
|
|
3789
|
+
_ts_decorate3([
|
|
3790
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3791
|
+
_ts_metadata3("design:type", String)
|
|
3663
3792
|
], ActionExecutionMessageInput.prototype, "name", void 0);
|
|
3664
|
-
|
|
3665
|
-
(0,
|
|
3666
|
-
|
|
3793
|
+
_ts_decorate3([
|
|
3794
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3795
|
+
_ts_metadata3("design:type", String)
|
|
3667
3796
|
], ActionExecutionMessageInput.prototype, "arguments", void 0);
|
|
3668
|
-
|
|
3669
|
-
(0,
|
|
3797
|
+
_ts_decorate3([
|
|
3798
|
+
(0, import_type_graphql4.Field)(() => String, {
|
|
3670
3799
|
nullable: true
|
|
3671
3800
|
}),
|
|
3672
|
-
|
|
3801
|
+
_ts_metadata3("design:type", String)
|
|
3673
3802
|
], ActionExecutionMessageInput.prototype, "parentMessageId", void 0);
|
|
3674
|
-
|
|
3675
|
-
(0,
|
|
3803
|
+
_ts_decorate3([
|
|
3804
|
+
(0, import_type_graphql4.Field)(() => String, {
|
|
3676
3805
|
nullable: true,
|
|
3677
3806
|
deprecationReason: "This field will be removed in a future version"
|
|
3678
3807
|
}),
|
|
3679
|
-
|
|
3808
|
+
_ts_metadata3("design:type", typeof String === "undefined" ? Object : String)
|
|
3680
3809
|
], ActionExecutionMessageInput.prototype, "scope", void 0);
|
|
3681
|
-
ActionExecutionMessageInput =
|
|
3682
|
-
(0,
|
|
3810
|
+
ActionExecutionMessageInput = _ts_decorate3([
|
|
3811
|
+
(0, import_type_graphql4.InputType)()
|
|
3683
3812
|
], ActionExecutionMessageInput);
|
|
3684
3813
|
var ResultMessageInput = class {
|
|
3685
3814
|
actionExecutionId;
|
|
@@ -3688,26 +3817,26 @@ var ResultMessageInput = class {
|
|
|
3688
3817
|
result;
|
|
3689
3818
|
};
|
|
3690
3819
|
__name(ResultMessageInput, "ResultMessageInput");
|
|
3691
|
-
|
|
3692
|
-
(0,
|
|
3693
|
-
|
|
3820
|
+
_ts_decorate3([
|
|
3821
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3822
|
+
_ts_metadata3("design:type", String)
|
|
3694
3823
|
], ResultMessageInput.prototype, "actionExecutionId", void 0);
|
|
3695
|
-
|
|
3696
|
-
(0,
|
|
3697
|
-
|
|
3824
|
+
_ts_decorate3([
|
|
3825
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3826
|
+
_ts_metadata3("design:type", String)
|
|
3698
3827
|
], ResultMessageInput.prototype, "actionName", void 0);
|
|
3699
|
-
|
|
3700
|
-
(0,
|
|
3828
|
+
_ts_decorate3([
|
|
3829
|
+
(0, import_type_graphql4.Field)(() => String, {
|
|
3701
3830
|
nullable: true
|
|
3702
3831
|
}),
|
|
3703
|
-
|
|
3832
|
+
_ts_metadata3("design:type", String)
|
|
3704
3833
|
], ResultMessageInput.prototype, "parentMessageId", void 0);
|
|
3705
|
-
|
|
3706
|
-
(0,
|
|
3707
|
-
|
|
3834
|
+
_ts_decorate3([
|
|
3835
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3836
|
+
_ts_metadata3("design:type", String)
|
|
3708
3837
|
], ResultMessageInput.prototype, "result", void 0);
|
|
3709
|
-
ResultMessageInput =
|
|
3710
|
-
(0,
|
|
3838
|
+
ResultMessageInput = _ts_decorate3([
|
|
3839
|
+
(0, import_type_graphql4.InputType)()
|
|
3711
3840
|
], ResultMessageInput);
|
|
3712
3841
|
var AgentStateMessageInput = class {
|
|
3713
3842
|
threadId;
|
|
@@ -3720,48 +3849,48 @@ var AgentStateMessageInput = class {
|
|
|
3720
3849
|
active;
|
|
3721
3850
|
};
|
|
3722
3851
|
__name(AgentStateMessageInput, "AgentStateMessageInput");
|
|
3723
|
-
|
|
3724
|
-
(0,
|
|
3725
|
-
|
|
3852
|
+
_ts_decorate3([
|
|
3853
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3854
|
+
_ts_metadata3("design:type", String)
|
|
3726
3855
|
], AgentStateMessageInput.prototype, "threadId", void 0);
|
|
3727
|
-
|
|
3728
|
-
(0,
|
|
3729
|
-
|
|
3856
|
+
_ts_decorate3([
|
|
3857
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3858
|
+
_ts_metadata3("design:type", String)
|
|
3730
3859
|
], AgentStateMessageInput.prototype, "agentName", void 0);
|
|
3731
|
-
|
|
3732
|
-
(0,
|
|
3733
|
-
|
|
3860
|
+
_ts_decorate3([
|
|
3861
|
+
(0, import_type_graphql4.Field)(() => MessageRole),
|
|
3862
|
+
_ts_metadata3("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
3734
3863
|
], AgentStateMessageInput.prototype, "role", void 0);
|
|
3735
|
-
|
|
3736
|
-
(0,
|
|
3737
|
-
|
|
3864
|
+
_ts_decorate3([
|
|
3865
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3866
|
+
_ts_metadata3("design:type", String)
|
|
3738
3867
|
], AgentStateMessageInput.prototype, "state", void 0);
|
|
3739
|
-
|
|
3740
|
-
(0,
|
|
3741
|
-
|
|
3868
|
+
_ts_decorate3([
|
|
3869
|
+
(0, import_type_graphql4.Field)(() => Boolean),
|
|
3870
|
+
_ts_metadata3("design:type", Boolean)
|
|
3742
3871
|
], AgentStateMessageInput.prototype, "running", void 0);
|
|
3743
|
-
|
|
3744
|
-
(0,
|
|
3745
|
-
|
|
3872
|
+
_ts_decorate3([
|
|
3873
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3874
|
+
_ts_metadata3("design:type", String)
|
|
3746
3875
|
], AgentStateMessageInput.prototype, "nodeName", void 0);
|
|
3747
|
-
|
|
3748
|
-
(0,
|
|
3749
|
-
|
|
3876
|
+
_ts_decorate3([
|
|
3877
|
+
(0, import_type_graphql4.Field)(() => String),
|
|
3878
|
+
_ts_metadata3("design:type", String)
|
|
3750
3879
|
], AgentStateMessageInput.prototype, "runId", void 0);
|
|
3751
|
-
|
|
3752
|
-
(0,
|
|
3753
|
-
|
|
3880
|
+
_ts_decorate3([
|
|
3881
|
+
(0, import_type_graphql4.Field)(() => Boolean),
|
|
3882
|
+
_ts_metadata3("design:type", Boolean)
|
|
3754
3883
|
], AgentStateMessageInput.prototype, "active", void 0);
|
|
3755
|
-
AgentStateMessageInput =
|
|
3756
|
-
(0,
|
|
3884
|
+
AgentStateMessageInput = _ts_decorate3([
|
|
3885
|
+
(0, import_type_graphql4.InputType)()
|
|
3757
3886
|
], AgentStateMessageInput);
|
|
3758
3887
|
|
|
3759
3888
|
// src/graphql/inputs/frontend.input.ts
|
|
3760
|
-
var
|
|
3889
|
+
var import_type_graphql6 = require("type-graphql");
|
|
3761
3890
|
|
|
3762
3891
|
// src/graphql/inputs/action.input.ts
|
|
3763
|
-
var
|
|
3764
|
-
function
|
|
3892
|
+
var import_type_graphql5 = require("type-graphql");
|
|
3893
|
+
function _ts_decorate4(decorators, target, key, desc) {
|
|
3765
3894
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3766
3895
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3767
3896
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3771,12 +3900,12 @@ function _ts_decorate3(decorators, target, key, desc) {
|
|
|
3771
3900
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3772
3901
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3773
3902
|
}
|
|
3774
|
-
__name(
|
|
3775
|
-
function
|
|
3903
|
+
__name(_ts_decorate4, "_ts_decorate");
|
|
3904
|
+
function _ts_metadata4(k, v) {
|
|
3776
3905
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3777
3906
|
return Reflect.metadata(k, v);
|
|
3778
3907
|
}
|
|
3779
|
-
__name(
|
|
3908
|
+
__name(_ts_metadata4, "_ts_metadata");
|
|
3780
3909
|
var ActionInput = class {
|
|
3781
3910
|
name;
|
|
3782
3911
|
description;
|
|
@@ -3784,30 +3913,30 @@ var ActionInput = class {
|
|
|
3784
3913
|
available;
|
|
3785
3914
|
};
|
|
3786
3915
|
__name(ActionInput, "ActionInput");
|
|
3787
|
-
|
|
3788
|
-
(0,
|
|
3789
|
-
|
|
3916
|
+
_ts_decorate4([
|
|
3917
|
+
(0, import_type_graphql5.Field)(() => String),
|
|
3918
|
+
_ts_metadata4("design:type", String)
|
|
3790
3919
|
], ActionInput.prototype, "name", void 0);
|
|
3791
|
-
|
|
3792
|
-
(0,
|
|
3793
|
-
|
|
3920
|
+
_ts_decorate4([
|
|
3921
|
+
(0, import_type_graphql5.Field)(() => String),
|
|
3922
|
+
_ts_metadata4("design:type", String)
|
|
3794
3923
|
], ActionInput.prototype, "description", void 0);
|
|
3795
|
-
|
|
3796
|
-
(0,
|
|
3797
|
-
|
|
3924
|
+
_ts_decorate4([
|
|
3925
|
+
(0, import_type_graphql5.Field)(() => String),
|
|
3926
|
+
_ts_metadata4("design:type", String)
|
|
3798
3927
|
], ActionInput.prototype, "jsonSchema", void 0);
|
|
3799
|
-
|
|
3800
|
-
(0,
|
|
3928
|
+
_ts_decorate4([
|
|
3929
|
+
(0, import_type_graphql5.Field)(() => ActionInputAvailability, {
|
|
3801
3930
|
nullable: true
|
|
3802
3931
|
}),
|
|
3803
|
-
|
|
3932
|
+
_ts_metadata4("design:type", typeof ActionInputAvailability === "undefined" ? Object : ActionInputAvailability)
|
|
3804
3933
|
], ActionInput.prototype, "available", void 0);
|
|
3805
|
-
ActionInput =
|
|
3806
|
-
(0,
|
|
3934
|
+
ActionInput = _ts_decorate4([
|
|
3935
|
+
(0, import_type_graphql5.InputType)()
|
|
3807
3936
|
], ActionInput);
|
|
3808
3937
|
|
|
3809
3938
|
// src/graphql/inputs/frontend.input.ts
|
|
3810
|
-
function
|
|
3939
|
+
function _ts_decorate5(decorators, target, key, desc) {
|
|
3811
3940
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3812
3941
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3813
3942
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3817,46 +3946,46 @@ function _ts_decorate4(decorators, target, key, desc) {
|
|
|
3817
3946
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3818
3947
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3819
3948
|
}
|
|
3820
|
-
__name(
|
|
3821
|
-
function
|
|
3949
|
+
__name(_ts_decorate5, "_ts_decorate");
|
|
3950
|
+
function _ts_metadata5(k, v) {
|
|
3822
3951
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3823
3952
|
return Reflect.metadata(k, v);
|
|
3824
3953
|
}
|
|
3825
|
-
__name(
|
|
3954
|
+
__name(_ts_metadata5, "_ts_metadata");
|
|
3826
3955
|
var FrontendInput = class {
|
|
3827
3956
|
toDeprecate_fullContext;
|
|
3828
3957
|
actions;
|
|
3829
3958
|
url;
|
|
3830
3959
|
};
|
|
3831
3960
|
__name(FrontendInput, "FrontendInput");
|
|
3832
|
-
|
|
3833
|
-
(0,
|
|
3961
|
+
_ts_decorate5([
|
|
3962
|
+
(0, import_type_graphql6.Field)(() => String, {
|
|
3834
3963
|
nullable: true
|
|
3835
3964
|
}),
|
|
3836
|
-
|
|
3965
|
+
_ts_metadata5("design:type", String)
|
|
3837
3966
|
], FrontendInput.prototype, "toDeprecate_fullContext", void 0);
|
|
3838
|
-
|
|
3839
|
-
(0,
|
|
3967
|
+
_ts_decorate5([
|
|
3968
|
+
(0, import_type_graphql6.Field)(() => [
|
|
3840
3969
|
ActionInput
|
|
3841
3970
|
]),
|
|
3842
|
-
|
|
3971
|
+
_ts_metadata5("design:type", Array)
|
|
3843
3972
|
], FrontendInput.prototype, "actions", void 0);
|
|
3844
|
-
|
|
3845
|
-
(0,
|
|
3973
|
+
_ts_decorate5([
|
|
3974
|
+
(0, import_type_graphql6.Field)(() => String, {
|
|
3846
3975
|
nullable: true
|
|
3847
3976
|
}),
|
|
3848
|
-
|
|
3977
|
+
_ts_metadata5("design:type", String)
|
|
3849
3978
|
], FrontendInput.prototype, "url", void 0);
|
|
3850
|
-
FrontendInput =
|
|
3851
|
-
(0,
|
|
3979
|
+
FrontendInput = _ts_decorate5([
|
|
3980
|
+
(0, import_type_graphql6.InputType)()
|
|
3852
3981
|
], FrontendInput);
|
|
3853
3982
|
|
|
3854
3983
|
// src/graphql/inputs/cloud.input.ts
|
|
3855
|
-
var
|
|
3984
|
+
var import_type_graphql8 = require("type-graphql");
|
|
3856
3985
|
|
|
3857
3986
|
// src/graphql/inputs/cloud-guardrails.input.ts
|
|
3858
|
-
var
|
|
3859
|
-
function
|
|
3987
|
+
var import_type_graphql7 = require("type-graphql");
|
|
3988
|
+
function _ts_decorate6(decorators, target, key, desc) {
|
|
3860
3989
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3861
3990
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3862
3991
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3866,52 +3995,52 @@ function _ts_decorate5(decorators, target, key, desc) {
|
|
|
3866
3995
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3867
3996
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3868
3997
|
}
|
|
3869
|
-
__name(
|
|
3870
|
-
function
|
|
3998
|
+
__name(_ts_decorate6, "_ts_decorate");
|
|
3999
|
+
function _ts_metadata6(k, v) {
|
|
3871
4000
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3872
4001
|
return Reflect.metadata(k, v);
|
|
3873
4002
|
}
|
|
3874
|
-
__name(
|
|
4003
|
+
__name(_ts_metadata6, "_ts_metadata");
|
|
3875
4004
|
var GuardrailsRuleInput = class {
|
|
3876
4005
|
allowList = [];
|
|
3877
4006
|
denyList = [];
|
|
3878
4007
|
};
|
|
3879
4008
|
__name(GuardrailsRuleInput, "GuardrailsRuleInput");
|
|
3880
|
-
|
|
3881
|
-
(0,
|
|
4009
|
+
_ts_decorate6([
|
|
4010
|
+
(0, import_type_graphql7.Field)(() => [
|
|
3882
4011
|
String
|
|
3883
4012
|
], {
|
|
3884
4013
|
nullable: true
|
|
3885
4014
|
}),
|
|
3886
|
-
|
|
4015
|
+
_ts_metadata6("design:type", Array)
|
|
3887
4016
|
], GuardrailsRuleInput.prototype, "allowList", void 0);
|
|
3888
|
-
|
|
3889
|
-
(0,
|
|
4017
|
+
_ts_decorate6([
|
|
4018
|
+
(0, import_type_graphql7.Field)(() => [
|
|
3890
4019
|
String
|
|
3891
4020
|
], {
|
|
3892
4021
|
nullable: true
|
|
3893
4022
|
}),
|
|
3894
|
-
|
|
4023
|
+
_ts_metadata6("design:type", Array)
|
|
3895
4024
|
], GuardrailsRuleInput.prototype, "denyList", void 0);
|
|
3896
|
-
GuardrailsRuleInput =
|
|
3897
|
-
(0,
|
|
4025
|
+
GuardrailsRuleInput = _ts_decorate6([
|
|
4026
|
+
(0, import_type_graphql7.InputType)()
|
|
3898
4027
|
], GuardrailsRuleInput);
|
|
3899
4028
|
var GuardrailsInput = class {
|
|
3900
4029
|
inputValidationRules;
|
|
3901
4030
|
};
|
|
3902
4031
|
__name(GuardrailsInput, "GuardrailsInput");
|
|
3903
|
-
|
|
3904
|
-
(0,
|
|
4032
|
+
_ts_decorate6([
|
|
4033
|
+
(0, import_type_graphql7.Field)(() => GuardrailsRuleInput, {
|
|
3905
4034
|
nullable: false
|
|
3906
4035
|
}),
|
|
3907
|
-
|
|
4036
|
+
_ts_metadata6("design:type", typeof GuardrailsRuleInput === "undefined" ? Object : GuardrailsRuleInput)
|
|
3908
4037
|
], GuardrailsInput.prototype, "inputValidationRules", void 0);
|
|
3909
|
-
GuardrailsInput =
|
|
3910
|
-
(0,
|
|
4038
|
+
GuardrailsInput = _ts_decorate6([
|
|
4039
|
+
(0, import_type_graphql7.InputType)()
|
|
3911
4040
|
], GuardrailsInput);
|
|
3912
4041
|
|
|
3913
4042
|
// src/graphql/inputs/cloud.input.ts
|
|
3914
|
-
function
|
|
4043
|
+
function _ts_decorate7(decorators, target, key, desc) {
|
|
3915
4044
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3916
4045
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3917
4046
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3921,29 +4050,29 @@ function _ts_decorate6(decorators, target, key, desc) {
|
|
|
3921
4050
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3922
4051
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3923
4052
|
}
|
|
3924
|
-
__name(
|
|
3925
|
-
function
|
|
4053
|
+
__name(_ts_decorate7, "_ts_decorate");
|
|
4054
|
+
function _ts_metadata7(k, v) {
|
|
3926
4055
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3927
4056
|
return Reflect.metadata(k, v);
|
|
3928
4057
|
}
|
|
3929
|
-
__name(
|
|
4058
|
+
__name(_ts_metadata7, "_ts_metadata");
|
|
3930
4059
|
var CloudInput = class {
|
|
3931
4060
|
guardrails;
|
|
3932
4061
|
};
|
|
3933
4062
|
__name(CloudInput, "CloudInput");
|
|
3934
|
-
|
|
3935
|
-
(0,
|
|
4063
|
+
_ts_decorate7([
|
|
4064
|
+
(0, import_type_graphql8.Field)(() => GuardrailsInput, {
|
|
3936
4065
|
nullable: true
|
|
3937
4066
|
}),
|
|
3938
|
-
|
|
4067
|
+
_ts_metadata7("design:type", typeof GuardrailsInput === "undefined" ? Object : GuardrailsInput)
|
|
3939
4068
|
], CloudInput.prototype, "guardrails", void 0);
|
|
3940
|
-
CloudInput =
|
|
3941
|
-
(0,
|
|
4069
|
+
CloudInput = _ts_decorate7([
|
|
4070
|
+
(0, import_type_graphql8.InputType)()
|
|
3942
4071
|
], CloudInput);
|
|
3943
4072
|
|
|
3944
4073
|
// src/graphql/inputs/forwarded-parameters.input.ts
|
|
3945
|
-
var
|
|
3946
|
-
function
|
|
4074
|
+
var import_type_graphql9 = require("type-graphql");
|
|
4075
|
+
function _ts_decorate8(decorators, target, key, desc) {
|
|
3947
4076
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3948
4077
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3949
4078
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3953,12 +4082,12 @@ function _ts_decorate7(decorators, target, key, desc) {
|
|
|
3953
4082
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3954
4083
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3955
4084
|
}
|
|
3956
|
-
__name(
|
|
3957
|
-
function
|
|
4085
|
+
__name(_ts_decorate8, "_ts_decorate");
|
|
4086
|
+
function _ts_metadata8(k, v) {
|
|
3958
4087
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3959
4088
|
return Reflect.metadata(k, v);
|
|
3960
4089
|
}
|
|
3961
|
-
__name(
|
|
4090
|
+
__name(_ts_metadata8, "_ts_metadata");
|
|
3962
4091
|
var ForwardedParametersInput = class {
|
|
3963
4092
|
model;
|
|
3964
4093
|
maxTokens;
|
|
@@ -3968,51 +4097,51 @@ var ForwardedParametersInput = class {
|
|
|
3968
4097
|
temperature;
|
|
3969
4098
|
};
|
|
3970
4099
|
__name(ForwardedParametersInput, "ForwardedParametersInput");
|
|
3971
|
-
|
|
3972
|
-
(0,
|
|
4100
|
+
_ts_decorate8([
|
|
4101
|
+
(0, import_type_graphql9.Field)(() => String, {
|
|
3973
4102
|
nullable: true
|
|
3974
4103
|
}),
|
|
3975
|
-
|
|
4104
|
+
_ts_metadata8("design:type", String)
|
|
3976
4105
|
], ForwardedParametersInput.prototype, "model", void 0);
|
|
3977
|
-
|
|
3978
|
-
(0,
|
|
4106
|
+
_ts_decorate8([
|
|
4107
|
+
(0, import_type_graphql9.Field)(() => Number, {
|
|
3979
4108
|
nullable: true
|
|
3980
4109
|
}),
|
|
3981
|
-
|
|
4110
|
+
_ts_metadata8("design:type", Number)
|
|
3982
4111
|
], ForwardedParametersInput.prototype, "maxTokens", void 0);
|
|
3983
|
-
|
|
3984
|
-
(0,
|
|
4112
|
+
_ts_decorate8([
|
|
4113
|
+
(0, import_type_graphql9.Field)(() => [
|
|
3985
4114
|
String
|
|
3986
4115
|
], {
|
|
3987
4116
|
nullable: true
|
|
3988
4117
|
}),
|
|
3989
|
-
|
|
4118
|
+
_ts_metadata8("design:type", Array)
|
|
3990
4119
|
], ForwardedParametersInput.prototype, "stop", void 0);
|
|
3991
|
-
|
|
3992
|
-
(0,
|
|
4120
|
+
_ts_decorate8([
|
|
4121
|
+
(0, import_type_graphql9.Field)(() => String, {
|
|
3993
4122
|
nullable: true
|
|
3994
4123
|
}),
|
|
3995
|
-
|
|
4124
|
+
_ts_metadata8("design:type", typeof String === "undefined" ? Object : String)
|
|
3996
4125
|
], ForwardedParametersInput.prototype, "toolChoice", void 0);
|
|
3997
|
-
|
|
3998
|
-
(0,
|
|
4126
|
+
_ts_decorate8([
|
|
4127
|
+
(0, import_type_graphql9.Field)(() => String, {
|
|
3999
4128
|
nullable: true
|
|
4000
4129
|
}),
|
|
4001
|
-
|
|
4130
|
+
_ts_metadata8("design:type", String)
|
|
4002
4131
|
], ForwardedParametersInput.prototype, "toolChoiceFunctionName", void 0);
|
|
4003
|
-
|
|
4004
|
-
(0,
|
|
4132
|
+
_ts_decorate8([
|
|
4133
|
+
(0, import_type_graphql9.Field)(() => Number, {
|
|
4005
4134
|
nullable: true
|
|
4006
4135
|
}),
|
|
4007
|
-
|
|
4136
|
+
_ts_metadata8("design:type", Number)
|
|
4008
4137
|
], ForwardedParametersInput.prototype, "temperature", void 0);
|
|
4009
|
-
ForwardedParametersInput =
|
|
4010
|
-
(0,
|
|
4138
|
+
ForwardedParametersInput = _ts_decorate8([
|
|
4139
|
+
(0, import_type_graphql9.InputType)()
|
|
4011
4140
|
], ForwardedParametersInput);
|
|
4012
4141
|
|
|
4013
4142
|
// src/graphql/inputs/agent-session.input.ts
|
|
4014
|
-
var
|
|
4015
|
-
function
|
|
4143
|
+
var import_type_graphql10 = require("type-graphql");
|
|
4144
|
+
function _ts_decorate9(decorators, target, key, desc) {
|
|
4016
4145
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4017
4146
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4018
4147
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4022,41 +4151,41 @@ function _ts_decorate8(decorators, target, key, desc) {
|
|
|
4022
4151
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4023
4152
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4024
4153
|
}
|
|
4025
|
-
__name(
|
|
4026
|
-
function
|
|
4154
|
+
__name(_ts_decorate9, "_ts_decorate");
|
|
4155
|
+
function _ts_metadata9(k, v) {
|
|
4027
4156
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4028
4157
|
return Reflect.metadata(k, v);
|
|
4029
4158
|
}
|
|
4030
|
-
__name(
|
|
4159
|
+
__name(_ts_metadata9, "_ts_metadata");
|
|
4031
4160
|
var AgentSessionInput = class {
|
|
4032
4161
|
agentName;
|
|
4033
4162
|
threadId;
|
|
4034
4163
|
nodeName;
|
|
4035
4164
|
};
|
|
4036
4165
|
__name(AgentSessionInput, "AgentSessionInput");
|
|
4037
|
-
|
|
4038
|
-
(0,
|
|
4039
|
-
|
|
4166
|
+
_ts_decorate9([
|
|
4167
|
+
(0, import_type_graphql10.Field)(() => String),
|
|
4168
|
+
_ts_metadata9("design:type", String)
|
|
4040
4169
|
], AgentSessionInput.prototype, "agentName", void 0);
|
|
4041
|
-
|
|
4042
|
-
(0,
|
|
4170
|
+
_ts_decorate9([
|
|
4171
|
+
(0, import_type_graphql10.Field)(() => String, {
|
|
4043
4172
|
nullable: true
|
|
4044
4173
|
}),
|
|
4045
|
-
|
|
4174
|
+
_ts_metadata9("design:type", String)
|
|
4046
4175
|
], AgentSessionInput.prototype, "threadId", void 0);
|
|
4047
|
-
|
|
4048
|
-
(0,
|
|
4176
|
+
_ts_decorate9([
|
|
4177
|
+
(0, import_type_graphql10.Field)(() => String, {
|
|
4049
4178
|
nullable: true
|
|
4050
4179
|
}),
|
|
4051
|
-
|
|
4180
|
+
_ts_metadata9("design:type", String)
|
|
4052
4181
|
], AgentSessionInput.prototype, "nodeName", void 0);
|
|
4053
|
-
AgentSessionInput =
|
|
4054
|
-
(0,
|
|
4182
|
+
AgentSessionInput = _ts_decorate9([
|
|
4183
|
+
(0, import_type_graphql10.InputType)()
|
|
4055
4184
|
], AgentSessionInput);
|
|
4056
4185
|
|
|
4057
4186
|
// src/graphql/inputs/agent-state.input.ts
|
|
4058
|
-
var
|
|
4059
|
-
function
|
|
4187
|
+
var import_type_graphql11 = require("type-graphql");
|
|
4188
|
+
function _ts_decorate10(decorators, target, key, desc) {
|
|
4060
4189
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4061
4190
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4062
4191
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4066,32 +4195,32 @@ function _ts_decorate9(decorators, target, key, desc) {
|
|
|
4066
4195
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4067
4196
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4068
4197
|
}
|
|
4069
|
-
__name(
|
|
4070
|
-
function
|
|
4198
|
+
__name(_ts_decorate10, "_ts_decorate");
|
|
4199
|
+
function _ts_metadata10(k, v) {
|
|
4071
4200
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4072
4201
|
return Reflect.metadata(k, v);
|
|
4073
4202
|
}
|
|
4074
|
-
__name(
|
|
4203
|
+
__name(_ts_metadata10, "_ts_metadata");
|
|
4075
4204
|
var AgentStateInput = class {
|
|
4076
4205
|
agentName;
|
|
4077
4206
|
state;
|
|
4078
4207
|
};
|
|
4079
4208
|
__name(AgentStateInput, "AgentStateInput");
|
|
4080
|
-
|
|
4081
|
-
(0,
|
|
4082
|
-
|
|
4209
|
+
_ts_decorate10([
|
|
4210
|
+
(0, import_type_graphql11.Field)(() => String),
|
|
4211
|
+
_ts_metadata10("design:type", String)
|
|
4083
4212
|
], AgentStateInput.prototype, "agentName", void 0);
|
|
4084
|
-
|
|
4085
|
-
(0,
|
|
4086
|
-
|
|
4213
|
+
_ts_decorate10([
|
|
4214
|
+
(0, import_type_graphql11.Field)(() => String),
|
|
4215
|
+
_ts_metadata10("design:type", String)
|
|
4087
4216
|
], AgentStateInput.prototype, "state", void 0);
|
|
4088
|
-
AgentStateInput =
|
|
4089
|
-
(0,
|
|
4217
|
+
AgentStateInput = _ts_decorate10([
|
|
4218
|
+
(0, import_type_graphql11.InputType)()
|
|
4090
4219
|
], AgentStateInput);
|
|
4091
4220
|
|
|
4092
4221
|
// src/graphql/inputs/extensions.input.ts
|
|
4093
|
-
var
|
|
4094
|
-
function
|
|
4222
|
+
var import_type_graphql12 = require("type-graphql");
|
|
4223
|
+
function _ts_decorate11(decorators, target, key, desc) {
|
|
4095
4224
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4096
4225
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4097
4226
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4101,48 +4230,95 @@ function _ts_decorate10(decorators, target, key, desc) {
|
|
|
4101
4230
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4102
4231
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4103
4232
|
}
|
|
4104
|
-
__name(
|
|
4105
|
-
function
|
|
4233
|
+
__name(_ts_decorate11, "_ts_decorate");
|
|
4234
|
+
function _ts_metadata11(k, v) {
|
|
4106
4235
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4107
4236
|
return Reflect.metadata(k, v);
|
|
4108
4237
|
}
|
|
4109
|
-
__name(
|
|
4238
|
+
__name(_ts_metadata11, "_ts_metadata");
|
|
4110
4239
|
var ExtensionsInput = class {
|
|
4111
4240
|
openaiAssistantAPI;
|
|
4112
4241
|
};
|
|
4113
4242
|
__name(ExtensionsInput, "ExtensionsInput");
|
|
4114
|
-
|
|
4115
|
-
(0,
|
|
4243
|
+
_ts_decorate11([
|
|
4244
|
+
(0, import_type_graphql12.Field)(() => OpenAIApiAssistantAPIInput, {
|
|
4116
4245
|
nullable: true
|
|
4117
4246
|
}),
|
|
4118
|
-
|
|
4247
|
+
_ts_metadata11("design:type", typeof OpenAIApiAssistantAPIInput === "undefined" ? Object : OpenAIApiAssistantAPIInput)
|
|
4119
4248
|
], ExtensionsInput.prototype, "openaiAssistantAPI", void 0);
|
|
4120
|
-
ExtensionsInput =
|
|
4121
|
-
(0,
|
|
4249
|
+
ExtensionsInput = _ts_decorate11([
|
|
4250
|
+
(0, import_type_graphql12.InputType)()
|
|
4122
4251
|
], ExtensionsInput);
|
|
4123
4252
|
var OpenAIApiAssistantAPIInput = class {
|
|
4124
4253
|
runId;
|
|
4125
4254
|
threadId;
|
|
4126
4255
|
};
|
|
4127
4256
|
__name(OpenAIApiAssistantAPIInput, "OpenAIApiAssistantAPIInput");
|
|
4128
|
-
|
|
4129
|
-
(0,
|
|
4257
|
+
_ts_decorate11([
|
|
4258
|
+
(0, import_type_graphql12.Field)(() => String, {
|
|
4130
4259
|
nullable: true
|
|
4131
4260
|
}),
|
|
4132
|
-
|
|
4261
|
+
_ts_metadata11("design:type", String)
|
|
4133
4262
|
], OpenAIApiAssistantAPIInput.prototype, "runId", void 0);
|
|
4134
|
-
|
|
4135
|
-
(0,
|
|
4263
|
+
_ts_decorate11([
|
|
4264
|
+
(0, import_type_graphql12.Field)(() => String, {
|
|
4136
4265
|
nullable: true
|
|
4137
4266
|
}),
|
|
4138
|
-
|
|
4267
|
+
_ts_metadata11("design:type", String)
|
|
4139
4268
|
], OpenAIApiAssistantAPIInput.prototype, "threadId", void 0);
|
|
4140
|
-
OpenAIApiAssistantAPIInput =
|
|
4141
|
-
(0,
|
|
4269
|
+
OpenAIApiAssistantAPIInput = _ts_decorate11([
|
|
4270
|
+
(0, import_type_graphql12.InputType)()
|
|
4142
4271
|
], OpenAIApiAssistantAPIInput);
|
|
4143
4272
|
|
|
4273
|
+
// src/graphql/inputs/meta-event.input.ts
|
|
4274
|
+
var import_type_graphql13 = require("type-graphql");
|
|
4275
|
+
function _ts_decorate12(decorators, target, key, desc) {
|
|
4276
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4277
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4278
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
4279
|
+
else
|
|
4280
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
4281
|
+
if (d = decorators[i])
|
|
4282
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4283
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4284
|
+
}
|
|
4285
|
+
__name(_ts_decorate12, "_ts_decorate");
|
|
4286
|
+
function _ts_metadata12(k, v) {
|
|
4287
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4288
|
+
return Reflect.metadata(k, v);
|
|
4289
|
+
}
|
|
4290
|
+
__name(_ts_metadata12, "_ts_metadata");
|
|
4291
|
+
var MetaEventInput = class {
|
|
4292
|
+
type = "MetaEvent";
|
|
4293
|
+
name;
|
|
4294
|
+
value;
|
|
4295
|
+
response;
|
|
4296
|
+
};
|
|
4297
|
+
__name(MetaEventInput, "MetaEventInput");
|
|
4298
|
+
_ts_decorate12([
|
|
4299
|
+
(0, import_type_graphql13.Field)(() => String),
|
|
4300
|
+
_ts_metadata12("design:type", String)
|
|
4301
|
+
], MetaEventInput.prototype, "type", void 0);
|
|
4302
|
+
_ts_decorate12([
|
|
4303
|
+
(0, import_type_graphql13.Field)(() => MetaEventName),
|
|
4304
|
+
_ts_metadata12("design:type", typeof MetaEventName === "undefined" ? Object : MetaEventName)
|
|
4305
|
+
], MetaEventInput.prototype, "name", void 0);
|
|
4306
|
+
_ts_decorate12([
|
|
4307
|
+
(0, import_type_graphql13.Field)(() => String),
|
|
4308
|
+
_ts_metadata12("design:type", String)
|
|
4309
|
+
], MetaEventInput.prototype, "value", void 0);
|
|
4310
|
+
_ts_decorate12([
|
|
4311
|
+
(0, import_type_graphql13.Field)(() => String, {
|
|
4312
|
+
nullable: true
|
|
4313
|
+
}),
|
|
4314
|
+
_ts_metadata12("design:type", String)
|
|
4315
|
+
], MetaEventInput.prototype, "response", void 0);
|
|
4316
|
+
MetaEventInput = _ts_decorate12([
|
|
4317
|
+
(0, import_type_graphql13.InputType)()
|
|
4318
|
+
], MetaEventInput);
|
|
4319
|
+
|
|
4144
4320
|
// src/graphql/inputs/generate-copilot-response.input.ts
|
|
4145
|
-
function
|
|
4321
|
+
function _ts_decorate13(decorators, target, key, desc) {
|
|
4146
4322
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4147
4323
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4148
4324
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4152,24 +4328,24 @@ function _ts_decorate11(decorators, target, key, desc) {
|
|
|
4152
4328
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4153
4329
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4154
4330
|
}
|
|
4155
|
-
__name(
|
|
4156
|
-
function
|
|
4331
|
+
__name(_ts_decorate13, "_ts_decorate");
|
|
4332
|
+
function _ts_metadata13(k, v) {
|
|
4157
4333
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4158
4334
|
return Reflect.metadata(k, v);
|
|
4159
4335
|
}
|
|
4160
|
-
__name(
|
|
4336
|
+
__name(_ts_metadata13, "_ts_metadata");
|
|
4161
4337
|
var GenerateCopilotResponseMetadataInput = class {
|
|
4162
4338
|
requestType;
|
|
4163
4339
|
};
|
|
4164
4340
|
__name(GenerateCopilotResponseMetadataInput, "GenerateCopilotResponseMetadataInput");
|
|
4165
|
-
|
|
4166
|
-
(0,
|
|
4341
|
+
_ts_decorate13([
|
|
4342
|
+
(0, import_type_graphql14.Field)(() => CopilotRequestType, {
|
|
4167
4343
|
nullable: true
|
|
4168
4344
|
}),
|
|
4169
|
-
|
|
4345
|
+
_ts_metadata13("design:type", typeof CopilotRequestType === "undefined" ? Object : CopilotRequestType)
|
|
4170
4346
|
], GenerateCopilotResponseMetadataInput.prototype, "requestType", void 0);
|
|
4171
|
-
GenerateCopilotResponseMetadataInput =
|
|
4172
|
-
(0,
|
|
4347
|
+
GenerateCopilotResponseMetadataInput = _ts_decorate13([
|
|
4348
|
+
(0, import_type_graphql14.InputType)()
|
|
4173
4349
|
], GenerateCopilotResponseMetadataInput);
|
|
4174
4350
|
var GenerateCopilotResponseInput = class {
|
|
4175
4351
|
metadata;
|
|
@@ -4183,84 +4359,93 @@ var GenerateCopilotResponseInput = class {
|
|
|
4183
4359
|
agentState;
|
|
4184
4360
|
agentStates;
|
|
4185
4361
|
extensions;
|
|
4362
|
+
metaEvents;
|
|
4186
4363
|
};
|
|
4187
4364
|
__name(GenerateCopilotResponseInput, "GenerateCopilotResponseInput");
|
|
4188
|
-
|
|
4189
|
-
(0,
|
|
4365
|
+
_ts_decorate13([
|
|
4366
|
+
(0, import_type_graphql14.Field)(() => GenerateCopilotResponseMetadataInput, {
|
|
4190
4367
|
nullable: false
|
|
4191
4368
|
}),
|
|
4192
|
-
|
|
4369
|
+
_ts_metadata13("design:type", typeof GenerateCopilotResponseMetadataInput === "undefined" ? Object : GenerateCopilotResponseMetadataInput)
|
|
4193
4370
|
], GenerateCopilotResponseInput.prototype, "metadata", void 0);
|
|
4194
|
-
|
|
4195
|
-
(0,
|
|
4371
|
+
_ts_decorate13([
|
|
4372
|
+
(0, import_type_graphql14.Field)(() => String, {
|
|
4196
4373
|
nullable: true
|
|
4197
4374
|
}),
|
|
4198
|
-
|
|
4375
|
+
_ts_metadata13("design:type", String)
|
|
4199
4376
|
], GenerateCopilotResponseInput.prototype, "threadId", void 0);
|
|
4200
|
-
|
|
4201
|
-
(0,
|
|
4377
|
+
_ts_decorate13([
|
|
4378
|
+
(0, import_type_graphql14.Field)(() => String, {
|
|
4202
4379
|
nullable: true
|
|
4203
4380
|
}),
|
|
4204
|
-
|
|
4381
|
+
_ts_metadata13("design:type", String)
|
|
4205
4382
|
], GenerateCopilotResponseInput.prototype, "runId", void 0);
|
|
4206
|
-
|
|
4207
|
-
(0,
|
|
4383
|
+
_ts_decorate13([
|
|
4384
|
+
(0, import_type_graphql14.Field)(() => [
|
|
4208
4385
|
MessageInput
|
|
4209
4386
|
]),
|
|
4210
|
-
|
|
4387
|
+
_ts_metadata13("design:type", Array)
|
|
4211
4388
|
], GenerateCopilotResponseInput.prototype, "messages", void 0);
|
|
4212
|
-
|
|
4213
|
-
(0,
|
|
4214
|
-
|
|
4389
|
+
_ts_decorate13([
|
|
4390
|
+
(0, import_type_graphql14.Field)(() => FrontendInput),
|
|
4391
|
+
_ts_metadata13("design:type", typeof FrontendInput === "undefined" ? Object : FrontendInput)
|
|
4215
4392
|
], GenerateCopilotResponseInput.prototype, "frontend", void 0);
|
|
4216
|
-
|
|
4217
|
-
(0,
|
|
4393
|
+
_ts_decorate13([
|
|
4394
|
+
(0, import_type_graphql14.Field)(() => CloudInput, {
|
|
4218
4395
|
nullable: true
|
|
4219
4396
|
}),
|
|
4220
|
-
|
|
4397
|
+
_ts_metadata13("design:type", typeof CloudInput === "undefined" ? Object : CloudInput)
|
|
4221
4398
|
], GenerateCopilotResponseInput.prototype, "cloud", void 0);
|
|
4222
|
-
|
|
4223
|
-
(0,
|
|
4399
|
+
_ts_decorate13([
|
|
4400
|
+
(0, import_type_graphql14.Field)(() => ForwardedParametersInput, {
|
|
4224
4401
|
nullable: true
|
|
4225
4402
|
}),
|
|
4226
|
-
|
|
4403
|
+
_ts_metadata13("design:type", typeof ForwardedParametersInput === "undefined" ? Object : ForwardedParametersInput)
|
|
4227
4404
|
], GenerateCopilotResponseInput.prototype, "forwardedParameters", void 0);
|
|
4228
|
-
|
|
4229
|
-
(0,
|
|
4405
|
+
_ts_decorate13([
|
|
4406
|
+
(0, import_type_graphql14.Field)(() => AgentSessionInput, {
|
|
4230
4407
|
nullable: true
|
|
4231
4408
|
}),
|
|
4232
|
-
|
|
4409
|
+
_ts_metadata13("design:type", typeof AgentSessionInput === "undefined" ? Object : AgentSessionInput)
|
|
4233
4410
|
], GenerateCopilotResponseInput.prototype, "agentSession", void 0);
|
|
4234
|
-
|
|
4235
|
-
(0,
|
|
4411
|
+
_ts_decorate13([
|
|
4412
|
+
(0, import_type_graphql14.Field)(() => AgentStateInput, {
|
|
4236
4413
|
nullable: true
|
|
4237
4414
|
}),
|
|
4238
|
-
|
|
4415
|
+
_ts_metadata13("design:type", typeof AgentStateInput === "undefined" ? Object : AgentStateInput)
|
|
4239
4416
|
], GenerateCopilotResponseInput.prototype, "agentState", void 0);
|
|
4240
|
-
|
|
4241
|
-
(0,
|
|
4417
|
+
_ts_decorate13([
|
|
4418
|
+
(0, import_type_graphql14.Field)(() => [
|
|
4242
4419
|
AgentStateInput
|
|
4243
4420
|
], {
|
|
4244
4421
|
nullable: true
|
|
4245
4422
|
}),
|
|
4246
|
-
|
|
4423
|
+
_ts_metadata13("design:type", Array)
|
|
4247
4424
|
], GenerateCopilotResponseInput.prototype, "agentStates", void 0);
|
|
4248
|
-
|
|
4249
|
-
(0,
|
|
4425
|
+
_ts_decorate13([
|
|
4426
|
+
(0, import_type_graphql14.Field)(() => ExtensionsInput, {
|
|
4250
4427
|
nullable: true
|
|
4251
4428
|
}),
|
|
4252
|
-
|
|
4429
|
+
_ts_metadata13("design:type", typeof ExtensionsInput === "undefined" ? Object : ExtensionsInput)
|
|
4253
4430
|
], GenerateCopilotResponseInput.prototype, "extensions", void 0);
|
|
4254
|
-
|
|
4255
|
-
(0,
|
|
4431
|
+
_ts_decorate13([
|
|
4432
|
+
(0, import_type_graphql14.Field)(() => [
|
|
4433
|
+
MetaEventInput
|
|
4434
|
+
], {
|
|
4435
|
+
nullable: true
|
|
4436
|
+
}),
|
|
4437
|
+
_ts_metadata13("design:type", Array)
|
|
4438
|
+
], GenerateCopilotResponseInput.prototype, "metaEvents", void 0);
|
|
4439
|
+
GenerateCopilotResponseInput = _ts_decorate13([
|
|
4440
|
+
(0, import_type_graphql14.InputType)()
|
|
4256
4441
|
], GenerateCopilotResponseInput);
|
|
4257
4442
|
|
|
4258
4443
|
// src/graphql/types/copilot-response.type.ts
|
|
4259
|
-
var
|
|
4444
|
+
var import_type_graphql18 = require("type-graphql");
|
|
4260
4445
|
|
|
4261
4446
|
// src/graphql/types/message-status.type.ts
|
|
4262
|
-
var
|
|
4263
|
-
function
|
|
4447
|
+
var import_type_graphql15 = require("type-graphql");
|
|
4448
|
+
function _ts_decorate14(decorators, target, key, desc) {
|
|
4264
4449
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4265
4450
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4266
4451
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4270,58 +4455,58 @@ function _ts_decorate12(decorators, target, key, desc) {
|
|
|
4270
4455
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4271
4456
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4272
4457
|
}
|
|
4273
|
-
__name(
|
|
4274
|
-
function
|
|
4458
|
+
__name(_ts_decorate14, "_ts_decorate");
|
|
4459
|
+
function _ts_metadata14(k, v) {
|
|
4275
4460
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4276
4461
|
return Reflect.metadata(k, v);
|
|
4277
4462
|
}
|
|
4278
|
-
__name(
|
|
4463
|
+
__name(_ts_metadata14, "_ts_metadata");
|
|
4279
4464
|
var MessageStatusCode;
|
|
4280
4465
|
(function(MessageStatusCode2) {
|
|
4281
4466
|
MessageStatusCode2["Pending"] = "pending";
|
|
4282
4467
|
MessageStatusCode2["Success"] = "success";
|
|
4283
4468
|
MessageStatusCode2["Failed"] = "failed";
|
|
4284
4469
|
})(MessageStatusCode || (MessageStatusCode = {}));
|
|
4285
|
-
(0,
|
|
4470
|
+
(0, import_type_graphql15.registerEnumType)(MessageStatusCode, {
|
|
4286
4471
|
name: "MessageStatusCode"
|
|
4287
4472
|
});
|
|
4288
4473
|
var BaseMessageStatus = /* @__PURE__ */ __name(class BaseMessageStatus2 {
|
|
4289
4474
|
code;
|
|
4290
4475
|
}, "BaseMessageStatus");
|
|
4291
|
-
|
|
4292
|
-
(0,
|
|
4293
|
-
|
|
4476
|
+
_ts_decorate14([
|
|
4477
|
+
(0, import_type_graphql15.Field)(() => MessageStatusCode),
|
|
4478
|
+
_ts_metadata14("design:type", String)
|
|
4294
4479
|
], BaseMessageStatus.prototype, "code", void 0);
|
|
4295
|
-
BaseMessageStatus =
|
|
4296
|
-
(0,
|
|
4480
|
+
BaseMessageStatus = _ts_decorate14([
|
|
4481
|
+
(0, import_type_graphql15.ObjectType)()
|
|
4297
4482
|
], BaseMessageStatus);
|
|
4298
4483
|
var PendingMessageStatus = class extends BaseMessageStatus {
|
|
4299
4484
|
code = "pending";
|
|
4300
4485
|
};
|
|
4301
4486
|
__name(PendingMessageStatus, "PendingMessageStatus");
|
|
4302
|
-
PendingMessageStatus =
|
|
4303
|
-
(0,
|
|
4487
|
+
PendingMessageStatus = _ts_decorate14([
|
|
4488
|
+
(0, import_type_graphql15.ObjectType)()
|
|
4304
4489
|
], PendingMessageStatus);
|
|
4305
4490
|
var SuccessMessageStatus = class extends BaseMessageStatus {
|
|
4306
4491
|
code = "success";
|
|
4307
4492
|
};
|
|
4308
4493
|
__name(SuccessMessageStatus, "SuccessMessageStatus");
|
|
4309
|
-
SuccessMessageStatus =
|
|
4310
|
-
(0,
|
|
4494
|
+
SuccessMessageStatus = _ts_decorate14([
|
|
4495
|
+
(0, import_type_graphql15.ObjectType)()
|
|
4311
4496
|
], SuccessMessageStatus);
|
|
4312
4497
|
var FailedMessageStatus = class extends BaseMessageStatus {
|
|
4313
4498
|
code = "failed";
|
|
4314
4499
|
reason;
|
|
4315
4500
|
};
|
|
4316
4501
|
__name(FailedMessageStatus, "FailedMessageStatus");
|
|
4317
|
-
|
|
4318
|
-
(0,
|
|
4319
|
-
|
|
4502
|
+
_ts_decorate14([
|
|
4503
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
4504
|
+
_ts_metadata14("design:type", String)
|
|
4320
4505
|
], FailedMessageStatus.prototype, "reason", void 0);
|
|
4321
|
-
FailedMessageStatus =
|
|
4322
|
-
(0,
|
|
4506
|
+
FailedMessageStatus = _ts_decorate14([
|
|
4507
|
+
(0, import_type_graphql15.ObjectType)()
|
|
4323
4508
|
], FailedMessageStatus);
|
|
4324
|
-
var MessageStatusUnion = (0,
|
|
4509
|
+
var MessageStatusUnion = (0, import_type_graphql15.createUnionType)({
|
|
4325
4510
|
name: "MessageStatus",
|
|
4326
4511
|
types: () => [
|
|
4327
4512
|
PendingMessageStatus,
|
|
@@ -4332,8 +4517,8 @@ var MessageStatusUnion = (0, import_type_graphql13.createUnionType)({
|
|
|
4332
4517
|
|
|
4333
4518
|
// src/graphql/types/response-status.type.ts
|
|
4334
4519
|
var import_graphql_scalars = require("graphql-scalars");
|
|
4335
|
-
var
|
|
4336
|
-
function
|
|
4520
|
+
var import_type_graphql16 = require("type-graphql");
|
|
4521
|
+
function _ts_decorate15(decorators, target, key, desc) {
|
|
4337
4522
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4338
4523
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4339
4524
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4343,30 +4528,30 @@ function _ts_decorate13(decorators, target, key, desc) {
|
|
|
4343
4528
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4344
4529
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4345
4530
|
}
|
|
4346
|
-
__name(
|
|
4347
|
-
function
|
|
4531
|
+
__name(_ts_decorate15, "_ts_decorate");
|
|
4532
|
+
function _ts_metadata15(k, v) {
|
|
4348
4533
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4349
4534
|
return Reflect.metadata(k, v);
|
|
4350
4535
|
}
|
|
4351
|
-
__name(
|
|
4536
|
+
__name(_ts_metadata15, "_ts_metadata");
|
|
4352
4537
|
var ResponseStatusCode;
|
|
4353
4538
|
(function(ResponseStatusCode2) {
|
|
4354
4539
|
ResponseStatusCode2["Pending"] = "pending";
|
|
4355
4540
|
ResponseStatusCode2["Success"] = "success";
|
|
4356
4541
|
ResponseStatusCode2["Failed"] = "failed";
|
|
4357
4542
|
})(ResponseStatusCode || (ResponseStatusCode = {}));
|
|
4358
|
-
(0,
|
|
4543
|
+
(0, import_type_graphql16.registerEnumType)(ResponseStatusCode, {
|
|
4359
4544
|
name: "ResponseStatusCode"
|
|
4360
4545
|
});
|
|
4361
4546
|
var BaseResponseStatus = /* @__PURE__ */ __name(class BaseResponseStatus2 {
|
|
4362
4547
|
code;
|
|
4363
4548
|
}, "BaseResponseStatus");
|
|
4364
|
-
|
|
4365
|
-
(0,
|
|
4366
|
-
|
|
4549
|
+
_ts_decorate15([
|
|
4550
|
+
(0, import_type_graphql16.Field)(() => ResponseStatusCode),
|
|
4551
|
+
_ts_metadata15("design:type", String)
|
|
4367
4552
|
], BaseResponseStatus.prototype, "code", void 0);
|
|
4368
|
-
BaseResponseStatus =
|
|
4369
|
-
(0,
|
|
4553
|
+
BaseResponseStatus = _ts_decorate15([
|
|
4554
|
+
(0, import_type_graphql16.InterfaceType)({
|
|
4370
4555
|
resolveType(value) {
|
|
4371
4556
|
if (value.code === "success") {
|
|
4372
4557
|
return SuccessResponseStatus;
|
|
@@ -4378,14 +4563,14 @@ BaseResponseStatus = _ts_decorate13([
|
|
|
4378
4563
|
return void 0;
|
|
4379
4564
|
}
|
|
4380
4565
|
}),
|
|
4381
|
-
(0,
|
|
4566
|
+
(0, import_type_graphql16.ObjectType)()
|
|
4382
4567
|
], BaseResponseStatus);
|
|
4383
4568
|
var PendingResponseStatus = class extends BaseResponseStatus {
|
|
4384
4569
|
code = "pending";
|
|
4385
4570
|
};
|
|
4386
4571
|
__name(PendingResponseStatus, "PendingResponseStatus");
|
|
4387
|
-
PendingResponseStatus =
|
|
4388
|
-
(0,
|
|
4572
|
+
PendingResponseStatus = _ts_decorate15([
|
|
4573
|
+
(0, import_type_graphql16.ObjectType)({
|
|
4389
4574
|
implements: BaseResponseStatus
|
|
4390
4575
|
})
|
|
4391
4576
|
], PendingResponseStatus);
|
|
@@ -4393,8 +4578,8 @@ var SuccessResponseStatus = class extends BaseResponseStatus {
|
|
|
4393
4578
|
code = "success";
|
|
4394
4579
|
};
|
|
4395
4580
|
__name(SuccessResponseStatus, "SuccessResponseStatus");
|
|
4396
|
-
SuccessResponseStatus =
|
|
4397
|
-
(0,
|
|
4581
|
+
SuccessResponseStatus = _ts_decorate15([
|
|
4582
|
+
(0, import_type_graphql16.ObjectType)({
|
|
4398
4583
|
implements: BaseResponseStatus
|
|
4399
4584
|
})
|
|
4400
4585
|
], SuccessResponseStatus);
|
|
@@ -4404,7 +4589,7 @@ var FailedResponseStatusReason;
|
|
|
4404
4589
|
FailedResponseStatusReason2["MESSAGE_STREAM_INTERRUPTED"] = "MESSAGE_STREAM_INTERRUPTED";
|
|
4405
4590
|
FailedResponseStatusReason2["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
4406
4591
|
})(FailedResponseStatusReason || (FailedResponseStatusReason = {}));
|
|
4407
|
-
(0,
|
|
4592
|
+
(0, import_type_graphql16.registerEnumType)(FailedResponseStatusReason, {
|
|
4408
4593
|
name: "FailedResponseStatusReason"
|
|
4409
4594
|
});
|
|
4410
4595
|
var FailedResponseStatus = class extends BaseResponseStatus {
|
|
@@ -4413,22 +4598,22 @@ var FailedResponseStatus = class extends BaseResponseStatus {
|
|
|
4413
4598
|
details = null;
|
|
4414
4599
|
};
|
|
4415
4600
|
__name(FailedResponseStatus, "FailedResponseStatus");
|
|
4416
|
-
|
|
4417
|
-
(0,
|
|
4418
|
-
|
|
4601
|
+
_ts_decorate15([
|
|
4602
|
+
(0, import_type_graphql16.Field)(() => FailedResponseStatusReason),
|
|
4603
|
+
_ts_metadata15("design:type", String)
|
|
4419
4604
|
], FailedResponseStatus.prototype, "reason", void 0);
|
|
4420
|
-
|
|
4421
|
-
(0,
|
|
4605
|
+
_ts_decorate15([
|
|
4606
|
+
(0, import_type_graphql16.Field)(() => import_graphql_scalars.GraphQLJSON, {
|
|
4422
4607
|
nullable: true
|
|
4423
4608
|
}),
|
|
4424
|
-
|
|
4609
|
+
_ts_metadata15("design:type", typeof Record === "undefined" ? Object : Record)
|
|
4425
4610
|
], FailedResponseStatus.prototype, "details", void 0);
|
|
4426
|
-
FailedResponseStatus =
|
|
4427
|
-
(0,
|
|
4611
|
+
FailedResponseStatus = _ts_decorate15([
|
|
4612
|
+
(0, import_type_graphql16.ObjectType)({
|
|
4428
4613
|
implements: BaseResponseStatus
|
|
4429
4614
|
})
|
|
4430
4615
|
], FailedResponseStatus);
|
|
4431
|
-
var ResponseStatusUnion = (0,
|
|
4616
|
+
var ResponseStatusUnion = (0, import_type_graphql16.createUnionType)({
|
|
4432
4617
|
name: "ResponseStatus",
|
|
4433
4618
|
types: () => [
|
|
4434
4619
|
PendingResponseStatus,
|
|
@@ -4438,8 +4623,8 @@ var ResponseStatusUnion = (0, import_type_graphql14.createUnionType)({
|
|
|
4438
4623
|
});
|
|
4439
4624
|
|
|
4440
4625
|
// src/graphql/types/extensions-response.type.ts
|
|
4441
|
-
var
|
|
4442
|
-
function
|
|
4626
|
+
var import_type_graphql17 = require("type-graphql");
|
|
4627
|
+
function _ts_decorate16(decorators, target, key, desc) {
|
|
4443
4628
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4444
4629
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4445
4630
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4449,48 +4634,48 @@ function _ts_decorate14(decorators, target, key, desc) {
|
|
|
4449
4634
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4450
4635
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4451
4636
|
}
|
|
4452
|
-
__name(
|
|
4453
|
-
function
|
|
4637
|
+
__name(_ts_decorate16, "_ts_decorate");
|
|
4638
|
+
function _ts_metadata16(k, v) {
|
|
4454
4639
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4455
4640
|
return Reflect.metadata(k, v);
|
|
4456
4641
|
}
|
|
4457
|
-
__name(
|
|
4642
|
+
__name(_ts_metadata16, "_ts_metadata");
|
|
4458
4643
|
var ExtensionsResponse = class {
|
|
4459
4644
|
openaiAssistantAPI;
|
|
4460
4645
|
};
|
|
4461
4646
|
__name(ExtensionsResponse, "ExtensionsResponse");
|
|
4462
|
-
|
|
4463
|
-
(0,
|
|
4647
|
+
_ts_decorate16([
|
|
4648
|
+
(0, import_type_graphql17.Field)(() => OpenAIApiAssistantAPIResponse, {
|
|
4464
4649
|
nullable: true
|
|
4465
4650
|
}),
|
|
4466
|
-
|
|
4651
|
+
_ts_metadata16("design:type", typeof OpenAIApiAssistantAPIResponse === "undefined" ? Object : OpenAIApiAssistantAPIResponse)
|
|
4467
4652
|
], ExtensionsResponse.prototype, "openaiAssistantAPI", void 0);
|
|
4468
|
-
ExtensionsResponse =
|
|
4469
|
-
(0,
|
|
4653
|
+
ExtensionsResponse = _ts_decorate16([
|
|
4654
|
+
(0, import_type_graphql17.ObjectType)()
|
|
4470
4655
|
], ExtensionsResponse);
|
|
4471
4656
|
var OpenAIApiAssistantAPIResponse = class {
|
|
4472
4657
|
runId;
|
|
4473
4658
|
threadId;
|
|
4474
4659
|
};
|
|
4475
4660
|
__name(OpenAIApiAssistantAPIResponse, "OpenAIApiAssistantAPIResponse");
|
|
4476
|
-
|
|
4477
|
-
(0,
|
|
4661
|
+
_ts_decorate16([
|
|
4662
|
+
(0, import_type_graphql17.Field)(() => String, {
|
|
4478
4663
|
nullable: true
|
|
4479
4664
|
}),
|
|
4480
|
-
|
|
4665
|
+
_ts_metadata16("design:type", String)
|
|
4481
4666
|
], OpenAIApiAssistantAPIResponse.prototype, "runId", void 0);
|
|
4482
|
-
|
|
4483
|
-
(0,
|
|
4667
|
+
_ts_decorate16([
|
|
4668
|
+
(0, import_type_graphql17.Field)(() => String, {
|
|
4484
4669
|
nullable: true
|
|
4485
4670
|
}),
|
|
4486
|
-
|
|
4671
|
+
_ts_metadata16("design:type", String)
|
|
4487
4672
|
], OpenAIApiAssistantAPIResponse.prototype, "threadId", void 0);
|
|
4488
|
-
OpenAIApiAssistantAPIResponse =
|
|
4489
|
-
(0,
|
|
4673
|
+
OpenAIApiAssistantAPIResponse = _ts_decorate16([
|
|
4674
|
+
(0, import_type_graphql17.ObjectType)()
|
|
4490
4675
|
], OpenAIApiAssistantAPIResponse);
|
|
4491
4676
|
|
|
4492
4677
|
// src/graphql/types/copilot-response.type.ts
|
|
4493
|
-
function
|
|
4678
|
+
function _ts_decorate17(decorators, target, key, desc) {
|
|
4494
4679
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4495
4680
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4496
4681
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4500,32 +4685,32 @@ function _ts_decorate15(decorators, target, key, desc) {
|
|
|
4500
4685
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4501
4686
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4502
4687
|
}
|
|
4503
|
-
__name(
|
|
4504
|
-
function
|
|
4688
|
+
__name(_ts_decorate17, "_ts_decorate");
|
|
4689
|
+
function _ts_metadata17(k, v) {
|
|
4505
4690
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4506
4691
|
return Reflect.metadata(k, v);
|
|
4507
4692
|
}
|
|
4508
|
-
__name(
|
|
4693
|
+
__name(_ts_metadata17, "_ts_metadata");
|
|
4509
4694
|
var BaseMessageOutput = class {
|
|
4510
4695
|
id;
|
|
4511
4696
|
createdAt;
|
|
4512
4697
|
status;
|
|
4513
4698
|
};
|
|
4514
4699
|
__name(BaseMessageOutput, "BaseMessageOutput");
|
|
4515
|
-
|
|
4516
|
-
(0,
|
|
4517
|
-
|
|
4700
|
+
_ts_decorate17([
|
|
4701
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4702
|
+
_ts_metadata17("design:type", String)
|
|
4518
4703
|
], BaseMessageOutput.prototype, "id", void 0);
|
|
4519
|
-
|
|
4520
|
-
(0,
|
|
4521
|
-
|
|
4704
|
+
_ts_decorate17([
|
|
4705
|
+
(0, import_type_graphql18.Field)(() => Date),
|
|
4706
|
+
_ts_metadata17("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4522
4707
|
], BaseMessageOutput.prototype, "createdAt", void 0);
|
|
4523
|
-
|
|
4524
|
-
(0,
|
|
4525
|
-
|
|
4708
|
+
_ts_decorate17([
|
|
4709
|
+
(0, import_type_graphql18.Field)(() => MessageStatusUnion),
|
|
4710
|
+
_ts_metadata17("design:type", Object)
|
|
4526
4711
|
], BaseMessageOutput.prototype, "status", void 0);
|
|
4527
|
-
BaseMessageOutput =
|
|
4528
|
-
(0,
|
|
4712
|
+
BaseMessageOutput = _ts_decorate17([
|
|
4713
|
+
(0, import_type_graphql18.InterfaceType)({
|
|
4529
4714
|
resolveType(value) {
|
|
4530
4715
|
if (value.hasOwnProperty("content")) {
|
|
4531
4716
|
return TextMessageOutput;
|
|
@@ -4535,6 +4720,8 @@ BaseMessageOutput = _ts_decorate15([
|
|
|
4535
4720
|
return ResultMessageOutput;
|
|
4536
4721
|
} else if (value.hasOwnProperty("state")) {
|
|
4537
4722
|
return AgentStateMessageOutput;
|
|
4723
|
+
} else if (value.name === MetaEventName.LangGraphInterruptEvent) {
|
|
4724
|
+
return LangGraphInterruptEvent;
|
|
4538
4725
|
}
|
|
4539
4726
|
return void 0;
|
|
4540
4727
|
}
|
|
@@ -4546,24 +4733,24 @@ var TextMessageOutput = class {
|
|
|
4546
4733
|
parentMessageId;
|
|
4547
4734
|
};
|
|
4548
4735
|
__name(TextMessageOutput, "TextMessageOutput");
|
|
4549
|
-
|
|
4550
|
-
(0,
|
|
4551
|
-
|
|
4736
|
+
_ts_decorate17([
|
|
4737
|
+
(0, import_type_graphql18.Field)(() => MessageRole),
|
|
4738
|
+
_ts_metadata17("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
4552
4739
|
], TextMessageOutput.prototype, "role", void 0);
|
|
4553
|
-
|
|
4554
|
-
(0,
|
|
4740
|
+
_ts_decorate17([
|
|
4741
|
+
(0, import_type_graphql18.Field)(() => [
|
|
4555
4742
|
String
|
|
4556
4743
|
]),
|
|
4557
|
-
|
|
4744
|
+
_ts_metadata17("design:type", Array)
|
|
4558
4745
|
], TextMessageOutput.prototype, "content", void 0);
|
|
4559
|
-
|
|
4560
|
-
(0,
|
|
4746
|
+
_ts_decorate17([
|
|
4747
|
+
(0, import_type_graphql18.Field)(() => String, {
|
|
4561
4748
|
nullable: true
|
|
4562
4749
|
}),
|
|
4563
|
-
|
|
4750
|
+
_ts_metadata17("design:type", String)
|
|
4564
4751
|
], TextMessageOutput.prototype, "parentMessageId", void 0);
|
|
4565
|
-
TextMessageOutput =
|
|
4566
|
-
(0,
|
|
4752
|
+
TextMessageOutput = _ts_decorate17([
|
|
4753
|
+
(0, import_type_graphql18.ObjectType)({
|
|
4567
4754
|
implements: BaseMessageOutput
|
|
4568
4755
|
})
|
|
4569
4756
|
], TextMessageOutput);
|
|
@@ -4574,31 +4761,31 @@ var ActionExecutionMessageOutput = class {
|
|
|
4574
4761
|
parentMessageId;
|
|
4575
4762
|
};
|
|
4576
4763
|
__name(ActionExecutionMessageOutput, "ActionExecutionMessageOutput");
|
|
4577
|
-
|
|
4578
|
-
(0,
|
|
4579
|
-
|
|
4764
|
+
_ts_decorate17([
|
|
4765
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4766
|
+
_ts_metadata17("design:type", String)
|
|
4580
4767
|
], ActionExecutionMessageOutput.prototype, "name", void 0);
|
|
4581
|
-
|
|
4582
|
-
(0,
|
|
4768
|
+
_ts_decorate17([
|
|
4769
|
+
(0, import_type_graphql18.Field)(() => String, {
|
|
4583
4770
|
nullable: true,
|
|
4584
4771
|
deprecationReason: "This field will be removed in a future version"
|
|
4585
4772
|
}),
|
|
4586
|
-
|
|
4773
|
+
_ts_metadata17("design:type", String)
|
|
4587
4774
|
], ActionExecutionMessageOutput.prototype, "scope", void 0);
|
|
4588
|
-
|
|
4589
|
-
(0,
|
|
4775
|
+
_ts_decorate17([
|
|
4776
|
+
(0, import_type_graphql18.Field)(() => [
|
|
4590
4777
|
String
|
|
4591
4778
|
]),
|
|
4592
|
-
|
|
4779
|
+
_ts_metadata17("design:type", Array)
|
|
4593
4780
|
], ActionExecutionMessageOutput.prototype, "arguments", void 0);
|
|
4594
|
-
|
|
4595
|
-
(0,
|
|
4781
|
+
_ts_decorate17([
|
|
4782
|
+
(0, import_type_graphql18.Field)(() => String, {
|
|
4596
4783
|
nullable: true
|
|
4597
4784
|
}),
|
|
4598
|
-
|
|
4785
|
+
_ts_metadata17("design:type", String)
|
|
4599
4786
|
], ActionExecutionMessageOutput.prototype, "parentMessageId", void 0);
|
|
4600
|
-
ActionExecutionMessageOutput =
|
|
4601
|
-
(0,
|
|
4787
|
+
ActionExecutionMessageOutput = _ts_decorate17([
|
|
4788
|
+
(0, import_type_graphql18.ObjectType)({
|
|
4602
4789
|
implements: BaseMessageOutput
|
|
4603
4790
|
})
|
|
4604
4791
|
], ActionExecutionMessageOutput);
|
|
@@ -4608,20 +4795,20 @@ var ResultMessageOutput = class {
|
|
|
4608
4795
|
result;
|
|
4609
4796
|
};
|
|
4610
4797
|
__name(ResultMessageOutput, "ResultMessageOutput");
|
|
4611
|
-
|
|
4612
|
-
(0,
|
|
4613
|
-
|
|
4798
|
+
_ts_decorate17([
|
|
4799
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4800
|
+
_ts_metadata17("design:type", String)
|
|
4614
4801
|
], ResultMessageOutput.prototype, "actionExecutionId", void 0);
|
|
4615
|
-
|
|
4616
|
-
(0,
|
|
4617
|
-
|
|
4802
|
+
_ts_decorate17([
|
|
4803
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4804
|
+
_ts_metadata17("design:type", String)
|
|
4618
4805
|
], ResultMessageOutput.prototype, "actionName", void 0);
|
|
4619
|
-
|
|
4620
|
-
(0,
|
|
4621
|
-
|
|
4806
|
+
_ts_decorate17([
|
|
4807
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4808
|
+
_ts_metadata17("design:type", String)
|
|
4622
4809
|
], ResultMessageOutput.prototype, "result", void 0);
|
|
4623
|
-
ResultMessageOutput =
|
|
4624
|
-
(0,
|
|
4810
|
+
ResultMessageOutput = _ts_decorate17([
|
|
4811
|
+
(0, import_type_graphql18.ObjectType)({
|
|
4625
4812
|
implements: BaseMessageOutput
|
|
4626
4813
|
})
|
|
4627
4814
|
], ResultMessageOutput);
|
|
@@ -4636,40 +4823,40 @@ var AgentStateMessageOutput = class {
|
|
|
4636
4823
|
running;
|
|
4637
4824
|
};
|
|
4638
4825
|
__name(AgentStateMessageOutput, "AgentStateMessageOutput");
|
|
4639
|
-
|
|
4640
|
-
(0,
|
|
4641
|
-
|
|
4826
|
+
_ts_decorate17([
|
|
4827
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4828
|
+
_ts_metadata17("design:type", String)
|
|
4642
4829
|
], AgentStateMessageOutput.prototype, "threadId", void 0);
|
|
4643
|
-
|
|
4644
|
-
(0,
|
|
4645
|
-
|
|
4830
|
+
_ts_decorate17([
|
|
4831
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4832
|
+
_ts_metadata17("design:type", String)
|
|
4646
4833
|
], AgentStateMessageOutput.prototype, "agentName", void 0);
|
|
4647
|
-
|
|
4648
|
-
(0,
|
|
4649
|
-
|
|
4834
|
+
_ts_decorate17([
|
|
4835
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4836
|
+
_ts_metadata17("design:type", String)
|
|
4650
4837
|
], AgentStateMessageOutput.prototype, "nodeName", void 0);
|
|
4651
|
-
|
|
4652
|
-
(0,
|
|
4653
|
-
|
|
4838
|
+
_ts_decorate17([
|
|
4839
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4840
|
+
_ts_metadata17("design:type", String)
|
|
4654
4841
|
], AgentStateMessageOutput.prototype, "runId", void 0);
|
|
4655
|
-
|
|
4656
|
-
(0,
|
|
4657
|
-
|
|
4842
|
+
_ts_decorate17([
|
|
4843
|
+
(0, import_type_graphql18.Field)(() => Boolean),
|
|
4844
|
+
_ts_metadata17("design:type", Boolean)
|
|
4658
4845
|
], AgentStateMessageOutput.prototype, "active", void 0);
|
|
4659
|
-
|
|
4660
|
-
(0,
|
|
4661
|
-
|
|
4846
|
+
_ts_decorate17([
|
|
4847
|
+
(0, import_type_graphql18.Field)(() => MessageRole),
|
|
4848
|
+
_ts_metadata17("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
4662
4849
|
], AgentStateMessageOutput.prototype, "role", void 0);
|
|
4663
|
-
|
|
4664
|
-
(0,
|
|
4665
|
-
|
|
4850
|
+
_ts_decorate17([
|
|
4851
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4852
|
+
_ts_metadata17("design:type", String)
|
|
4666
4853
|
], AgentStateMessageOutput.prototype, "state", void 0);
|
|
4667
|
-
|
|
4668
|
-
(0,
|
|
4669
|
-
|
|
4854
|
+
_ts_decorate17([
|
|
4855
|
+
(0, import_type_graphql18.Field)(() => Boolean),
|
|
4856
|
+
_ts_metadata17("design:type", Boolean)
|
|
4670
4857
|
], AgentStateMessageOutput.prototype, "running", void 0);
|
|
4671
|
-
AgentStateMessageOutput =
|
|
4672
|
-
(0,
|
|
4858
|
+
AgentStateMessageOutput = _ts_decorate17([
|
|
4859
|
+
(0, import_type_graphql18.ObjectType)({
|
|
4673
4860
|
implements: BaseMessageOutput
|
|
4674
4861
|
})
|
|
4675
4862
|
], AgentStateMessageOutput);
|
|
@@ -4679,36 +4866,45 @@ var CopilotResponse = class {
|
|
|
4679
4866
|
runId;
|
|
4680
4867
|
messages;
|
|
4681
4868
|
extensions;
|
|
4869
|
+
metaEvents;
|
|
4682
4870
|
};
|
|
4683
4871
|
__name(CopilotResponse, "CopilotResponse");
|
|
4684
|
-
|
|
4685
|
-
(0,
|
|
4686
|
-
|
|
4872
|
+
_ts_decorate17([
|
|
4873
|
+
(0, import_type_graphql18.Field)(() => String),
|
|
4874
|
+
_ts_metadata17("design:type", String)
|
|
4687
4875
|
], CopilotResponse.prototype, "threadId", void 0);
|
|
4688
|
-
|
|
4689
|
-
(0,
|
|
4690
|
-
|
|
4876
|
+
_ts_decorate17([
|
|
4877
|
+
(0, import_type_graphql18.Field)(() => ResponseStatusUnion),
|
|
4878
|
+
_ts_metadata17("design:type", Object)
|
|
4691
4879
|
], CopilotResponse.prototype, "status", void 0);
|
|
4692
|
-
|
|
4693
|
-
(0,
|
|
4880
|
+
_ts_decorate17([
|
|
4881
|
+
(0, import_type_graphql18.Field)({
|
|
4694
4882
|
nullable: true
|
|
4695
4883
|
}),
|
|
4696
|
-
|
|
4884
|
+
_ts_metadata17("design:type", String)
|
|
4697
4885
|
], CopilotResponse.prototype, "runId", void 0);
|
|
4698
|
-
|
|
4699
|
-
(0,
|
|
4886
|
+
_ts_decorate17([
|
|
4887
|
+
(0, import_type_graphql18.Field)(() => [
|
|
4700
4888
|
BaseMessageOutput
|
|
4701
4889
|
]),
|
|
4702
|
-
|
|
4890
|
+
_ts_metadata17("design:type", Array)
|
|
4703
4891
|
], CopilotResponse.prototype, "messages", void 0);
|
|
4704
|
-
|
|
4705
|
-
(0,
|
|
4892
|
+
_ts_decorate17([
|
|
4893
|
+
(0, import_type_graphql18.Field)(() => ExtensionsResponse, {
|
|
4706
4894
|
nullable: true
|
|
4707
4895
|
}),
|
|
4708
|
-
|
|
4896
|
+
_ts_metadata17("design:type", typeof ExtensionsResponse === "undefined" ? Object : ExtensionsResponse)
|
|
4709
4897
|
], CopilotResponse.prototype, "extensions", void 0);
|
|
4710
|
-
|
|
4711
|
-
(0,
|
|
4898
|
+
_ts_decorate17([
|
|
4899
|
+
(0, import_type_graphql18.Field)(() => [
|
|
4900
|
+
BaseMetaEvent
|
|
4901
|
+
], {
|
|
4902
|
+
nullable: true
|
|
4903
|
+
}),
|
|
4904
|
+
_ts_metadata17("design:type", Array)
|
|
4905
|
+
], CopilotResponse.prototype, "metaEvents", void 0);
|
|
4906
|
+
CopilotResponse = _ts_decorate17([
|
|
4907
|
+
(0, import_type_graphql18.ObjectType)()
|
|
4712
4908
|
], CopilotResponse);
|
|
4713
4909
|
|
|
4714
4910
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
@@ -4754,8 +4950,8 @@ __name(UnknownErrorResponse, "UnknownErrorResponse");
|
|
|
4754
4950
|
var import_shared16 = require("@copilotkit/shared");
|
|
4755
4951
|
|
|
4756
4952
|
// src/graphql/types/agents-response.type.ts
|
|
4757
|
-
var
|
|
4758
|
-
function
|
|
4953
|
+
var import_type_graphql19 = require("type-graphql");
|
|
4954
|
+
function _ts_decorate18(decorators, target, key, desc) {
|
|
4759
4955
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4760
4956
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4761
4957
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4765,49 +4961,49 @@ function _ts_decorate16(decorators, target, key, desc) {
|
|
|
4765
4961
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4766
4962
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4767
4963
|
}
|
|
4768
|
-
__name(
|
|
4769
|
-
function
|
|
4964
|
+
__name(_ts_decorate18, "_ts_decorate");
|
|
4965
|
+
function _ts_metadata18(k, v) {
|
|
4770
4966
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4771
4967
|
return Reflect.metadata(k, v);
|
|
4772
4968
|
}
|
|
4773
|
-
__name(
|
|
4969
|
+
__name(_ts_metadata18, "_ts_metadata");
|
|
4774
4970
|
var Agent = class {
|
|
4775
4971
|
id;
|
|
4776
4972
|
name;
|
|
4777
4973
|
description;
|
|
4778
4974
|
};
|
|
4779
4975
|
__name(Agent, "Agent");
|
|
4780
|
-
|
|
4781
|
-
(0,
|
|
4782
|
-
|
|
4976
|
+
_ts_decorate18([
|
|
4977
|
+
(0, import_type_graphql19.Field)(() => String),
|
|
4978
|
+
_ts_metadata18("design:type", String)
|
|
4783
4979
|
], Agent.prototype, "id", void 0);
|
|
4784
|
-
|
|
4785
|
-
(0,
|
|
4786
|
-
|
|
4980
|
+
_ts_decorate18([
|
|
4981
|
+
(0, import_type_graphql19.Field)(() => String),
|
|
4982
|
+
_ts_metadata18("design:type", String)
|
|
4787
4983
|
], Agent.prototype, "name", void 0);
|
|
4788
|
-
|
|
4789
|
-
(0,
|
|
4790
|
-
|
|
4984
|
+
_ts_decorate18([
|
|
4985
|
+
(0, import_type_graphql19.Field)(() => String),
|
|
4986
|
+
_ts_metadata18("design:type", String)
|
|
4791
4987
|
], Agent.prototype, "description", void 0);
|
|
4792
|
-
Agent =
|
|
4793
|
-
(0,
|
|
4988
|
+
Agent = _ts_decorate18([
|
|
4989
|
+
(0, import_type_graphql19.ObjectType)()
|
|
4794
4990
|
], Agent);
|
|
4795
4991
|
var AgentsResponse = class {
|
|
4796
4992
|
agents;
|
|
4797
4993
|
};
|
|
4798
4994
|
__name(AgentsResponse, "AgentsResponse");
|
|
4799
|
-
|
|
4800
|
-
(0,
|
|
4995
|
+
_ts_decorate18([
|
|
4996
|
+
(0, import_type_graphql19.Field)(() => [
|
|
4801
4997
|
Agent
|
|
4802
4998
|
]),
|
|
4803
|
-
|
|
4999
|
+
_ts_metadata18("design:type", Array)
|
|
4804
5000
|
], AgentsResponse.prototype, "agents", void 0);
|
|
4805
|
-
AgentsResponse =
|
|
4806
|
-
(0,
|
|
5001
|
+
AgentsResponse = _ts_decorate18([
|
|
5002
|
+
(0, import_type_graphql19.ObjectType)()
|
|
4807
5003
|
], AgentsResponse);
|
|
4808
5004
|
|
|
4809
5005
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
4810
|
-
function
|
|
5006
|
+
function _ts_decorate19(decorators, target, key, desc) {
|
|
4811
5007
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4812
5008
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4813
5009
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -4817,12 +5013,12 @@ function _ts_decorate17(decorators, target, key, desc) {
|
|
|
4817
5013
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4818
5014
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4819
5015
|
}
|
|
4820
|
-
__name(
|
|
4821
|
-
function
|
|
5016
|
+
__name(_ts_decorate19, "_ts_decorate");
|
|
5017
|
+
function _ts_metadata19(k, v) {
|
|
4822
5018
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
4823
5019
|
return Reflect.metadata(k, v);
|
|
4824
5020
|
}
|
|
4825
|
-
__name(
|
|
5021
|
+
__name(_ts_metadata19, "_ts_metadata");
|
|
4826
5022
|
function _ts_param(paramIndex, decorator) {
|
|
4827
5023
|
return function(target, key) {
|
|
4828
5024
|
decorator(target, key, paramIndex);
|
|
@@ -4876,7 +5072,7 @@ var CopilotResolver = class {
|
|
|
4876
5072
|
};
|
|
4877
5073
|
}
|
|
4878
5074
|
async generateCopilotResponse(ctx, data, properties) {
|
|
4879
|
-
var _a, _b, _c;
|
|
5075
|
+
var _a, _b, _c, _d;
|
|
4880
5076
|
telemetry_client_default.capture("oss.runtime.copilot_request_created", {
|
|
4881
5077
|
"cloud.guardrails.enabled": ((_a = data.cloud) == null ? void 0 : _a.guardrails) !== void 0,
|
|
4882
5078
|
requestType: data.metadata.requestType
|
|
@@ -4947,16 +5143,68 @@ var CopilotResolver = class {
|
|
|
4947
5143
|
agentSession: data.agentSession,
|
|
4948
5144
|
agentStates: data.agentStates,
|
|
4949
5145
|
url: data.frontend.url,
|
|
4950
|
-
extensions: data.extensions
|
|
5146
|
+
extensions: data.extensions,
|
|
5147
|
+
metaEvents: data.metaEvents
|
|
4951
5148
|
});
|
|
4952
5149
|
logger2.debug("Event source created, creating response");
|
|
5150
|
+
const eventStream = eventSource.processRuntimeEvents({
|
|
5151
|
+
serverSideActions,
|
|
5152
|
+
guardrailsResult$: ((_d = data.cloud) == null ? void 0 : _d.guardrails) ? guardrailsResult$ : null,
|
|
5153
|
+
actionInputsWithoutAgents: actionInputsWithoutAgents.filter(
|
|
5154
|
+
// TODO-AGENTS: do not exclude ALL server side actions
|
|
5155
|
+
(action) => !serverSideActions.find((serverSideAction) => serverSideAction.name == action.name)
|
|
5156
|
+
),
|
|
5157
|
+
threadId
|
|
5158
|
+
}).pipe(
|
|
5159
|
+
// shareReplay() ensures that later subscribers will see the whole stream instead of
|
|
5160
|
+
// just the events that were emitted after the subscriber was added.
|
|
5161
|
+
(0, import_rxjs4.shareReplay)(),
|
|
5162
|
+
(0, import_rxjs4.finalize)(() => {
|
|
5163
|
+
logger2.debug("Event stream finalized");
|
|
5164
|
+
})
|
|
5165
|
+
);
|
|
4953
5166
|
const response = {
|
|
4954
5167
|
threadId,
|
|
4955
5168
|
runId,
|
|
4956
5169
|
status: (0, import_rxjs4.firstValueFrom)(responseStatus$),
|
|
4957
5170
|
extensions,
|
|
5171
|
+
metaEvents: new import_graphql_yoga.Repeater(async (push, stop) => {
|
|
5172
|
+
let eventStreamSubscription;
|
|
5173
|
+
eventStreamSubscription = eventStream.subscribe({
|
|
5174
|
+
next: async (event) => {
|
|
5175
|
+
if (event.type != RuntimeEventTypes.MetaEvent) {
|
|
5176
|
+
return;
|
|
5177
|
+
}
|
|
5178
|
+
switch (event.name) {
|
|
5179
|
+
case RuntimeMetaEventName.LangGraphInterruptEvent:
|
|
5180
|
+
push((0, import_class_transformer3.plainToInstance)(LangGraphInterruptEvent, {
|
|
5181
|
+
type: event.type,
|
|
5182
|
+
name: event.name,
|
|
5183
|
+
value: event.value
|
|
5184
|
+
}));
|
|
5185
|
+
break;
|
|
5186
|
+
}
|
|
5187
|
+
},
|
|
5188
|
+
error: (err) => {
|
|
5189
|
+
logger2.error({
|
|
5190
|
+
err
|
|
5191
|
+
}, "Error in meta events stream");
|
|
5192
|
+
responseStatus$.next(new UnknownErrorResponse({
|
|
5193
|
+
description: `An unknown error has occurred in the event stream`
|
|
5194
|
+
}));
|
|
5195
|
+
eventStreamSubscription == null ? void 0 : eventStreamSubscription.unsubscribe();
|
|
5196
|
+
stop();
|
|
5197
|
+
},
|
|
5198
|
+
complete: async () => {
|
|
5199
|
+
logger2.debug("Meta events stream completed");
|
|
5200
|
+
responseStatus$.next(new SuccessResponseStatus());
|
|
5201
|
+
eventStreamSubscription == null ? void 0 : eventStreamSubscription.unsubscribe();
|
|
5202
|
+
stop();
|
|
5203
|
+
}
|
|
5204
|
+
});
|
|
5205
|
+
}),
|
|
4958
5206
|
messages: new import_graphql_yoga.Repeater(async (pushMessage, stopStreamingMessages) => {
|
|
4959
|
-
var _a2
|
|
5207
|
+
var _a2;
|
|
4960
5208
|
logger2.debug("Messages repeater created");
|
|
4961
5209
|
if ((_a2 = data.cloud) == null ? void 0 : _a2.guardrails) {
|
|
4962
5210
|
logger2 = logger2.child({
|
|
@@ -5005,26 +5253,12 @@ var CopilotResolver = class {
|
|
|
5005
5253
|
});
|
|
5006
5254
|
}
|
|
5007
5255
|
let eventStreamSubscription;
|
|
5008
|
-
const eventStream = eventSource.processRuntimeEvents({
|
|
5009
|
-
serverSideActions,
|
|
5010
|
-
guardrailsResult$: ((_b2 = data.cloud) == null ? void 0 : _b2.guardrails) ? guardrailsResult$ : null,
|
|
5011
|
-
actionInputsWithoutAgents: actionInputsWithoutAgents.filter(
|
|
5012
|
-
// TODO-AGENTS: do not exclude ALL server side actions
|
|
5013
|
-
(action) => !serverSideActions.find((serverSideAction) => serverSideAction.name == action.name)
|
|
5014
|
-
),
|
|
5015
|
-
threadId
|
|
5016
|
-
}).pipe(
|
|
5017
|
-
// shareReplay() ensures that later subscribers will see the whole stream instead of
|
|
5018
|
-
// just the events that were emitted after the subscriber was added.
|
|
5019
|
-
(0, import_rxjs4.shareReplay)(),
|
|
5020
|
-
(0, import_rxjs4.finalize)(() => {
|
|
5021
|
-
logger2.debug("Event stream finalized");
|
|
5022
|
-
})
|
|
5023
|
-
);
|
|
5024
5256
|
logger2.debug("Event stream created, subscribing to event stream");
|
|
5025
5257
|
eventStreamSubscription = eventStream.subscribe({
|
|
5026
5258
|
next: async (event) => {
|
|
5027
5259
|
switch (event.type) {
|
|
5260
|
+
case RuntimeEventTypes.MetaEvent:
|
|
5261
|
+
break;
|
|
5028
5262
|
case RuntimeEventTypes.TextMessageStart:
|
|
5029
5263
|
const textMessageContentStream = eventStream.pipe(
|
|
5030
5264
|
// skip until this message start event
|
|
@@ -5230,38 +5464,38 @@ var CopilotResolver = class {
|
|
|
5230
5464
|
}
|
|
5231
5465
|
};
|
|
5232
5466
|
__name(CopilotResolver, "CopilotResolver");
|
|
5233
|
-
|
|
5234
|
-
(0,
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5467
|
+
_ts_decorate19([
|
|
5468
|
+
(0, import_type_graphql20.Query)(() => String),
|
|
5469
|
+
_ts_metadata19("design:type", Function),
|
|
5470
|
+
_ts_metadata19("design:paramtypes", []),
|
|
5471
|
+
_ts_metadata19("design:returntype", Promise)
|
|
5238
5472
|
], CopilotResolver.prototype, "hello", null);
|
|
5239
|
-
|
|
5240
|
-
(0,
|
|
5241
|
-
_ts_param(0, (0,
|
|
5242
|
-
|
|
5243
|
-
|
|
5473
|
+
_ts_decorate19([
|
|
5474
|
+
(0, import_type_graphql20.Query)(() => AgentsResponse),
|
|
5475
|
+
_ts_param(0, (0, import_type_graphql20.Ctx)()),
|
|
5476
|
+
_ts_metadata19("design:type", Function),
|
|
5477
|
+
_ts_metadata19("design:paramtypes", [
|
|
5244
5478
|
typeof GraphQLContext === "undefined" ? Object : GraphQLContext
|
|
5245
5479
|
]),
|
|
5246
|
-
|
|
5480
|
+
_ts_metadata19("design:returntype", Promise)
|
|
5247
5481
|
], CopilotResolver.prototype, "availableAgents", null);
|
|
5248
|
-
|
|
5249
|
-
(0,
|
|
5250
|
-
_ts_param(0, (0,
|
|
5251
|
-
_ts_param(1, (0,
|
|
5252
|
-
_ts_param(2, (0,
|
|
5482
|
+
_ts_decorate19([
|
|
5483
|
+
(0, import_type_graphql20.Mutation)(() => CopilotResponse),
|
|
5484
|
+
_ts_param(0, (0, import_type_graphql20.Ctx)()),
|
|
5485
|
+
_ts_param(1, (0, import_type_graphql20.Arg)("data")),
|
|
5486
|
+
_ts_param(2, (0, import_type_graphql20.Arg)("properties", () => import_graphql_scalars2.GraphQLJSONObject, {
|
|
5253
5487
|
nullable: true
|
|
5254
5488
|
})),
|
|
5255
|
-
|
|
5256
|
-
|
|
5489
|
+
_ts_metadata19("design:type", Function),
|
|
5490
|
+
_ts_metadata19("design:paramtypes", [
|
|
5257
5491
|
typeof GraphQLContext === "undefined" ? Object : GraphQLContext,
|
|
5258
5492
|
typeof GenerateCopilotResponseInput === "undefined" ? Object : GenerateCopilotResponseInput,
|
|
5259
5493
|
typeof CopilotRequestContextProperties === "undefined" ? Object : CopilotRequestContextProperties
|
|
5260
5494
|
]),
|
|
5261
|
-
|
|
5495
|
+
_ts_metadata19("design:returntype", Promise)
|
|
5262
5496
|
], CopilotResolver.prototype, "generateCopilotResponse", null);
|
|
5263
|
-
CopilotResolver =
|
|
5264
|
-
(0,
|
|
5497
|
+
CopilotResolver = _ts_decorate19([
|
|
5498
|
+
(0, import_type_graphql20.Resolver)(() => CopilotResponse)
|
|
5265
5499
|
], CopilotResolver);
|
|
5266
5500
|
|
|
5267
5501
|
// src/lib/integrations/shared.ts
|
|
@@ -5296,13 +5530,13 @@ function createLogger(options) {
|
|
|
5296
5530
|
__name(createLogger, "createLogger");
|
|
5297
5531
|
|
|
5298
5532
|
// src/graphql/resolvers/state.resolver.ts
|
|
5299
|
-
var import_type_graphql21 = require("type-graphql");
|
|
5300
|
-
var import_type_graphql22 = require("type-graphql");
|
|
5301
5533
|
var import_type_graphql23 = require("type-graphql");
|
|
5534
|
+
var import_type_graphql24 = require("type-graphql");
|
|
5535
|
+
var import_type_graphql25 = require("type-graphql");
|
|
5302
5536
|
|
|
5303
5537
|
// src/graphql/types/load-agent-state-response.type.ts
|
|
5304
|
-
var
|
|
5305
|
-
function
|
|
5538
|
+
var import_type_graphql21 = require("type-graphql");
|
|
5539
|
+
function _ts_decorate20(decorators, target, key, desc) {
|
|
5306
5540
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5307
5541
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5308
5542
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5312,12 +5546,12 @@ function _ts_decorate18(decorators, target, key, desc) {
|
|
|
5312
5546
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5313
5547
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5314
5548
|
}
|
|
5315
|
-
__name(
|
|
5316
|
-
function
|
|
5549
|
+
__name(_ts_decorate20, "_ts_decorate");
|
|
5550
|
+
function _ts_metadata20(k, v) {
|
|
5317
5551
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5318
5552
|
return Reflect.metadata(k, v);
|
|
5319
5553
|
}
|
|
5320
|
-
__name(
|
|
5554
|
+
__name(_ts_metadata20, "_ts_metadata");
|
|
5321
5555
|
var LoadAgentStateResponse = class {
|
|
5322
5556
|
threadId;
|
|
5323
5557
|
threadExists;
|
|
@@ -5325,29 +5559,29 @@ var LoadAgentStateResponse = class {
|
|
|
5325
5559
|
messages;
|
|
5326
5560
|
};
|
|
5327
5561
|
__name(LoadAgentStateResponse, "LoadAgentStateResponse");
|
|
5328
|
-
|
|
5329
|
-
(0,
|
|
5330
|
-
|
|
5562
|
+
_ts_decorate20([
|
|
5563
|
+
(0, import_type_graphql21.Field)(() => String),
|
|
5564
|
+
_ts_metadata20("design:type", String)
|
|
5331
5565
|
], LoadAgentStateResponse.prototype, "threadId", void 0);
|
|
5332
|
-
|
|
5333
|
-
(0,
|
|
5334
|
-
|
|
5566
|
+
_ts_decorate20([
|
|
5567
|
+
(0, import_type_graphql21.Field)(() => Boolean),
|
|
5568
|
+
_ts_metadata20("design:type", Boolean)
|
|
5335
5569
|
], LoadAgentStateResponse.prototype, "threadExists", void 0);
|
|
5336
|
-
|
|
5337
|
-
(0,
|
|
5338
|
-
|
|
5570
|
+
_ts_decorate20([
|
|
5571
|
+
(0, import_type_graphql21.Field)(() => String),
|
|
5572
|
+
_ts_metadata20("design:type", String)
|
|
5339
5573
|
], LoadAgentStateResponse.prototype, "state", void 0);
|
|
5340
|
-
|
|
5341
|
-
(0,
|
|
5342
|
-
|
|
5574
|
+
_ts_decorate20([
|
|
5575
|
+
(0, import_type_graphql21.Field)(() => String),
|
|
5576
|
+
_ts_metadata20("design:type", String)
|
|
5343
5577
|
], LoadAgentStateResponse.prototype, "messages", void 0);
|
|
5344
|
-
LoadAgentStateResponse =
|
|
5345
|
-
(0,
|
|
5578
|
+
LoadAgentStateResponse = _ts_decorate20([
|
|
5579
|
+
(0, import_type_graphql21.ObjectType)()
|
|
5346
5580
|
], LoadAgentStateResponse);
|
|
5347
5581
|
|
|
5348
5582
|
// src/graphql/inputs/load-agent-state.input.ts
|
|
5349
|
-
var
|
|
5350
|
-
function
|
|
5583
|
+
var import_type_graphql22 = require("type-graphql");
|
|
5584
|
+
function _ts_decorate21(decorators, target, key, desc) {
|
|
5351
5585
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5352
5586
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5353
5587
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5357,31 +5591,31 @@ function _ts_decorate19(decorators, target, key, desc) {
|
|
|
5357
5591
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5358
5592
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5359
5593
|
}
|
|
5360
|
-
__name(
|
|
5361
|
-
function
|
|
5594
|
+
__name(_ts_decorate21, "_ts_decorate");
|
|
5595
|
+
function _ts_metadata21(k, v) {
|
|
5362
5596
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5363
5597
|
return Reflect.metadata(k, v);
|
|
5364
5598
|
}
|
|
5365
|
-
__name(
|
|
5599
|
+
__name(_ts_metadata21, "_ts_metadata");
|
|
5366
5600
|
var LoadAgentStateInput = class {
|
|
5367
5601
|
threadId;
|
|
5368
5602
|
agentName;
|
|
5369
5603
|
};
|
|
5370
5604
|
__name(LoadAgentStateInput, "LoadAgentStateInput");
|
|
5371
|
-
|
|
5372
|
-
(0,
|
|
5373
|
-
|
|
5605
|
+
_ts_decorate21([
|
|
5606
|
+
(0, import_type_graphql22.Field)(() => String),
|
|
5607
|
+
_ts_metadata21("design:type", String)
|
|
5374
5608
|
], LoadAgentStateInput.prototype, "threadId", void 0);
|
|
5375
|
-
|
|
5376
|
-
(0,
|
|
5377
|
-
|
|
5609
|
+
_ts_decorate21([
|
|
5610
|
+
(0, import_type_graphql22.Field)(() => String),
|
|
5611
|
+
_ts_metadata21("design:type", String)
|
|
5378
5612
|
], LoadAgentStateInput.prototype, "agentName", void 0);
|
|
5379
|
-
LoadAgentStateInput =
|
|
5380
|
-
(0,
|
|
5613
|
+
LoadAgentStateInput = _ts_decorate21([
|
|
5614
|
+
(0, import_type_graphql22.InputType)()
|
|
5381
5615
|
], LoadAgentStateInput);
|
|
5382
5616
|
|
|
5383
5617
|
// src/graphql/resolvers/state.resolver.ts
|
|
5384
|
-
function
|
|
5618
|
+
function _ts_decorate22(decorators, target, key, desc) {
|
|
5385
5619
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5386
5620
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5387
5621
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5391,12 +5625,12 @@ function _ts_decorate20(decorators, target, key, desc) {
|
|
|
5391
5625
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5392
5626
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5393
5627
|
}
|
|
5394
|
-
__name(
|
|
5395
|
-
function
|
|
5628
|
+
__name(_ts_decorate22, "_ts_decorate");
|
|
5629
|
+
function _ts_metadata22(k, v) {
|
|
5396
5630
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
5397
5631
|
return Reflect.metadata(k, v);
|
|
5398
5632
|
}
|
|
5399
|
-
__name(
|
|
5633
|
+
__name(_ts_metadata22, "_ts_metadata");
|
|
5400
5634
|
function _ts_param2(paramIndex, decorator) {
|
|
5401
5635
|
return function(target, key) {
|
|
5402
5636
|
decorator(target, key, paramIndex);
|
|
@@ -5415,19 +5649,19 @@ var StateResolver = class {
|
|
|
5415
5649
|
}
|
|
5416
5650
|
};
|
|
5417
5651
|
__name(StateResolver, "StateResolver");
|
|
5418
|
-
|
|
5419
|
-
(0,
|
|
5420
|
-
_ts_param2(0, (0,
|
|
5421
|
-
_ts_param2(1, (0,
|
|
5422
|
-
|
|
5423
|
-
|
|
5652
|
+
_ts_decorate22([
|
|
5653
|
+
(0, import_type_graphql25.Query)(() => LoadAgentStateResponse),
|
|
5654
|
+
_ts_param2(0, (0, import_type_graphql24.Ctx)()),
|
|
5655
|
+
_ts_param2(1, (0, import_type_graphql23.Arg)("data")),
|
|
5656
|
+
_ts_metadata22("design:type", Function),
|
|
5657
|
+
_ts_metadata22("design:paramtypes", [
|
|
5424
5658
|
typeof GraphQLContext === "undefined" ? Object : GraphQLContext,
|
|
5425
5659
|
typeof LoadAgentStateInput === "undefined" ? Object : LoadAgentStateInput
|
|
5426
5660
|
]),
|
|
5427
|
-
|
|
5661
|
+
_ts_metadata22("design:returntype", Promise)
|
|
5428
5662
|
], StateResolver.prototype, "loadAgentState", null);
|
|
5429
|
-
StateResolver =
|
|
5430
|
-
(0,
|
|
5663
|
+
StateResolver = _ts_decorate22([
|
|
5664
|
+
(0, import_type_graphql23.Resolver)(() => LoadAgentStateResponse)
|
|
5431
5665
|
], StateResolver);
|
|
5432
5666
|
|
|
5433
5667
|
// src/lib/integrations/shared.ts
|
|
@@ -5451,7 +5685,7 @@ async function createContext(initialContext, copilotKitContext, contextLogger, p
|
|
|
5451
5685
|
__name(createContext, "createContext");
|
|
5452
5686
|
function buildSchema(options = {}) {
|
|
5453
5687
|
logger.debug("Building GraphQL schema...");
|
|
5454
|
-
const schema = (0,
|
|
5688
|
+
const schema = (0, import_type_graphql26.buildSchemaSync)({
|
|
5455
5689
|
resolvers: [
|
|
5456
5690
|
CopilotResolver,
|
|
5457
5691
|
StateResolver
|