@inkeep/agents-api 0.0.0-dev-20260204005607 → 0.0.0-dev-20260204091343
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/dist/.well-known/workflow/v1/flow.cjs +44 -44
- package/dist/.well-known/workflow/v1/flow.cjs.debug.json +2 -2
- package/dist/.well-known/workflow/v1/manifest.debug.json +20 -20
- package/dist/.well-known/workflow/v1/step.cjs +226 -226
- package/dist/.well-known/workflow/v1/step.cjs.debug.json +2 -2
- package/dist/data/db/manageDbClient.d.ts +2 -2
- package/dist/data/db/runDbClient.d.ts +2 -2
- package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
- package/dist/domains/evals/routes/index.d.ts +2 -2
- package/dist/domains/evals/workflow/routes.d.ts +2 -2
- package/dist/domains/manage/routes/conversations.d.ts +2 -2
- package/dist/domains/manage/routes/index.d.ts +2 -2
- package/dist/domains/manage/routes/invitations.d.ts +2 -2
- package/dist/domains/manage/routes/mcp.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/userOrganizations.d.ts +2 -2
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/utils/token-estimator.d.ts +2 -2
- package/dist/factory.d.ts +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/middleware/evalsAuth.d.ts +2 -2
- package/dist/middleware/manageAuth.d.ts +2 -2
- package/dist/middleware/projectAccess.d.ts +2 -2
- package/dist/middleware/projectConfig.d.ts +3 -3
- package/dist/middleware/sessionAuth.d.ts +3 -3
- package/dist/middleware/tenantAccess.d.ts +2 -2
- package/dist/middleware/tracing.d.ts +3 -3
- package/package.json +5 -5
|
@@ -117196,7 +117196,7 @@ function getStepFunction(stepId) {
|
|
|
117196
117196
|
}
|
|
117197
117197
|
__name(getStepFunction, "getStepFunction");
|
|
117198
117198
|
|
|
117199
|
-
// ../node_modules/.pnpm/workflow@4.0.1-beta.33_@aws-sdk+client-sts@3.970.0_@opentelemetry+api@1.9.0_@types+
|
|
117199
|
+
// ../node_modules/.pnpm/workflow@4.0.1-beta.33_@aws-sdk+client-sts@3.970.0_@opentelemetry+api@1.9.0_@types+reac_576b463f7ac3bd55d5340a4cbc23a887/node_modules/workflow/dist/internal/builtins.js
|
|
117200
117200
|
async function __builtin_response_array_buffer(res) {
|
|
117201
117201
|
return res.arrayBuffer();
|
|
117202
117202
|
}
|
|
@@ -186970,7 +186970,7 @@ var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use")
|
|
|
186970
186970
|
// ../node_modules/.pnpm/zod-to-json-schema@3.25.0_zod@4.2.1/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
186971
186971
|
var ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
|
|
186972
186972
|
|
|
186973
|
-
// ../node_modules/.pnpm/@composio+core@0.2.6_ws@8.
|
|
186973
|
+
// ../node_modules/.pnpm/@composio+core@0.2.6_ws@8.19.0_zod@4.2.1/node_modules/@composio/core/dist/index.js
|
|
186974
186974
|
var import_chalk = __toESM(require_source(), 1);
|
|
186975
186975
|
var import_chalk2 = __toESM(require_source(), 1);
|
|
186976
186976
|
|
|
@@ -187034,7 +187034,7 @@ function v4(options, buf, offset) {
|
|
|
187034
187034
|
__name(v4, "v4");
|
|
187035
187035
|
var v4_default = v4;
|
|
187036
187036
|
|
|
187037
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187037
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/tslib.mjs
|
|
187038
187038
|
function __classPrivateFieldSet2(receiver, state, value, kind, f3) {
|
|
187039
187039
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
187040
187040
|
if (kind === "a" && !f3) throw new TypeError("Private accessor was defined without a setter");
|
|
@@ -187049,7 +187049,7 @@ function __classPrivateFieldGet2(receiver, state, kind, f3) {
|
|
|
187049
187049
|
}
|
|
187050
187050
|
__name(__classPrivateFieldGet2, "__classPrivateFieldGet");
|
|
187051
187051
|
|
|
187052
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187052
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/uuid.mjs
|
|
187053
187053
|
var uuid43 = /* @__PURE__ */ __name(function() {
|
|
187054
187054
|
const { crypto: crypto7 } = globalThis;
|
|
187055
187055
|
if (crypto7?.randomUUID) {
|
|
@@ -187061,7 +187061,7 @@ var uuid43 = /* @__PURE__ */ __name(function() {
|
|
|
187061
187061
|
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c2) => (+c2 ^ randomByte() & 15 >> +c2 / 4).toString(16));
|
|
187062
187062
|
}, "uuid4");
|
|
187063
187063
|
|
|
187064
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187064
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/errors.mjs
|
|
187065
187065
|
function isAbortError2(err2) {
|
|
187066
187066
|
return typeof err2 === "object" && err2 !== null && // Spec-compliant fetch implementations
|
|
187067
187067
|
("name" in err2 && err2.name === "AbortError" || // Expo fetch
|
|
@@ -187091,7 +187091,7 @@ var castToError2 = /* @__PURE__ */ __name((err2) => {
|
|
|
187091
187091
|
return new Error(err2);
|
|
187092
187092
|
}, "castToError");
|
|
187093
187093
|
|
|
187094
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187094
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/core/error.mjs
|
|
187095
187095
|
var OpenAIError = class extends Error {
|
|
187096
187096
|
static {
|
|
187097
187097
|
__name(this, "OpenAIError");
|
|
@@ -187252,7 +187252,7 @@ var InvalidWebhookSignatureError = class extends Error {
|
|
|
187252
187252
|
}
|
|
187253
187253
|
};
|
|
187254
187254
|
|
|
187255
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187255
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/values.mjs
|
|
187256
187256
|
var startsWithSchemeRegexp2 = /^[a-z][a-z0-9+.-]*:/i;
|
|
187257
187257
|
var isAbsoluteURL3 = /* @__PURE__ */ __name((url3) => {
|
|
187258
187258
|
return startsWithSchemeRegexp2.test(url3);
|
|
@@ -187297,13 +187297,13 @@ var safeJSON2 = /* @__PURE__ */ __name((text3) => {
|
|
|
187297
187297
|
}
|
|
187298
187298
|
}, "safeJSON");
|
|
187299
187299
|
|
|
187300
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187300
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/sleep.mjs
|
|
187301
187301
|
var sleep2 = /* @__PURE__ */ __name((ms2) => new Promise((resolve4) => setTimeout(resolve4, ms2)), "sleep");
|
|
187302
187302
|
|
|
187303
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187303
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/version.mjs
|
|
187304
187304
|
var VERSION4 = "5.23.2";
|
|
187305
187305
|
|
|
187306
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187306
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/detect-platform.mjs
|
|
187307
187307
|
var isRunningInBrowser = /* @__PURE__ */ __name(() => {
|
|
187308
187308
|
return (
|
|
187309
187309
|
// @ts-ignore
|
|
@@ -187447,7 +187447,7 @@ var getPlatformHeaders2 = /* @__PURE__ */ __name(() => {
|
|
|
187447
187447
|
return _platformHeaders2 ?? (_platformHeaders2 = getPlatformProperties2());
|
|
187448
187448
|
}, "getPlatformHeaders");
|
|
187449
187449
|
|
|
187450
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187450
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/shims.mjs
|
|
187451
187451
|
function getDefaultFetch2() {
|
|
187452
187452
|
if (typeof fetch !== "undefined") {
|
|
187453
187453
|
return fetch;
|
|
@@ -187524,7 +187524,7 @@ async function CancelReadableStream2(stream4) {
|
|
|
187524
187524
|
}
|
|
187525
187525
|
__name(CancelReadableStream2, "CancelReadableStream");
|
|
187526
187526
|
|
|
187527
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187527
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/request-options.mjs
|
|
187528
187528
|
var FallbackEncoder2 = /* @__PURE__ */ __name(({ headers: headers2, body: body2 }) => {
|
|
187529
187529
|
return {
|
|
187530
187530
|
bodyHeaders: {
|
|
@@ -187534,7 +187534,7 @@ var FallbackEncoder2 = /* @__PURE__ */ __name(({ headers: headers2, body: body2
|
|
|
187534
187534
|
};
|
|
187535
187535
|
}, "FallbackEncoder");
|
|
187536
187536
|
|
|
187537
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187537
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/qs/formats.mjs
|
|
187538
187538
|
var default_format2 = "RFC3986";
|
|
187539
187539
|
var default_formatter2 = /* @__PURE__ */ __name((v3) => String(v3), "default_formatter");
|
|
187540
187540
|
var formatters2 = {
|
|
@@ -187543,7 +187543,7 @@ var formatters2 = {
|
|
|
187543
187543
|
};
|
|
187544
187544
|
var RFC17382 = "RFC1738";
|
|
187545
187545
|
|
|
187546
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187546
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/qs/utils.mjs
|
|
187547
187547
|
var has2 = /* @__PURE__ */ __name((obj, key) => (has2 = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty), has2(obj, key)), "has");
|
|
187548
187548
|
var hex_table2 = /* @__PURE__ */ (() => {
|
|
187549
187549
|
const array3 = [];
|
|
@@ -187624,7 +187624,7 @@ function maybe_map2(val, fn2) {
|
|
|
187624
187624
|
}
|
|
187625
187625
|
__name(maybe_map2, "maybe_map");
|
|
187626
187626
|
|
|
187627
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187627
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/qs/stringify.mjs
|
|
187628
187628
|
var array_prefix_generators2 = {
|
|
187629
187629
|
brackets(prefix) {
|
|
187630
187630
|
return String(prefix) + "[]";
|
|
@@ -187914,7 +187914,7 @@ function stringify2(object4, opts = {}) {
|
|
|
187914
187914
|
}
|
|
187915
187915
|
__name(stringify2, "stringify");
|
|
187916
187916
|
|
|
187917
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187917
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/bytes.mjs
|
|
187918
187918
|
function concatBytes(buffers) {
|
|
187919
187919
|
let length = 0;
|
|
187920
187920
|
for (const buffer of buffers) {
|
|
@@ -187942,7 +187942,7 @@ function decodeUTF8(bytes) {
|
|
|
187942
187942
|
}
|
|
187943
187943
|
__name(decodeUTF8, "decodeUTF8");
|
|
187944
187944
|
|
|
187945
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
187945
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/decoders/line.mjs
|
|
187946
187946
|
var _LineDecoder_buffer;
|
|
187947
187947
|
var _LineDecoder_carriageReturnIndex;
|
|
187948
187948
|
var LineDecoder = class {
|
|
@@ -188038,7 +188038,7 @@ function findDoubleNewlineIndex(buffer) {
|
|
|
188038
188038
|
}
|
|
188039
188039
|
__name(findDoubleNewlineIndex, "findDoubleNewlineIndex");
|
|
188040
188040
|
|
|
188041
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188041
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/log.mjs
|
|
188042
188042
|
var levelNumbers2 = {
|
|
188043
188043
|
off: 0,
|
|
188044
188044
|
error: 200,
|
|
@@ -188121,7 +188121,7 @@ var formatRequestDetails2 = /* @__PURE__ */ __name((details) => {
|
|
|
188121
188121
|
return details;
|
|
188122
188122
|
}, "formatRequestDetails");
|
|
188123
188123
|
|
|
188124
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188124
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/core/streaming.mjs
|
|
188125
188125
|
var _Stream_client;
|
|
188126
188126
|
var Stream = class _Stream {
|
|
188127
188127
|
static {
|
|
@@ -188391,7 +188391,7 @@ function partition(str2, delimiter) {
|
|
|
188391
188391
|
}
|
|
188392
188392
|
__name(partition, "partition");
|
|
188393
188393
|
|
|
188394
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188394
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/parse.mjs
|
|
188395
188395
|
async function defaultParseResponse2(client, props) {
|
|
188396
188396
|
const { response, requestLogID, retryOfRequestLogID, startTime } = props;
|
|
188397
188397
|
const body2 = await (async () => {
|
|
@@ -188439,7 +188439,7 @@ function addRequestID(value, response) {
|
|
|
188439
188439
|
}
|
|
188440
188440
|
__name(addRequestID, "addRequestID");
|
|
188441
188441
|
|
|
188442
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188442
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/core/api-promise.mjs
|
|
188443
188443
|
var _APIPromise_client2;
|
|
188444
188444
|
var APIPromise2 = class _APIPromise extends Promise {
|
|
188445
188445
|
static {
|
|
@@ -188512,7 +188512,7 @@ var APIPromise2 = class _APIPromise extends Promise {
|
|
|
188512
188512
|
};
|
|
188513
188513
|
_APIPromise_client2 = /* @__PURE__ */ new WeakMap();
|
|
188514
188514
|
|
|
188515
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188515
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/core/pagination.mjs
|
|
188516
188516
|
var _AbstractPage_client;
|
|
188517
188517
|
var AbstractPage = class {
|
|
188518
188518
|
static {
|
|
@@ -188657,7 +188657,7 @@ var ConversationCursorPage = class extends AbstractPage {
|
|
|
188657
188657
|
}
|
|
188658
188658
|
};
|
|
188659
188659
|
|
|
188660
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188660
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/uploads.mjs
|
|
188661
188661
|
var checkFileSupport2 = /* @__PURE__ */ __name(() => {
|
|
188662
188662
|
if (typeof File === "undefined") {
|
|
188663
188663
|
const { process: process4 } = globalThis;
|
|
@@ -188737,7 +188737,7 @@ var addFormValue = /* @__PURE__ */ __name(async (form, key, value) => {
|
|
|
188737
188737
|
}
|
|
188738
188738
|
}, "addFormValue");
|
|
188739
188739
|
|
|
188740
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188740
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/to-file.mjs
|
|
188741
188741
|
var isBlobLike2 = /* @__PURE__ */ __name((value) => value != null && typeof value === "object" && typeof value.size === "number" && typeof value.type === "string" && typeof value.text === "function" && typeof value.slice === "function" && typeof value.arrayBuffer === "function", "isBlobLike");
|
|
188742
188742
|
var isFileLike2 = /* @__PURE__ */ __name((value) => value != null && typeof value === "object" && typeof value.name === "string" && typeof value.lastModified === "number" && isBlobLike2(value), "isFileLike");
|
|
188743
188743
|
var isResponseLike2 = /* @__PURE__ */ __name((value) => value != null && typeof value === "object" && typeof value.url === "string" && typeof value.blob === "function", "isResponseLike");
|
|
@@ -188796,7 +188796,7 @@ function propsForError2(value) {
|
|
|
188796
188796
|
}
|
|
188797
188797
|
__name(propsForError2, "propsForError");
|
|
188798
188798
|
|
|
188799
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188799
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/core/resource.mjs
|
|
188800
188800
|
var APIResource2 = class {
|
|
188801
188801
|
static {
|
|
188802
188802
|
__name(this, "APIResource");
|
|
@@ -188806,7 +188806,7 @@ var APIResource2 = class {
|
|
|
188806
188806
|
}
|
|
188807
188807
|
};
|
|
188808
188808
|
|
|
188809
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188809
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/path.mjs
|
|
188810
188810
|
function encodeURIPath2(str2) {
|
|
188811
188811
|
return str2.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
|
|
188812
188812
|
}
|
|
@@ -188861,7 +188861,7 @@ ${underline}`);
|
|
|
188861
188861
|
}, "path"), "createPathTagFunction");
|
|
188862
188862
|
var path5 = /* @__PURE__ */ createPathTagFunction2(encodeURIPath2);
|
|
188863
188863
|
|
|
188864
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188864
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/chat/completions/messages.mjs
|
|
188865
188865
|
var Messages = class extends APIResource2 {
|
|
188866
188866
|
static {
|
|
188867
188867
|
__name(this, "Messages");
|
|
@@ -188888,7 +188888,7 @@ var Messages = class extends APIResource2 {
|
|
|
188888
188888
|
}
|
|
188889
188889
|
};
|
|
188890
188890
|
|
|
188891
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
188891
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/parser.mjs
|
|
188892
188892
|
function isChatCompletionFunctionTool(tool2) {
|
|
188893
188893
|
return tool2 !== void 0 && "function" in tool2 && tool2.function !== void 0;
|
|
188894
188894
|
}
|
|
@@ -189009,7 +189009,7 @@ function validateInputTools(tools2) {
|
|
|
189009
189009
|
}
|
|
189010
189010
|
__name(validateInputTools, "validateInputTools");
|
|
189011
189011
|
|
|
189012
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189012
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/chatCompletionUtils.mjs
|
|
189013
189013
|
var isAssistantMessage = /* @__PURE__ */ __name((message) => {
|
|
189014
189014
|
return message?.role === "assistant";
|
|
189015
189015
|
}, "isAssistantMessage");
|
|
@@ -189017,7 +189017,7 @@ var isToolMessage = /* @__PURE__ */ __name((message) => {
|
|
|
189017
189017
|
return message?.role === "tool";
|
|
189018
189018
|
}, "isToolMessage");
|
|
189019
189019
|
|
|
189020
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189020
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/EventStream.mjs
|
|
189021
189021
|
var _EventStream_instances;
|
|
189022
189022
|
var _EventStream_connectedPromise;
|
|
189023
189023
|
var _EventStream_resolveConnectedPromise;
|
|
@@ -189210,13 +189210,13 @@ _EventStream_connectedPromise = /* @__PURE__ */ new WeakMap(), _EventStream_reso
|
|
|
189210
189210
|
return this._emit("error", new OpenAIError(String(error46)));
|
|
189211
189211
|
}, "_EventStream_handleError");
|
|
189212
189212
|
|
|
189213
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189213
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/RunnableFunction.mjs
|
|
189214
189214
|
function isRunnableFunctionWithParse(fn2) {
|
|
189215
189215
|
return typeof fn2.parse === "function";
|
|
189216
189216
|
}
|
|
189217
189217
|
__name(isRunnableFunctionWithParse, "isRunnableFunctionWithParse");
|
|
189218
189218
|
|
|
189219
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189219
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/AbstractChatCompletionRunner.mjs
|
|
189220
189220
|
var _AbstractChatCompletionRunner_instances;
|
|
189221
189221
|
var _AbstractChatCompletionRunner_getFinalContent;
|
|
189222
189222
|
var _AbstractChatCompletionRunner_getFinalMessage;
|
|
@@ -189505,7 +189505,7 @@ _AbstractChatCompletionRunner_instances = /* @__PURE__ */ new WeakSet(), _Abstra
|
|
|
189505
189505
|
return typeof rawContent === "string" ? rawContent : rawContent === void 0 ? "undefined" : JSON.stringify(rawContent);
|
|
189506
189506
|
}, "_AbstractChatCompletionRunner_stringifyFunctionCallResult");
|
|
189507
189507
|
|
|
189508
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189508
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/ChatCompletionRunner.mjs
|
|
189509
189509
|
var ChatCompletionRunner = class _ChatCompletionRunner extends AbstractChatCompletionRunner {
|
|
189510
189510
|
static {
|
|
189511
189511
|
__name(this, "ChatCompletionRunner");
|
|
@@ -189530,7 +189530,7 @@ var ChatCompletionRunner = class _ChatCompletionRunner extends AbstractChatCompl
|
|
|
189530
189530
|
}
|
|
189531
189531
|
};
|
|
189532
189532
|
|
|
189533
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189533
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/_vendor/partial-json-parser/parser.mjs
|
|
189534
189534
|
var STR = 1;
|
|
189535
189535
|
var NUM = 2;
|
|
189536
189536
|
var ARR = 4;
|
|
@@ -189738,7 +189738,7 @@ var _parseJSON = /* @__PURE__ */ __name((jsonString, allow) => {
|
|
|
189738
189738
|
}, "_parseJSON");
|
|
189739
189739
|
var partialParse = /* @__PURE__ */ __name((input) => parseJSON(input, Allow.ALL ^ Allow.NUM), "partialParse");
|
|
189740
189740
|
|
|
189741
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
189741
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/ChatCompletionStream.mjs
|
|
189742
189742
|
var _ChatCompletionStream_instances;
|
|
189743
189743
|
var _ChatCompletionStream_params;
|
|
189744
189744
|
var _ChatCompletionStream_choiceEventStates;
|
|
@@ -190280,7 +190280,7 @@ function assertNever2(_x) {
|
|
|
190280
190280
|
}
|
|
190281
190281
|
__name(assertNever2, "assertNever");
|
|
190282
190282
|
|
|
190283
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190283
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs
|
|
190284
190284
|
var ChatCompletionStreamingRunner = class _ChatCompletionStreamingRunner extends ChatCompletionStream {
|
|
190285
190285
|
static {
|
|
190286
190286
|
__name(this, "ChatCompletionStreamingRunner");
|
|
@@ -190307,7 +190307,7 @@ var ChatCompletionStreamingRunner = class _ChatCompletionStreamingRunner extends
|
|
|
190307
190307
|
}
|
|
190308
190308
|
};
|
|
190309
190309
|
|
|
190310
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190310
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/chat/completions/completions.mjs
|
|
190311
190311
|
var Completions = class extends APIResource2 {
|
|
190312
190312
|
static {
|
|
190313
190313
|
__name(this, "Completions");
|
|
@@ -190411,7 +190411,7 @@ var Completions = class extends APIResource2 {
|
|
|
190411
190411
|
};
|
|
190412
190412
|
Completions.Messages = Messages;
|
|
190413
190413
|
|
|
190414
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190414
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/chat/chat.mjs
|
|
190415
190415
|
var Chat = class extends APIResource2 {
|
|
190416
190416
|
static {
|
|
190417
190417
|
__name(this, "Chat");
|
|
@@ -190423,7 +190423,7 @@ var Chat = class extends APIResource2 {
|
|
|
190423
190423
|
};
|
|
190424
190424
|
Chat.Completions = Completions;
|
|
190425
190425
|
|
|
190426
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190426
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/headers.mjs
|
|
190427
190427
|
var brand_privateNullableHeaders2 = /* @__PURE__ */ Symbol("brand.privateNullableHeaders");
|
|
190428
190428
|
function* iterateHeaders2(headers2) {
|
|
190429
190429
|
if (!headers2) return;
|
|
@@ -190499,7 +190499,7 @@ var buildHeaders2 = /* @__PURE__ */ __name((newHeaders) => {
|
|
|
190499
190499
|
};
|
|
190500
190500
|
}, "buildHeaders");
|
|
190501
190501
|
|
|
190502
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190502
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/audio/speech.mjs
|
|
190503
190503
|
var Speech = class extends APIResource2 {
|
|
190504
190504
|
static {
|
|
190505
190505
|
__name(this, "Speech");
|
|
@@ -190534,7 +190534,7 @@ var Speech = class extends APIResource2 {
|
|
|
190534
190534
|
}
|
|
190535
190535
|
};
|
|
190536
190536
|
|
|
190537
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190537
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/audio/transcriptions.mjs
|
|
190538
190538
|
var Transcriptions = class extends APIResource2 {
|
|
190539
190539
|
static {
|
|
190540
190540
|
__name(this, "Transcriptions");
|
|
@@ -190551,7 +190551,7 @@ var Transcriptions = class extends APIResource2 {
|
|
|
190551
190551
|
}
|
|
190552
190552
|
};
|
|
190553
190553
|
|
|
190554
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190554
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/audio/translations.mjs
|
|
190555
190555
|
var Translations = class extends APIResource2 {
|
|
190556
190556
|
static {
|
|
190557
190557
|
__name(this, "Translations");
|
|
@@ -190567,7 +190567,7 @@ var Translations = class extends APIResource2 {
|
|
|
190567
190567
|
}
|
|
190568
190568
|
};
|
|
190569
190569
|
|
|
190570
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190570
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/audio/audio.mjs
|
|
190571
190571
|
var Audio = class extends APIResource2 {
|
|
190572
190572
|
static {
|
|
190573
190573
|
__name(this, "Audio");
|
|
@@ -190583,7 +190583,7 @@ Audio.Transcriptions = Transcriptions;
|
|
|
190583
190583
|
Audio.Translations = Translations;
|
|
190584
190584
|
Audio.Speech = Speech;
|
|
190585
190585
|
|
|
190586
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190586
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/batches.mjs
|
|
190587
190587
|
var Batches = class extends APIResource2 {
|
|
190588
190588
|
static {
|
|
190589
190589
|
__name(this, "Batches");
|
|
@@ -190622,7 +190622,7 @@ var Batches = class extends APIResource2 {
|
|
|
190622
190622
|
}
|
|
190623
190623
|
};
|
|
190624
190624
|
|
|
190625
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190625
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/assistants.mjs
|
|
190626
190626
|
var Assistants = class extends APIResource2 {
|
|
190627
190627
|
static {
|
|
190628
190628
|
__name(this, "Assistants");
|
|
@@ -190737,7 +190737,7 @@ var Assistants = class extends APIResource2 {
|
|
|
190737
190737
|
}
|
|
190738
190738
|
};
|
|
190739
190739
|
|
|
190740
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190740
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/realtime/sessions.mjs
|
|
190741
190741
|
var Sessions = class extends APIResource2 {
|
|
190742
190742
|
static {
|
|
190743
190743
|
__name(this, "Sessions");
|
|
@@ -190771,7 +190771,7 @@ var Sessions = class extends APIResource2 {
|
|
|
190771
190771
|
}
|
|
190772
190772
|
};
|
|
190773
190773
|
|
|
190774
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190774
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs
|
|
190775
190775
|
var TranscriptionSessions = class extends APIResource2 {
|
|
190776
190776
|
static {
|
|
190777
190777
|
__name(this, "TranscriptionSessions");
|
|
@@ -190805,7 +190805,7 @@ var TranscriptionSessions = class extends APIResource2 {
|
|
|
190805
190805
|
}
|
|
190806
190806
|
};
|
|
190807
190807
|
|
|
190808
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190808
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/realtime/realtime.mjs
|
|
190809
190809
|
var Realtime = class extends APIResource2 {
|
|
190810
190810
|
static {
|
|
190811
190811
|
__name(this, "Realtime");
|
|
@@ -190819,7 +190819,7 @@ var Realtime = class extends APIResource2 {
|
|
|
190819
190819
|
Realtime.Sessions = Sessions;
|
|
190820
190820
|
Realtime.TranscriptionSessions = TranscriptionSessions;
|
|
190821
190821
|
|
|
190822
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190822
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/threads/messages.mjs
|
|
190823
190823
|
var Messages2 = class extends APIResource2 {
|
|
190824
190824
|
static {
|
|
190825
190825
|
__name(this, "Messages");
|
|
@@ -190912,7 +190912,7 @@ var Messages2 = class extends APIResource2 {
|
|
|
190912
190912
|
}
|
|
190913
190913
|
};
|
|
190914
190914
|
|
|
190915
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190915
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/threads/runs/steps.mjs
|
|
190916
190916
|
var Steps = class extends APIResource2 {
|
|
190917
190917
|
static {
|
|
190918
190918
|
__name(this, "Steps");
|
|
@@ -190955,7 +190955,7 @@ var Steps = class extends APIResource2 {
|
|
|
190955
190955
|
}
|
|
190956
190956
|
};
|
|
190957
190957
|
|
|
190958
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190958
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/base64.mjs
|
|
190959
190959
|
var toFloat32Array = /* @__PURE__ */ __name((base64Str) => {
|
|
190960
190960
|
if (typeof Buffer !== "undefined") {
|
|
190961
190961
|
const buf = Buffer.from(base64Str, "base64");
|
|
@@ -190971,7 +190971,7 @@ var toFloat32Array = /* @__PURE__ */ __name((base64Str) => {
|
|
|
190971
190971
|
}
|
|
190972
190972
|
}, "toFloat32Array");
|
|
190973
190973
|
|
|
190974
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190974
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/internal/utils/env.mjs
|
|
190975
190975
|
var readEnv2 = /* @__PURE__ */ __name((env3) => {
|
|
190976
190976
|
if (typeof globalThis.process !== "undefined") {
|
|
190977
190977
|
return globalThis.process.env?.[env3]?.trim() ?? void 0;
|
|
@@ -190982,7 +190982,7 @@ var readEnv2 = /* @__PURE__ */ __name((env3) => {
|
|
|
190982
190982
|
return void 0;
|
|
190983
190983
|
}, "readEnv");
|
|
190984
190984
|
|
|
190985
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
190985
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/AssistantStream.mjs
|
|
190986
190986
|
var _AssistantStream_instances;
|
|
190987
190987
|
var _a3;
|
|
190988
190988
|
var _AssistantStream_events;
|
|
@@ -191567,7 +191567,7 @@ function assertNever3(_x) {
|
|
|
191567
191567
|
}
|
|
191568
191568
|
__name(assertNever3, "assertNever");
|
|
191569
191569
|
|
|
191570
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191570
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/threads/runs/runs.mjs
|
|
191571
191571
|
var Runs = class extends APIResource2 {
|
|
191572
191572
|
static {
|
|
191573
191573
|
__name(this, "Runs");
|
|
@@ -191772,7 +191772,7 @@ var Runs = class extends APIResource2 {
|
|
|
191772
191772
|
};
|
|
191773
191773
|
Runs.Steps = Steps;
|
|
191774
191774
|
|
|
191775
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191775
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/threads/threads.mjs
|
|
191776
191776
|
var Threads = class extends APIResource2 {
|
|
191777
191777
|
static {
|
|
191778
191778
|
__name(this, "Threads");
|
|
@@ -191882,7 +191882,7 @@ var Threads = class extends APIResource2 {
|
|
|
191882
191882
|
Threads.Runs = Runs;
|
|
191883
191883
|
Threads.Messages = Messages2;
|
|
191884
191884
|
|
|
191885
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191885
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/beta/beta.mjs
|
|
191886
191886
|
var Beta = class extends APIResource2 {
|
|
191887
191887
|
static {
|
|
191888
191888
|
__name(this, "Beta");
|
|
@@ -191898,7 +191898,7 @@ Beta.Realtime = Realtime;
|
|
|
191898
191898
|
Beta.Assistants = Assistants;
|
|
191899
191899
|
Beta.Threads = Threads;
|
|
191900
191900
|
|
|
191901
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191901
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/completions.mjs
|
|
191902
191902
|
var Completions2 = class extends APIResource2 {
|
|
191903
191903
|
static {
|
|
191904
191904
|
__name(this, "Completions");
|
|
@@ -191912,7 +191912,7 @@ var Completions2 = class extends APIResource2 {
|
|
|
191912
191912
|
}
|
|
191913
191913
|
};
|
|
191914
191914
|
|
|
191915
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191915
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/containers/files/content.mjs
|
|
191916
191916
|
var Content = class extends APIResource2 {
|
|
191917
191917
|
static {
|
|
191918
191918
|
__name(this, "Content");
|
|
@@ -191935,7 +191935,7 @@ var Content = class extends APIResource2 {
|
|
|
191935
191935
|
}
|
|
191936
191936
|
};
|
|
191937
191937
|
|
|
191938
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191938
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/containers/files/files.mjs
|
|
191939
191939
|
var Files2 = class extends APIResource2 {
|
|
191940
191940
|
static {
|
|
191941
191941
|
__name(this, "Files");
|
|
@@ -191990,7 +191990,7 @@ var Files2 = class extends APIResource2 {
|
|
|
191990
191990
|
};
|
|
191991
191991
|
Files2.Content = Content;
|
|
191992
191992
|
|
|
191993
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
191993
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/containers/containers.mjs
|
|
191994
191994
|
var Containers = class extends APIResource2 {
|
|
191995
191995
|
static {
|
|
191996
191996
|
__name(this, "Containers");
|
|
@@ -192040,7 +192040,7 @@ var Containers = class extends APIResource2 {
|
|
|
192040
192040
|
};
|
|
192041
192041
|
Containers.Files = Files2;
|
|
192042
192042
|
|
|
192043
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192043
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/conversations/items.mjs
|
|
192044
192044
|
var Items = class extends APIResource2 {
|
|
192045
192045
|
static {
|
|
192046
192046
|
__name(this, "Items");
|
|
@@ -192086,7 +192086,7 @@ var Items = class extends APIResource2 {
|
|
|
192086
192086
|
}
|
|
192087
192087
|
};
|
|
192088
192088
|
|
|
192089
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192089
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/conversations/conversations.mjs
|
|
192090
192090
|
var Conversations = class extends APIResource2 {
|
|
192091
192091
|
static {
|
|
192092
192092
|
__name(this, "Conversations");
|
|
@@ -192128,7 +192128,7 @@ var Conversations = class extends APIResource2 {
|
|
|
192128
192128
|
};
|
|
192129
192129
|
Conversations.Items = Items;
|
|
192130
192130
|
|
|
192131
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192131
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/embeddings.mjs
|
|
192132
192132
|
var Embeddings = class extends APIResource2 {
|
|
192133
192133
|
static {
|
|
192134
192134
|
__name(this, "Embeddings");
|
|
@@ -192174,7 +192174,7 @@ var Embeddings = class extends APIResource2 {
|
|
|
192174
192174
|
}
|
|
192175
192175
|
};
|
|
192176
192176
|
|
|
192177
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192177
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/evals/runs/output-items.mjs
|
|
192178
192178
|
var OutputItems = class extends APIResource2 {
|
|
192179
192179
|
static {
|
|
192180
192180
|
__name(this, "OutputItems");
|
|
@@ -192198,7 +192198,7 @@ var OutputItems = class extends APIResource2 {
|
|
|
192198
192198
|
}
|
|
192199
192199
|
};
|
|
192200
192200
|
|
|
192201
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192201
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/evals/runs/runs.mjs
|
|
192202
192202
|
var Runs2 = class extends APIResource2 {
|
|
192203
192203
|
static {
|
|
192204
192204
|
__name(this, "Runs");
|
|
@@ -192251,7 +192251,7 @@ var Runs2 = class extends APIResource2 {
|
|
|
192251
192251
|
};
|
|
192252
192252
|
Runs2.OutputItems = OutputItems;
|
|
192253
192253
|
|
|
192254
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192254
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/evals/evals.mjs
|
|
192255
192255
|
var Evals = class extends APIResource2 {
|
|
192256
192256
|
static {
|
|
192257
192257
|
__name(this, "Evals");
|
|
@@ -192307,7 +192307,7 @@ var Evals = class extends APIResource2 {
|
|
|
192307
192307
|
};
|
|
192308
192308
|
Evals.Runs = Runs2;
|
|
192309
192309
|
|
|
192310
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192310
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/files.mjs
|
|
192311
192311
|
var Files3 = class extends APIResource2 {
|
|
192312
192312
|
static {
|
|
192313
192313
|
__name(this, "Files");
|
|
@@ -192401,14 +192401,14 @@ var Files3 = class extends APIResource2 {
|
|
|
192401
192401
|
}
|
|
192402
192402
|
};
|
|
192403
192403
|
|
|
192404
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192404
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/methods.mjs
|
|
192405
192405
|
var Methods = class extends APIResource2 {
|
|
192406
192406
|
static {
|
|
192407
192407
|
__name(this, "Methods");
|
|
192408
192408
|
}
|
|
192409
192409
|
};
|
|
192410
192410
|
|
|
192411
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192411
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/alpha/graders.mjs
|
|
192412
192412
|
var Graders = class extends APIResource2 {
|
|
192413
192413
|
static {
|
|
192414
192414
|
__name(this, "Graders");
|
|
@@ -192461,7 +192461,7 @@ var Graders = class extends APIResource2 {
|
|
|
192461
192461
|
}
|
|
192462
192462
|
};
|
|
192463
192463
|
|
|
192464
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192464
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs
|
|
192465
192465
|
var Alpha = class extends APIResource2 {
|
|
192466
192466
|
static {
|
|
192467
192467
|
__name(this, "Alpha");
|
|
@@ -192473,7 +192473,7 @@ var Alpha = class extends APIResource2 {
|
|
|
192473
192473
|
};
|
|
192474
192474
|
Alpha.Graders = Graders;
|
|
192475
192475
|
|
|
192476
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192476
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/checkpoints/permissions.mjs
|
|
192477
192477
|
var Permissions = class extends APIResource2 {
|
|
192478
192478
|
static {
|
|
192479
192479
|
__name(this, "Permissions");
|
|
@@ -192546,7 +192546,7 @@ var Permissions = class extends APIResource2 {
|
|
|
192546
192546
|
}
|
|
192547
192547
|
};
|
|
192548
192548
|
|
|
192549
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192549
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.mjs
|
|
192550
192550
|
var Checkpoints = class extends APIResource2 {
|
|
192551
192551
|
static {
|
|
192552
192552
|
__name(this, "Checkpoints");
|
|
@@ -192558,7 +192558,7 @@ var Checkpoints = class extends APIResource2 {
|
|
|
192558
192558
|
};
|
|
192559
192559
|
Checkpoints.Permissions = Permissions;
|
|
192560
192560
|
|
|
192561
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192561
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs
|
|
192562
192562
|
var Checkpoints2 = class extends APIResource2 {
|
|
192563
192563
|
static {
|
|
192564
192564
|
__name(this, "Checkpoints");
|
|
@@ -192584,7 +192584,7 @@ var Checkpoints2 = class extends APIResource2 {
|
|
|
192584
192584
|
}
|
|
192585
192585
|
};
|
|
192586
192586
|
|
|
192587
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192587
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs
|
|
192588
192588
|
var Jobs = class extends APIResource2 {
|
|
192589
192589
|
static {
|
|
192590
192590
|
__name(this, "Jobs");
|
|
@@ -192709,7 +192709,7 @@ var Jobs = class extends APIResource2 {
|
|
|
192709
192709
|
};
|
|
192710
192710
|
Jobs.Checkpoints = Checkpoints2;
|
|
192711
192711
|
|
|
192712
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192712
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/fine-tuning/fine-tuning.mjs
|
|
192713
192713
|
var FineTuning = class extends APIResource2 {
|
|
192714
192714
|
static {
|
|
192715
192715
|
__name(this, "FineTuning");
|
|
@@ -192727,14 +192727,14 @@ FineTuning.Jobs = Jobs;
|
|
|
192727
192727
|
FineTuning.Checkpoints = Checkpoints;
|
|
192728
192728
|
FineTuning.Alpha = Alpha;
|
|
192729
192729
|
|
|
192730
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192730
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/graders/grader-models.mjs
|
|
192731
192731
|
var GraderModels = class extends APIResource2 {
|
|
192732
192732
|
static {
|
|
192733
192733
|
__name(this, "GraderModels");
|
|
192734
192734
|
}
|
|
192735
192735
|
};
|
|
192736
192736
|
|
|
192737
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192737
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/graders/graders.mjs
|
|
192738
192738
|
var Graders2 = class extends APIResource2 {
|
|
192739
192739
|
static {
|
|
192740
192740
|
__name(this, "Graders");
|
|
@@ -192746,7 +192746,7 @@ var Graders2 = class extends APIResource2 {
|
|
|
192746
192746
|
};
|
|
192747
192747
|
Graders2.GraderModels = GraderModels;
|
|
192748
192748
|
|
|
192749
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192749
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/images.mjs
|
|
192750
192750
|
var Images = class extends APIResource2 {
|
|
192751
192751
|
static {
|
|
192752
192752
|
__name(this, "Images");
|
|
@@ -192783,7 +192783,7 @@ var Images = class extends APIResource2 {
|
|
|
192783
192783
|
}
|
|
192784
192784
|
};
|
|
192785
192785
|
|
|
192786
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192786
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/models.mjs
|
|
192787
192787
|
var Models = class extends APIResource2 {
|
|
192788
192788
|
static {
|
|
192789
192789
|
__name(this, "Models");
|
|
@@ -192811,7 +192811,7 @@ var Models = class extends APIResource2 {
|
|
|
192811
192811
|
}
|
|
192812
192812
|
};
|
|
192813
192813
|
|
|
192814
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192814
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/moderations.mjs
|
|
192815
192815
|
var Moderations = class extends APIResource2 {
|
|
192816
192816
|
static {
|
|
192817
192817
|
__name(this, "Moderations");
|
|
@@ -192828,7 +192828,7 @@ var Moderations = class extends APIResource2 {
|
|
|
192828
192828
|
}
|
|
192829
192829
|
};
|
|
192830
192830
|
|
|
192831
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192831
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/realtime/client-secrets.mjs
|
|
192832
192832
|
var ClientSecrets = class extends APIResource2 {
|
|
192833
192833
|
static {
|
|
192834
192834
|
__name(this, "ClientSecrets");
|
|
@@ -192844,7 +192844,7 @@ var ClientSecrets = class extends APIResource2 {
|
|
|
192844
192844
|
}
|
|
192845
192845
|
};
|
|
192846
192846
|
|
|
192847
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192847
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/realtime/realtime.mjs
|
|
192848
192848
|
var Realtime2 = class extends APIResource2 {
|
|
192849
192849
|
static {
|
|
192850
192850
|
__name(this, "Realtime");
|
|
@@ -192856,7 +192856,7 @@ var Realtime2 = class extends APIResource2 {
|
|
|
192856
192856
|
};
|
|
192857
192857
|
Realtime2.ClientSecrets = ClientSecrets;
|
|
192858
192858
|
|
|
192859
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192859
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/ResponsesParser.mjs
|
|
192860
192860
|
function maybeParseResponse(response, params) {
|
|
192861
192861
|
if (!params || !hasAutoParseableInput2(params)) {
|
|
192862
192862
|
return {
|
|
@@ -192987,7 +192987,7 @@ function addOutputText(rsp) {
|
|
|
192987
192987
|
}
|
|
192988
192988
|
__name(addOutputText, "addOutputText");
|
|
192989
192989
|
|
|
192990
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
192990
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/responses/ResponseStream.mjs
|
|
192991
192991
|
var _ResponseStream_instances;
|
|
192992
192992
|
var _ResponseStream_params;
|
|
192993
192993
|
var _ResponseStream_currentResponseSnapshot;
|
|
@@ -193282,7 +193282,7 @@ function finalizeResponse(snapshot, params) {
|
|
|
193282
193282
|
}
|
|
193283
193283
|
__name(finalizeResponse, "finalizeResponse");
|
|
193284
193284
|
|
|
193285
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193285
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/responses/input-items.mjs
|
|
193286
193286
|
var InputItems = class extends APIResource2 {
|
|
193287
193287
|
static {
|
|
193288
193288
|
__name(this, "InputItems");
|
|
@@ -193308,7 +193308,7 @@ var InputItems = class extends APIResource2 {
|
|
|
193308
193308
|
}
|
|
193309
193309
|
};
|
|
193310
193310
|
|
|
193311
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193311
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/responses/responses.mjs
|
|
193312
193312
|
var Responses = class extends APIResource2 {
|
|
193313
193313
|
static {
|
|
193314
193314
|
__name(this, "Responses");
|
|
@@ -193389,7 +193389,7 @@ var Responses = class extends APIResource2 {
|
|
|
193389
193389
|
};
|
|
193390
193390
|
Responses.InputItems = InputItems;
|
|
193391
193391
|
|
|
193392
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193392
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/uploads/parts.mjs
|
|
193393
193393
|
var Parts = class extends APIResource2 {
|
|
193394
193394
|
static {
|
|
193395
193395
|
__name(this, "Parts");
|
|
@@ -193415,7 +193415,7 @@ var Parts = class extends APIResource2 {
|
|
|
193415
193415
|
}
|
|
193416
193416
|
};
|
|
193417
193417
|
|
|
193418
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193418
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/uploads/uploads.mjs
|
|
193419
193419
|
var Uploads = class extends APIResource2 {
|
|
193420
193420
|
static {
|
|
193421
193421
|
__name(this, "Uploads");
|
|
@@ -193481,7 +193481,7 @@ var Uploads = class extends APIResource2 {
|
|
|
193481
193481
|
};
|
|
193482
193482
|
Uploads.Parts = Parts;
|
|
193483
193483
|
|
|
193484
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193484
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/lib/Util.mjs
|
|
193485
193485
|
var allSettledWithThrow = /* @__PURE__ */ __name(async (promises) => {
|
|
193486
193486
|
const results = await Promise.allSettled(promises);
|
|
193487
193487
|
const rejected = results.filter((result) => result.status === "rejected");
|
|
@@ -193500,7 +193500,7 @@ var allSettledWithThrow = /* @__PURE__ */ __name(async (promises) => {
|
|
|
193500
193500
|
return values;
|
|
193501
193501
|
}, "allSettledWithThrow");
|
|
193502
193502
|
|
|
193503
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193503
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/vector-stores/file-batches.mjs
|
|
193504
193504
|
var FileBatches = class extends APIResource2 {
|
|
193505
193505
|
static {
|
|
193506
193506
|
__name(this, "FileBatches");
|
|
@@ -193652,7 +193652,7 @@ var FileBatches = class extends APIResource2 {
|
|
|
193652
193652
|
}
|
|
193653
193653
|
};
|
|
193654
193654
|
|
|
193655
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193655
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/vector-stores/files.mjs
|
|
193656
193656
|
var Files4 = class extends APIResource2 {
|
|
193657
193657
|
static {
|
|
193658
193658
|
__name(this, "Files");
|
|
@@ -193828,7 +193828,7 @@ var Files4 = class extends APIResource2 {
|
|
|
193828
193828
|
}
|
|
193829
193829
|
};
|
|
193830
193830
|
|
|
193831
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193831
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/vector-stores/vector-stores.mjs
|
|
193832
193832
|
var VectorStores = class extends APIResource2 {
|
|
193833
193833
|
static {
|
|
193834
193834
|
__name(this, "VectorStores");
|
|
@@ -193932,7 +193932,7 @@ var VectorStores = class extends APIResource2 {
|
|
|
193932
193932
|
VectorStores.Files = Files4;
|
|
193933
193933
|
VectorStores.FileBatches = FileBatches;
|
|
193934
193934
|
|
|
193935
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
193935
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/resources/webhooks.mjs
|
|
193936
193936
|
var _Webhooks_instances;
|
|
193937
193937
|
var _Webhooks_validateSecret;
|
|
193938
193938
|
var _Webhooks_getRequiredHeader;
|
|
@@ -194021,7 +194021,7 @@ _Webhooks_instances = /* @__PURE__ */ new WeakSet(), _Webhooks_validateSecret =
|
|
|
194021
194021
|
return value;
|
|
194022
194022
|
}, "_Webhooks_getRequiredHeader");
|
|
194023
194023
|
|
|
194024
|
-
// ../node_modules/.pnpm/openai@5.23.2_ws@8.
|
|
194024
|
+
// ../node_modules/.pnpm/openai@5.23.2_ws@8.19.0_zod@4.2.1/node_modules/openai/client.mjs
|
|
194025
194025
|
var _OpenAI_instances;
|
|
194026
194026
|
var _a4;
|
|
194027
194027
|
var _OpenAI_encoder;
|
|
@@ -194555,13 +194555,13 @@ OpenAI.Conversations = Conversations;
|
|
|
194555
194555
|
OpenAI.Evals = Evals;
|
|
194556
194556
|
OpenAI.Containers = Containers;
|
|
194557
194557
|
|
|
194558
|
-
// ../node_modules/.pnpm/@composio+core@0.2.6_ws@8.
|
|
194558
|
+
// ../node_modules/.pnpm/@composio+core@0.2.6_ws@8.19.0_zod@4.2.1/node_modules/@composio/core/dist/index.js
|
|
194559
194559
|
var import_semver = __toESM(require_semver2(), 1);
|
|
194560
194560
|
|
|
194561
194561
|
// ../node_modules/.pnpm/@composio+json-schema-to-zod@0.1.19_zod@4.2.1/node_modules/@composio/json-schema-to-zod/dist/index.js
|
|
194562
194562
|
var originalIndex = Symbol("Original index");
|
|
194563
194563
|
|
|
194564
|
-
// ../node_modules/.pnpm/@composio+core@0.2.6_ws@8.
|
|
194564
|
+
// ../node_modules/.pnpm/@composio+core@0.2.6_ws@8.19.0_zod@4.2.1/node_modules/@composio/core/dist/index.js
|
|
194565
194565
|
var __defProp3 = Object.defineProperty;
|
|
194566
194566
|
var __export2 = /* @__PURE__ */ __name((target, all3) => {
|
|
194567
194567
|
for (var name18 in all3) __defProp3(target, name18, {
|
|
@@ -229544,8 +229544,124 @@ Return your evaluation as a JSON object matching the schema above.`;
|
|
|
229544
229544
|
}
|
|
229545
229545
|
};
|
|
229546
229546
|
|
|
229547
|
+
// src/domains/evals/workflow/functions/evaluateConversation.ts
|
|
229548
|
+
var logger22 = getLogger("workflow-evaluate-conversation");
|
|
229549
|
+
async function getConversationStep(payload) {
|
|
229550
|
+
const { tenantId, projectId, conversationId } = payload;
|
|
229551
|
+
const conv = await getConversation(runDbClient_default)({
|
|
229552
|
+
scopes: {
|
|
229553
|
+
tenantId,
|
|
229554
|
+
projectId
|
|
229555
|
+
},
|
|
229556
|
+
conversationId
|
|
229557
|
+
});
|
|
229558
|
+
if (!conv) {
|
|
229559
|
+
throw new Error(`Conversation not found: ${conversationId}`);
|
|
229560
|
+
}
|
|
229561
|
+
return conv;
|
|
229562
|
+
}
|
|
229563
|
+
__name(getConversationStep, "getConversationStep");
|
|
229564
|
+
async function getEvaluatorsStep(payload) {
|
|
229565
|
+
const { tenantId, projectId, evaluatorIds } = payload;
|
|
229566
|
+
const projectMain = await getProjectMainResolvedRef(manageDbClient_default)(tenantId, projectId);
|
|
229567
|
+
const evals = await withRef(manageDbPool_default, projectMain, (db) => getEvaluatorsByIds(db)({
|
|
229568
|
+
scopes: {
|
|
229569
|
+
tenantId,
|
|
229570
|
+
projectId
|
|
229571
|
+
},
|
|
229572
|
+
evaluatorIds
|
|
229573
|
+
}));
|
|
229574
|
+
return evals;
|
|
229575
|
+
}
|
|
229576
|
+
__name(getEvaluatorsStep, "getEvaluatorsStep");
|
|
229577
|
+
async function executeEvaluatorStep(payload, evaluatorId, conversation) {
|
|
229578
|
+
const { tenantId, projectId, conversationId, evaluationRunId } = payload;
|
|
229579
|
+
const projectMain = await getProjectMainResolvedRef(manageDbClient_default)(tenantId, projectId);
|
|
229580
|
+
const evaluator2 = await withRef(manageDbPool_default, projectMain, (db) => getEvaluatorById(db)({
|
|
229581
|
+
scopes: {
|
|
229582
|
+
tenantId,
|
|
229583
|
+
projectId,
|
|
229584
|
+
evaluatorId
|
|
229585
|
+
}
|
|
229586
|
+
}));
|
|
229587
|
+
if (!evaluator2) {
|
|
229588
|
+
throw new Error(`Evaluator not found: ${evaluatorId}`);
|
|
229589
|
+
}
|
|
229590
|
+
const evalResult = await createEvaluationResult(runDbClient_default)({
|
|
229591
|
+
id: generateId(),
|
|
229592
|
+
tenantId,
|
|
229593
|
+
projectId,
|
|
229594
|
+
conversationId,
|
|
229595
|
+
evaluatorId: evaluator2.id,
|
|
229596
|
+
evaluationRunId
|
|
229597
|
+
});
|
|
229598
|
+
try {
|
|
229599
|
+
const evaluationService = new EvaluationService();
|
|
229600
|
+
const output = await evaluationService.executeEvaluation({
|
|
229601
|
+
conversation,
|
|
229602
|
+
evaluator: evaluator2,
|
|
229603
|
+
tenantId,
|
|
229604
|
+
projectId
|
|
229605
|
+
});
|
|
229606
|
+
const updated = await updateEvaluationResult(runDbClient_default)({
|
|
229607
|
+
scopes: {
|
|
229608
|
+
tenantId,
|
|
229609
|
+
projectId,
|
|
229610
|
+
evaluationResultId: evalResult.id
|
|
229611
|
+
},
|
|
229612
|
+
data: {
|
|
229613
|
+
output
|
|
229614
|
+
}
|
|
229615
|
+
});
|
|
229616
|
+
logger22.info({
|
|
229617
|
+
conversationId,
|
|
229618
|
+
evaluatorId: evaluator2.id,
|
|
229619
|
+
resultId: evalResult.id
|
|
229620
|
+
}, "Evaluation completed successfully");
|
|
229621
|
+
return updated;
|
|
229622
|
+
} catch (error46) {
|
|
229623
|
+
const errorMessage = error46 instanceof Error ? error46.message : "Unknown error";
|
|
229624
|
+
logger22.error({
|
|
229625
|
+
error: error46,
|
|
229626
|
+
conversationId,
|
|
229627
|
+
evaluatorId: evaluator2.id,
|
|
229628
|
+
resultId: evalResult.id
|
|
229629
|
+
}, "Evaluation execution failed");
|
|
229630
|
+
const failed = await updateEvaluationResult(runDbClient_default)({
|
|
229631
|
+
scopes: {
|
|
229632
|
+
tenantId,
|
|
229633
|
+
projectId,
|
|
229634
|
+
evaluationResultId: evalResult.id
|
|
229635
|
+
},
|
|
229636
|
+
data: {
|
|
229637
|
+
output: {
|
|
229638
|
+
text: `Evaluation failed: ${errorMessage}`
|
|
229639
|
+
}
|
|
229640
|
+
}
|
|
229641
|
+
});
|
|
229642
|
+
return failed;
|
|
229643
|
+
}
|
|
229644
|
+
}
|
|
229645
|
+
__name(executeEvaluatorStep, "executeEvaluatorStep");
|
|
229646
|
+
async function logStep(message, data) {
|
|
229647
|
+
logger22.info(data, message);
|
|
229648
|
+
}
|
|
229649
|
+
__name(logStep, "logStep");
|
|
229650
|
+
async function _evaluateConversationWorkflow(payload) {
|
|
229651
|
+
throw new Error("You attempted to execute workflow _evaluateConversationWorkflow function directly. To start a workflow, use start(_evaluateConversationWorkflow) from workflow/api");
|
|
229652
|
+
}
|
|
229653
|
+
__name(_evaluateConversationWorkflow, "_evaluateConversationWorkflow");
|
|
229654
|
+
_evaluateConversationWorkflow.workflowId = "workflow//src/domains/evals/workflow/functions/evaluateConversation.ts//_evaluateConversationWorkflow";
|
|
229655
|
+
var evaluateConversationWorkflow = Object.assign(_evaluateConversationWorkflow, {
|
|
229656
|
+
workflowId: "workflow//src/domains/evals/workflow/functions/evaluateConversation.ts//_evaluateConversationWorkflow"
|
|
229657
|
+
});
|
|
229658
|
+
registerStepFunction("step//src/domains/evals/workflow/functions/evaluateConversation.ts//getConversationStep", getConversationStep);
|
|
229659
|
+
registerStepFunction("step//src/domains/evals/workflow/functions/evaluateConversation.ts//getEvaluatorsStep", getEvaluatorsStep);
|
|
229660
|
+
registerStepFunction("step//src/domains/evals/workflow/functions/evaluateConversation.ts//executeEvaluatorStep", executeEvaluatorStep);
|
|
229661
|
+
registerStepFunction("step//src/domains/evals/workflow/functions/evaluateConversation.ts//logStep", logStep);
|
|
229662
|
+
|
|
229547
229663
|
// src/domains/evals/workflow/functions/runDatasetItem.ts
|
|
229548
|
-
var
|
|
229664
|
+
var logger23 = getLogger("workflow-run-dataset-item");
|
|
229549
229665
|
async function callChatApiStep(payload) {
|
|
229550
229666
|
const { tenantId, projectId, agentId, datasetItemId, datasetItemInput, datasetItemSimulationAgent, datasetRunId } = payload;
|
|
229551
229667
|
const evaluationService = new EvaluationService();
|
|
@@ -229561,7 +229677,7 @@ async function callChatApiStep(payload) {
|
|
|
229561
229677
|
datasetItem: datasetItem2,
|
|
229562
229678
|
datasetRunId
|
|
229563
229679
|
});
|
|
229564
|
-
|
|
229680
|
+
logger23.info({
|
|
229565
229681
|
tenantId,
|
|
229566
229682
|
projectId,
|
|
229567
229683
|
datasetItemId,
|
|
@@ -229584,7 +229700,7 @@ async function createRelationStep(payload, conversationId) {
|
|
|
229584
229700
|
conversationId,
|
|
229585
229701
|
datasetItemId
|
|
229586
229702
|
});
|
|
229587
|
-
|
|
229703
|
+
logger23.info({
|
|
229588
229704
|
tenantId,
|
|
229589
229705
|
projectId,
|
|
229590
229706
|
datasetItemId,
|
|
@@ -229598,7 +229714,7 @@ async function createRelationStep(payload, conversationId) {
|
|
|
229598
229714
|
};
|
|
229599
229715
|
} catch (error46) {
|
|
229600
229716
|
if (error46?.cause?.code === "23503" || error46?.code === "23503") {
|
|
229601
|
-
|
|
229717
|
+
logger23.warn({
|
|
229602
229718
|
tenantId,
|
|
229603
229719
|
projectId,
|
|
229604
229720
|
datasetItemId,
|
|
@@ -229615,7 +229731,7 @@ async function createRelationStep(payload, conversationId) {
|
|
|
229615
229731
|
}
|
|
229616
229732
|
}
|
|
229617
229733
|
__name(createRelationStep, "createRelationStep");
|
|
229618
|
-
async function
|
|
229734
|
+
async function executeEvaluatorStep2(tenantId, projectId, conversationId, evaluatorId, evaluationRunId, expectedOutput) {
|
|
229619
229735
|
const ref = getProjectScopedRef(tenantId, projectId, "main");
|
|
229620
229736
|
const resolvedRef = await resolveRef2(manageDbClient_default)(ref);
|
|
229621
229737
|
if (!resolvedRef) {
|
|
@@ -229629,7 +229745,7 @@ async function executeEvaluatorStep(tenantId, projectId, conversationId, evaluat
|
|
|
229629
229745
|
}
|
|
229630
229746
|
}));
|
|
229631
229747
|
if (!evaluator2) {
|
|
229632
|
-
|
|
229748
|
+
logger23.warn({
|
|
229633
229749
|
evaluatorId
|
|
229634
229750
|
}, "Evaluator not found");
|
|
229635
229751
|
return null;
|
|
@@ -229671,7 +229787,7 @@ async function executeEvaluatorStep(tenantId, projectId, conversationId, evaluat
|
|
|
229671
229787
|
output
|
|
229672
229788
|
}
|
|
229673
229789
|
});
|
|
229674
|
-
|
|
229790
|
+
logger23.info({
|
|
229675
229791
|
conversationId,
|
|
229676
229792
|
evaluatorId: evaluator2.id,
|
|
229677
229793
|
resultId: evalResult.id
|
|
@@ -229679,7 +229795,7 @@ async function executeEvaluatorStep(tenantId, projectId, conversationId, evaluat
|
|
|
229679
229795
|
return evalResult.id;
|
|
229680
229796
|
} catch (error46) {
|
|
229681
229797
|
const errorMessage = error46 instanceof Error ? error46.message : "Unknown error";
|
|
229682
|
-
|
|
229798
|
+
logger23.error({
|
|
229683
229799
|
error: error46,
|
|
229684
229800
|
conversationId,
|
|
229685
229801
|
evaluatorId: evaluator2.id
|
|
@@ -229699,11 +229815,11 @@ async function executeEvaluatorStep(tenantId, projectId, conversationId, evaluat
|
|
|
229699
229815
|
return evalResult.id;
|
|
229700
229816
|
}
|
|
229701
229817
|
}
|
|
229702
|
-
__name(
|
|
229703
|
-
async function
|
|
229704
|
-
|
|
229818
|
+
__name(executeEvaluatorStep2, "executeEvaluatorStep");
|
|
229819
|
+
async function logStep2(message, data) {
|
|
229820
|
+
logger23.info(data, message);
|
|
229705
229821
|
}
|
|
229706
|
-
__name(
|
|
229822
|
+
__name(logStep2, "logStep");
|
|
229707
229823
|
async function _runDatasetItemWorkflow(payload) {
|
|
229708
229824
|
throw new Error("You attempted to execute workflow _runDatasetItemWorkflow function directly. To start a workflow, use start(_runDatasetItemWorkflow) from workflow/api");
|
|
229709
229825
|
}
|
|
@@ -229714,124 +229830,8 @@ var runDatasetItemWorkflow = Object.assign(_runDatasetItemWorkflow, {
|
|
|
229714
229830
|
});
|
|
229715
229831
|
registerStepFunction("step//src/domains/evals/workflow/functions/runDatasetItem.ts//callChatApiStep", callChatApiStep);
|
|
229716
229832
|
registerStepFunction("step//src/domains/evals/workflow/functions/runDatasetItem.ts//createRelationStep", createRelationStep);
|
|
229717
|
-
registerStepFunction("step//src/domains/evals/workflow/functions/runDatasetItem.ts//executeEvaluatorStep",
|
|
229718
|
-
registerStepFunction("step//src/domains/evals/workflow/functions/runDatasetItem.ts//logStep",
|
|
229719
|
-
|
|
229720
|
-
// src/domains/evals/workflow/functions/evaluateConversation.ts
|
|
229721
|
-
var logger23 = getLogger("workflow-evaluate-conversation");
|
|
229722
|
-
async function getConversationStep(payload) {
|
|
229723
|
-
const { tenantId, projectId, conversationId } = payload;
|
|
229724
|
-
const conv = await getConversation(runDbClient_default)({
|
|
229725
|
-
scopes: {
|
|
229726
|
-
tenantId,
|
|
229727
|
-
projectId
|
|
229728
|
-
},
|
|
229729
|
-
conversationId
|
|
229730
|
-
});
|
|
229731
|
-
if (!conv) {
|
|
229732
|
-
throw new Error(`Conversation not found: ${conversationId}`);
|
|
229733
|
-
}
|
|
229734
|
-
return conv;
|
|
229735
|
-
}
|
|
229736
|
-
__name(getConversationStep, "getConversationStep");
|
|
229737
|
-
async function getEvaluatorsStep(payload) {
|
|
229738
|
-
const { tenantId, projectId, evaluatorIds } = payload;
|
|
229739
|
-
const projectMain = await getProjectMainResolvedRef(manageDbClient_default)(tenantId, projectId);
|
|
229740
|
-
const evals = await withRef(manageDbPool_default, projectMain, (db) => getEvaluatorsByIds(db)({
|
|
229741
|
-
scopes: {
|
|
229742
|
-
tenantId,
|
|
229743
|
-
projectId
|
|
229744
|
-
},
|
|
229745
|
-
evaluatorIds
|
|
229746
|
-
}));
|
|
229747
|
-
return evals;
|
|
229748
|
-
}
|
|
229749
|
-
__name(getEvaluatorsStep, "getEvaluatorsStep");
|
|
229750
|
-
async function executeEvaluatorStep2(payload, evaluatorId, conversation) {
|
|
229751
|
-
const { tenantId, projectId, conversationId, evaluationRunId } = payload;
|
|
229752
|
-
const projectMain = await getProjectMainResolvedRef(manageDbClient_default)(tenantId, projectId);
|
|
229753
|
-
const evaluator2 = await withRef(manageDbPool_default, projectMain, (db) => getEvaluatorById(db)({
|
|
229754
|
-
scopes: {
|
|
229755
|
-
tenantId,
|
|
229756
|
-
projectId,
|
|
229757
|
-
evaluatorId
|
|
229758
|
-
}
|
|
229759
|
-
}));
|
|
229760
|
-
if (!evaluator2) {
|
|
229761
|
-
throw new Error(`Evaluator not found: ${evaluatorId}`);
|
|
229762
|
-
}
|
|
229763
|
-
const evalResult = await createEvaluationResult(runDbClient_default)({
|
|
229764
|
-
id: generateId(),
|
|
229765
|
-
tenantId,
|
|
229766
|
-
projectId,
|
|
229767
|
-
conversationId,
|
|
229768
|
-
evaluatorId: evaluator2.id,
|
|
229769
|
-
evaluationRunId
|
|
229770
|
-
});
|
|
229771
|
-
try {
|
|
229772
|
-
const evaluationService = new EvaluationService();
|
|
229773
|
-
const output = await evaluationService.executeEvaluation({
|
|
229774
|
-
conversation,
|
|
229775
|
-
evaluator: evaluator2,
|
|
229776
|
-
tenantId,
|
|
229777
|
-
projectId
|
|
229778
|
-
});
|
|
229779
|
-
const updated = await updateEvaluationResult(runDbClient_default)({
|
|
229780
|
-
scopes: {
|
|
229781
|
-
tenantId,
|
|
229782
|
-
projectId,
|
|
229783
|
-
evaluationResultId: evalResult.id
|
|
229784
|
-
},
|
|
229785
|
-
data: {
|
|
229786
|
-
output
|
|
229787
|
-
}
|
|
229788
|
-
});
|
|
229789
|
-
logger23.info({
|
|
229790
|
-
conversationId,
|
|
229791
|
-
evaluatorId: evaluator2.id,
|
|
229792
|
-
resultId: evalResult.id
|
|
229793
|
-
}, "Evaluation completed successfully");
|
|
229794
|
-
return updated;
|
|
229795
|
-
} catch (error46) {
|
|
229796
|
-
const errorMessage = error46 instanceof Error ? error46.message : "Unknown error";
|
|
229797
|
-
logger23.error({
|
|
229798
|
-
error: error46,
|
|
229799
|
-
conversationId,
|
|
229800
|
-
evaluatorId: evaluator2.id,
|
|
229801
|
-
resultId: evalResult.id
|
|
229802
|
-
}, "Evaluation execution failed");
|
|
229803
|
-
const failed = await updateEvaluationResult(runDbClient_default)({
|
|
229804
|
-
scopes: {
|
|
229805
|
-
tenantId,
|
|
229806
|
-
projectId,
|
|
229807
|
-
evaluationResultId: evalResult.id
|
|
229808
|
-
},
|
|
229809
|
-
data: {
|
|
229810
|
-
output: {
|
|
229811
|
-
text: `Evaluation failed: ${errorMessage}`
|
|
229812
|
-
}
|
|
229813
|
-
}
|
|
229814
|
-
});
|
|
229815
|
-
return failed;
|
|
229816
|
-
}
|
|
229817
|
-
}
|
|
229818
|
-
__name(executeEvaluatorStep2, "executeEvaluatorStep");
|
|
229819
|
-
async function logStep2(message, data) {
|
|
229820
|
-
logger23.info(data, message);
|
|
229821
|
-
}
|
|
229822
|
-
__name(logStep2, "logStep");
|
|
229823
|
-
async function _evaluateConversationWorkflow(payload) {
|
|
229824
|
-
throw new Error("You attempted to execute workflow _evaluateConversationWorkflow function directly. To start a workflow, use start(_evaluateConversationWorkflow) from workflow/api");
|
|
229825
|
-
}
|
|
229826
|
-
__name(_evaluateConversationWorkflow, "_evaluateConversationWorkflow");
|
|
229827
|
-
_evaluateConversationWorkflow.workflowId = "workflow//src/domains/evals/workflow/functions/evaluateConversation.ts//_evaluateConversationWorkflow";
|
|
229828
|
-
var evaluateConversationWorkflow = Object.assign(_evaluateConversationWorkflow, {
|
|
229829
|
-
workflowId: "workflow//src/domains/evals/workflow/functions/evaluateConversation.ts//_evaluateConversationWorkflow"
|
|
229830
|
-
});
|
|
229831
|
-
registerStepFunction("step//src/domains/evals/workflow/functions/evaluateConversation.ts//getConversationStep", getConversationStep);
|
|
229832
|
-
registerStepFunction("step//src/domains/evals/workflow/functions/evaluateConversation.ts//getEvaluatorsStep", getEvaluatorsStep);
|
|
229833
|
-
registerStepFunction("step//src/domains/evals/workflow/functions/evaluateConversation.ts//executeEvaluatorStep", executeEvaluatorStep2);
|
|
229834
|
-
registerStepFunction("step//src/domains/evals/workflow/functions/evaluateConversation.ts//logStep", logStep2);
|
|
229833
|
+
registerStepFunction("step//src/domains/evals/workflow/functions/runDatasetItem.ts//executeEvaluatorStep", executeEvaluatorStep2);
|
|
229834
|
+
registerStepFunction("step//src/domains/evals/workflow/functions/runDatasetItem.ts//logStep", logStep2);
|
|
229835
229835
|
|
|
229836
229836
|
// ../node_modules/.pnpm/@workflow+utils@4.0.1-beta.7/node_modules/@workflow/utils/dist/index.js
|
|
229837
229837
|
var import_ms2 = __toESM(require_ms(), 1);
|