UNPKG

@copilotkit/runtime

Version:

<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />

73 lines (71 loc) 5.29 kB
require("reflect-metadata"); const require_runtime = require('../../_virtual/_rolldown/runtime.cjs'); const require_decorateMetadata = require('../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.cjs'); const require_decorate = require('../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.cjs'); const require_copilot_response_type = require('./copilot-response.type.cjs'); let type_graphql = require("type-graphql"); //#region src/graphql/types/meta-events.type.ts var _ref, _ref2, _ref3, _ref4; let MetaEventName = /* @__PURE__ */ function(MetaEventName) { MetaEventName["LangGraphInterruptEvent"] = "LangGraphInterruptEvent"; MetaEventName["CopilotKitLangGraphInterruptEvent"] = "CopilotKitLangGraphInterruptEvent"; return MetaEventName; }({}); (0, type_graphql.registerEnumType)(MetaEventName, { name: "MetaEventName", description: "Meta event types" }); let BaseMetaEvent = class BaseMetaEvent { constructor() { this.type = "MetaEvent"; } }; require_decorate.__decorate([(0, type_graphql.Field)(() => String), require_decorateMetadata.__decorateMetadata("design:type", String)], BaseMetaEvent.prototype, "type", void 0); require_decorate.__decorate([(0, type_graphql.Field)(() => MetaEventName), require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref = typeof MetaEventName !== "undefined" && MetaEventName) === "function" ? _ref : Object)], BaseMetaEvent.prototype, "name", void 0); BaseMetaEvent = require_decorate.__decorate([(0, type_graphql.InterfaceType)({ resolveType(value) { if (value.name === MetaEventName.LangGraphInterruptEvent) return LangGraphInterruptEvent; else if (value.name === MetaEventName.CopilotKitLangGraphInterruptEvent) return CopilotKitLangGraphInterruptEvent; } }), (0, type_graphql.InterfaceType)()], BaseMetaEvent); let CopilotKitLangGraphInterruptEventData = class CopilotKitLangGraphInterruptEventData {}; require_decorate.__decorate([(0, type_graphql.Field)(() => String), require_decorateMetadata.__decorateMetadata("design:type", String)], CopilotKitLangGraphInterruptEventData.prototype, "value", void 0); require_decorate.__decorate([(0, type_graphql.Field)(() => [require_copilot_response_type.BaseMessageOutput]), require_decorateMetadata.__decorateMetadata("design:type", Array)], CopilotKitLangGraphInterruptEventData.prototype, "messages", void 0); CopilotKitLangGraphInterruptEventData = require_decorate.__decorate([(0, type_graphql.ObjectType)()], CopilotKitLangGraphInterruptEventData); let LangGraphInterruptEvent = class LangGraphInterruptEvent { constructor() { this.name = MetaEventName.LangGraphInterruptEvent; } }; require_decorate.__decorate([(0, type_graphql.Field)(() => MetaEventName), require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref2 = typeof MetaEventName !== "undefined" && MetaEventName.LangGraphInterruptEvent) === "function" ? _ref2 : Object)], LangGraphInterruptEvent.prototype, "name", void 0); require_decorate.__decorate([(0, type_graphql.Field)(() => String), require_decorateMetadata.__decorateMetadata("design:type", String)], LangGraphInterruptEvent.prototype, "value", void 0); require_decorate.__decorate([(0, type_graphql.Field)(() => String, { nullable: true }), require_decorateMetadata.__decorateMetadata("design:type", String)], LangGraphInterruptEvent.prototype, "response", void 0); LangGraphInterruptEvent = require_decorate.__decorate([(0, type_graphql.ObjectType)({ implements: BaseMetaEvent })], LangGraphInterruptEvent); let CopilotKitLangGraphInterruptEvent = class CopilotKitLangGraphInterruptEvent { constructor() { this.name = MetaEventName.CopilotKitLangGraphInterruptEvent; } }; require_decorate.__decorate([(0, type_graphql.Field)(() => MetaEventName), require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref3 = typeof MetaEventName !== "undefined" && MetaEventName.CopilotKitLangGraphInterruptEvent) === "function" ? _ref3 : Object)], CopilotKitLangGraphInterruptEvent.prototype, "name", void 0); require_decorate.__decorate([(0, type_graphql.Field)(() => CopilotKitLangGraphInterruptEventData), require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref4 = typeof CopilotKitLangGraphInterruptEventData !== "undefined" && CopilotKitLangGraphInterruptEventData) === "function" ? _ref4 : Object)], CopilotKitLangGraphInterruptEvent.prototype, "data", void 0); require_decorate.__decorate([(0, type_graphql.Field)(() => String, { nullable: true }), require_decorateMetadata.__decorateMetadata("design:type", String)], CopilotKitLangGraphInterruptEvent.prototype, "response", void 0); CopilotKitLangGraphInterruptEvent = require_decorate.__decorate([(0, type_graphql.ObjectType)({ implements: BaseMetaEvent })], CopilotKitLangGraphInterruptEvent); //#endregion Object.defineProperty(exports, 'BaseMetaEvent', { enumerable: true, get: function () { return BaseMetaEvent; } }); Object.defineProperty(exports, 'CopilotKitLangGraphInterruptEvent', { enumerable: true, get: function () { return CopilotKitLangGraphInterruptEvent; } }); Object.defineProperty(exports, 'LangGraphInterruptEvent', { enumerable: true, get: function () { return LangGraphInterruptEvent; } }); exports.MetaEventName = MetaEventName; //# sourceMappingURL=meta-events.type.cjs.map