@inkeep/agents-api 0.0.0-dev-20260212220816 → 0.0.0-dev-20260213181729
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/manifest.json +22 -22
- package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
- package/dist/domains/evals/workflow/routes.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/passwordResetLinks.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/users.d.ts +2 -2
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/agents/Agent.d.ts +1 -0
- package/dist/domains/run/agents/Agent.js +5 -2
- package/dist/domains/run/workflow/steps/scheduledTriggerSteps.d.ts +5 -5
- package/dist/factory.d.ts +267 -267
- package/dist/index.d.ts +266 -266
- 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/requirePermission.d.ts +2 -2
- package/dist/middleware/runAuth.d.ts +4 -4
- 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
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
"stepId": "__builtin_response_text"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"src/domains/evals/workflow/functions/
|
|
16
|
-
"
|
|
17
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
15
|
+
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
16
|
+
"callChatApiStep": {
|
|
17
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//callChatApiStep"
|
|
18
18
|
},
|
|
19
|
-
"
|
|
20
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
19
|
+
"createRelationStep": {
|
|
20
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//createRelationStep"
|
|
21
21
|
},
|
|
22
|
-
"
|
|
23
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
22
|
+
"executeEvaluatorStep": {
|
|
23
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//executeEvaluatorStep"
|
|
24
24
|
},
|
|
25
25
|
"logStep": {
|
|
26
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
26
|
+
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//logStep"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"node_modules/.pnpm/workflow@4.1.0-beta.54_@aws-sdk+client-sts@3.970.0_@nestjs+common@11.1.13_reflect-metad_f85281f2580d7065fc514e637f5f5e1f/node_modules/workflow/dist/stdlib.js": {
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"stepId": "step//workflow@4.1.0-beta.54//fetch"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
"src/domains/evals/workflow/functions/
|
|
35
|
-
"
|
|
36
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
34
|
+
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
35
|
+
"executeEvaluatorStep": {
|
|
36
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//executeEvaluatorStep"
|
|
37
37
|
},
|
|
38
|
-
"
|
|
39
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
38
|
+
"getConversationStep": {
|
|
39
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getConversationStep"
|
|
40
40
|
},
|
|
41
|
-
"
|
|
42
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
41
|
+
"getEvaluatorsStep": {
|
|
42
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getEvaluatorsStep"
|
|
43
43
|
},
|
|
44
44
|
"logStep": {
|
|
45
|
-
"stepId": "step//./src/domains/evals/workflow/functions/
|
|
45
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"src/domains/run/workflow/steps/scheduledTriggerSteps.ts": {
|
|
@@ -91,18 +91,18 @@
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"workflows": {
|
|
94
|
-
"src/domains/evals/workflow/functions/
|
|
95
|
-
"
|
|
96
|
-
"workflowId": "workflow//./src/domains/evals/workflow/functions/
|
|
94
|
+
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
95
|
+
"_runDatasetItemWorkflow": {
|
|
96
|
+
"workflowId": "workflow//./src/domains/evals/workflow/functions/runDatasetItem//_runDatasetItemWorkflow",
|
|
97
97
|
"graph": {
|
|
98
98
|
"nodes": [],
|
|
99
99
|
"edges": []
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
|
-
"src/domains/evals/workflow/functions/
|
|
104
|
-
"
|
|
105
|
-
"workflowId": "workflow//./src/domains/evals/workflow/functions/
|
|
103
|
+
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
104
|
+
"_evaluateConversationWorkflow": {
|
|
105
|
+
"workflowId": "workflow//./src/domains/evals/workflow/functions/evaluateConversation//_evaluateConversationWorkflow",
|
|
106
106
|
"graph": {
|
|
107
107
|
"nodes": [],
|
|
108
108
|
"edges": []
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono13 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/routes/datasetTriggers.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono13.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types6 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/workflow/routes.d.ts
|
|
5
|
-
declare const workflowRoutes: Hono<
|
|
5
|
+
declare const workflowRoutes: Hono<hono_types6.BlankEnv, hono_types6.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { workflowRoutes };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types13 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/invitations.d.ts
|
|
6
6
|
declare const invitationsRoutes: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types13.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { invitationsRoutes as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types11 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/mcp.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
5
|
+
declare const app: Hono<hono_types11.BlankEnv, hono_types11.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types14 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/passwordResetLinks.d.ts
|
|
6
6
|
declare const passwordResetLinksRoutes: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types14.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { passwordResetLinksRoutes as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types5 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/signoz.d.ts
|
|
6
6
|
declare const app: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types5.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { app as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types8 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/users.d.ts
|
|
6
6
|
declare const usersRoutes: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types8.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { usersRoutes as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types9 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/mcp/routes/mcp.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
5
|
+
declare const app: Hono<hono_types9.BlankEnv, hono_types9.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -240,6 +240,7 @@ declare class Agent {
|
|
|
240
240
|
private getToolResultConversationId;
|
|
241
241
|
/**
|
|
242
242
|
* Analyze tool result structure and add helpful path hints for artifact creation
|
|
243
|
+
* Also adds tool call ID to the result for easy reference
|
|
243
244
|
* Only adds hints when artifact components are available
|
|
244
245
|
*/
|
|
245
246
|
private enhanceToolResultWithStructureHints;
|
|
@@ -605,7 +605,7 @@ var Agent = class {
|
|
|
605
605
|
throw new Error(`Tool "${toolName}" failed: ${errorMessage}. This tool is currently unavailable. Please try a different approach or inform the user of the issue.`);
|
|
606
606
|
}
|
|
607
607
|
const parsedResult = parseEmbeddedJson(rawResult);
|
|
608
|
-
const enhancedResult = this.enhanceToolResultWithStructureHints(parsedResult);
|
|
608
|
+
const enhancedResult = this.enhanceToolResultWithStructureHints(parsedResult, toolCallId);
|
|
609
609
|
toolSessionManager.recordToolResult(sessionId, {
|
|
610
610
|
toolCallId,
|
|
611
611
|
toolName,
|
|
@@ -1503,9 +1503,10 @@ ${typeof cleanResult === "string" ? cleanResult : JSON.stringify(cleanResult, nu
|
|
|
1503
1503
|
}
|
|
1504
1504
|
/**
|
|
1505
1505
|
* Analyze tool result structure and add helpful path hints for artifact creation
|
|
1506
|
+
* Also adds tool call ID to the result for easy reference
|
|
1506
1507
|
* Only adds hints when artifact components are available
|
|
1507
1508
|
*/
|
|
1508
|
-
enhanceToolResultWithStructureHints(result) {
|
|
1509
|
+
enhanceToolResultWithStructureHints(result, toolCallId) {
|
|
1509
1510
|
if (!result) return result;
|
|
1510
1511
|
if (!this.artifactComponents || this.artifactComponents.length === 0) return result;
|
|
1511
1512
|
let parsedForAnalysis = result;
|
|
@@ -1615,6 +1616,7 @@ ${typeof cleanResult === "string" ? cleanResult : JSON.stringify(cleanResult, nu
|
|
|
1615
1616
|
const uniqueSelectors = [...new Set(allSelectors)].slice(0, 15);
|
|
1616
1617
|
return {
|
|
1617
1618
|
...result,
|
|
1619
|
+
...toolCallId ? { _toolCallId: toolCallId } : {},
|
|
1618
1620
|
_structureHints: {
|
|
1619
1621
|
terminalPaths,
|
|
1620
1622
|
arrayPaths,
|
|
@@ -1625,6 +1627,7 @@ ${typeof cleanResult === "string" ? cleanResult : JSON.stringify(cleanResult, nu
|
|
|
1625
1627
|
maxDepthFound: Math.max(...allPaths.map((p) => (p.match(/\./g) || []).length)),
|
|
1626
1628
|
totalPathsFound: allPaths.length,
|
|
1627
1629
|
artifactGuidance: {
|
|
1630
|
+
toolCallId: "🔧 CRITICAL: Use the _toolCallId field from this result object. This is the exact tool call ID you must use in your artifact:create tag. NEVER generate or make up a tool call ID.",
|
|
1628
1631
|
creationFirst: "🚨 CRITICAL: Artifacts must be CREATED before they can be referenced. Use ArtifactCreate_[Type] components FIRST, then reference with Artifact components only if citing the SAME artifact again.",
|
|
1629
1632
|
baseSelector: "🎯 CRITICAL: Use base_selector to navigate to ONE specific item. For deeply nested structures with repeated keys, use full paths with specific filtering (e.g., \"result.data.content.items[?type=='guide' && status=='active']\")",
|
|
1630
1633
|
detailsSelector: "📝 Use relative selectors for specific fields (e.g., \"title\", \"metadata.category\", \"properties.status\", \"content.details\")",
|
|
@@ -105,7 +105,7 @@ declare function createInvocationIdempotentStep(params: {
|
|
|
105
105
|
projectId: string;
|
|
106
106
|
tenantId: string;
|
|
107
107
|
id: string;
|
|
108
|
-
status: "pending" | "completed" | "
|
|
108
|
+
status: "pending" | "completed" | "running" | "failed" | "cancelled";
|
|
109
109
|
resolvedPayload?: Record<string, unknown> | null | undefined;
|
|
110
110
|
};
|
|
111
111
|
alreadyExists: boolean;
|
|
@@ -145,7 +145,7 @@ declare function markRunningStep(params: {
|
|
|
145
145
|
projectId: string;
|
|
146
146
|
tenantId: string;
|
|
147
147
|
id: string;
|
|
148
|
-
status: "pending" | "completed" | "
|
|
148
|
+
status: "pending" | "completed" | "running" | "failed" | "cancelled";
|
|
149
149
|
resolvedPayload?: Record<string, unknown> | null | undefined;
|
|
150
150
|
}>;
|
|
151
151
|
/**
|
|
@@ -172,7 +172,7 @@ declare function addConversationIdStep(params: {
|
|
|
172
172
|
projectId: string;
|
|
173
173
|
tenantId: string;
|
|
174
174
|
id: string;
|
|
175
|
-
status: "pending" | "completed" | "
|
|
175
|
+
status: "pending" | "completed" | "running" | "failed" | "cancelled";
|
|
176
176
|
resolvedPayload?: Record<string, unknown> | null | undefined;
|
|
177
177
|
} | undefined>;
|
|
178
178
|
/**
|
|
@@ -197,7 +197,7 @@ declare function markCompletedStep(params: {
|
|
|
197
197
|
projectId: string;
|
|
198
198
|
tenantId: string;
|
|
199
199
|
id: string;
|
|
200
|
-
status: "pending" | "completed" | "
|
|
200
|
+
status: "pending" | "completed" | "running" | "failed" | "cancelled";
|
|
201
201
|
resolvedPayload?: Record<string, unknown> | null | undefined;
|
|
202
202
|
} | undefined>;
|
|
203
203
|
/**
|
|
@@ -222,7 +222,7 @@ declare function markFailedStep(params: {
|
|
|
222
222
|
projectId: string;
|
|
223
223
|
tenantId: string;
|
|
224
224
|
id: string;
|
|
225
|
-
status: "pending" | "completed" | "
|
|
225
|
+
status: "pending" | "completed" | "running" | "failed" | "cancelled";
|
|
226
226
|
resolvedPayload?: Record<string, unknown> | null | undefined;
|
|
227
227
|
} | undefined>;
|
|
228
228
|
/**
|