@inkeep/agents-api 0.0.0-dev-20260217163807 → 0.0.0-dev-20260217190128
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 +20 -20
- package/dist/createApp.d.ts +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/availableAgents.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/passwordResetLinks.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.js +130 -0
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/tools/distill-conversation-history-tool.d.ts +1 -1
- package/dist/domains/run/types/chat.d.ts +4 -4
- package/dist/domains/run/utils/token-estimator.d.ts +2 -2
- package/dist/domains/run/workflow/steps/scheduledTriggerSteps.d.ts +5 -5
- package/dist/factory.d.ts +267 -267
- package/dist/index.d.ts +264 -264
- 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 -7
|
@@ -12,6 +12,20 @@
|
|
|
12
12
|
"stepId": "__builtin_response_text"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
+
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
16
|
+
"executeEvaluatorStep": {
|
|
17
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//executeEvaluatorStep"
|
|
18
|
+
},
|
|
19
|
+
"getConversationStep": {
|
|
20
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getConversationStep"
|
|
21
|
+
},
|
|
22
|
+
"getEvaluatorsStep": {
|
|
23
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getEvaluatorsStep"
|
|
24
|
+
},
|
|
25
|
+
"logStep": {
|
|
26
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
15
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": {
|
|
16
30
|
"fetch": {
|
|
17
31
|
"stepId": "step//workflow@4.1.0-beta.54//fetch"
|
|
@@ -31,20 +45,6 @@
|
|
|
31
45
|
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//logStep"
|
|
32
46
|
}
|
|
33
47
|
},
|
|
34
|
-
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
35
|
-
"executeEvaluatorStep": {
|
|
36
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//executeEvaluatorStep"
|
|
37
|
-
},
|
|
38
|
-
"getConversationStep": {
|
|
39
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getConversationStep"
|
|
40
|
-
},
|
|
41
|
-
"getEvaluatorsStep": {
|
|
42
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getEvaluatorsStep"
|
|
43
|
-
},
|
|
44
|
-
"logStep": {
|
|
45
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
48
|
"src/domains/run/workflow/steps/scheduledTriggerSteps.ts": {
|
|
49
49
|
"addConversationIdStep": {
|
|
50
50
|
"stepId": "step//./src/domains/run/workflow/steps/scheduledTriggerSteps//addConversationIdStep"
|
|
@@ -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/evaluateConversation.ts": {
|
|
95
|
+
"_evaluateConversationWorkflow": {
|
|
96
|
+
"workflowId": "workflow//./src/domains/evals/workflow/functions/evaluateConversation//_evaluateConversationWorkflow",
|
|
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/runDatasetItem.ts": {
|
|
104
|
+
"_runDatasetItemWorkflow": {
|
|
105
|
+
"workflowId": "workflow//./src/domains/evals/workflow/functions/runDatasetItem//_runDatasetItemWorkflow",
|
|
106
106
|
"graph": {
|
|
107
107
|
"nodes": [],
|
|
108
108
|
"edges": []
|
package/dist/createApp.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AppConfig } from "./types/app.js";
|
|
2
2
|
import "./types/index.js";
|
|
3
3
|
import { Hono } from "hono";
|
|
4
|
-
import * as
|
|
4
|
+
import * as hono_types4 from "hono/types";
|
|
5
5
|
|
|
6
6
|
//#region src/createApp.d.ts
|
|
7
7
|
declare const isWebhookRoute: (path: string) => boolean;
|
|
8
|
-
declare function createAgentsHono(config: AppConfig): Hono<
|
|
8
|
+
declare function createAgentsHono(config: AppConfig): Hono<hono_types4.BlankEnv, hono_types4.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { createAgentsHono, isWebhookRoute };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core3 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data/db/manageDbClient.d.ts
|
|
4
|
-
declare const manageDbClient:
|
|
4
|
+
declare const manageDbClient: _inkeep_agents_core3.AgentsManageDatabaseClient;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { manageDbClient as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core2 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data/db/runDbClient.d.ts
|
|
4
|
-
declare const runDbClient:
|
|
4
|
+
declare const runDbClient: _inkeep_agents_core2.AgentsRunDatabaseClient;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { runDbClient as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono11 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/routes/datasetTriggers.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono11.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -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/index.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,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono15 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/availableAgents.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono15.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono16 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/conversations.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono16.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono14 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono14.Env, {}, "/">;
|
|
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_types8 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_types8.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_types9 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_types9.BlankEnv, hono_types9.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_types12 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_types12.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_types3 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_types3.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { app as default };
|
|
@@ -100,6 +100,136 @@ app.post("/query", async (c) => {
|
|
|
100
100
|
}, 500);
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
|
+
app.post("/query-batch", async (c) => {
|
|
104
|
+
const { paginationPayload, detailPayloadTemplate } = await c.req.json();
|
|
105
|
+
if (!paginationPayload || !detailPayloadTemplate) return c.json({
|
|
106
|
+
error: "Bad Request",
|
|
107
|
+
message: "paginationPayload and detailPayloadTemplate are required"
|
|
108
|
+
}, 400);
|
|
109
|
+
const requestedProjectId = paginationPayload.projectId;
|
|
110
|
+
const tenantId = c.get("tenantId");
|
|
111
|
+
const userId = c.get("userId");
|
|
112
|
+
const tenantRole = c.get("tenantRole");
|
|
113
|
+
if (!userId || !tenantId) throw createApiError({
|
|
114
|
+
code: "unauthorized",
|
|
115
|
+
message: "User or organization context not found",
|
|
116
|
+
instance: c.req.path
|
|
117
|
+
});
|
|
118
|
+
if (requestedProjectId) {
|
|
119
|
+
if (!(userId === "system" || userId?.startsWith("apikey:"))) {
|
|
120
|
+
if (!await canViewProject({
|
|
121
|
+
userId,
|
|
122
|
+
projectId: requestedProjectId,
|
|
123
|
+
orgRole: tenantRole
|
|
124
|
+
})) {
|
|
125
|
+
logger.warn({
|
|
126
|
+
tenantId,
|
|
127
|
+
projectId: requestedProjectId,
|
|
128
|
+
userId
|
|
129
|
+
}, "Project not found or access denied");
|
|
130
|
+
return c.json({
|
|
131
|
+
error: "Forbidden",
|
|
132
|
+
message: "You do not have access to this project"
|
|
133
|
+
}, 403);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
const signozUrl = env.SIGNOZ_URL || env.PUBLIC_SIGNOZ_URL;
|
|
138
|
+
const signozApiKey = env.SIGNOZ_API_KEY;
|
|
139
|
+
if (!signozUrl || !signozApiKey) {
|
|
140
|
+
logger.error({}, "SigNoz not configured");
|
|
141
|
+
return c.json({
|
|
142
|
+
error: "Service Unavailable",
|
|
143
|
+
message: "SigNoz is not configured"
|
|
144
|
+
}, 500);
|
|
145
|
+
}
|
|
146
|
+
const signozEndpoint = `${signozUrl}/api/v4/query_range`;
|
|
147
|
+
const signozHeaders = {
|
|
148
|
+
"Content-Type": "application/json",
|
|
149
|
+
"SIGNOZ-API-KEY": signozApiKey
|
|
150
|
+
};
|
|
151
|
+
try {
|
|
152
|
+
const securedPagination = enforceSecurityFilters(paginationPayload, tenantId, requestedProjectId);
|
|
153
|
+
const step1 = await axios.post(signozEndpoint, securedPagination, {
|
|
154
|
+
headers: signozHeaders,
|
|
155
|
+
timeout: 3e4
|
|
156
|
+
});
|
|
157
|
+
const conversationIds = ((step1.data?.data?.result?.find((r) => r?.queryName === "pageConversations"))?.series ?? []).map((s) => s.labels?.["conversation.id"]).filter(Boolean);
|
|
158
|
+
if (conversationIds.length === 0) return c.json({
|
|
159
|
+
paginationResponse: step1.data,
|
|
160
|
+
detailResponse: null
|
|
161
|
+
});
|
|
162
|
+
const securedDetail = enforceSecurityFilters(injectConversationIdFilter(detailPayloadTemplate, conversationIds), tenantId, requestedProjectId);
|
|
163
|
+
const step2 = await axios.post(signozEndpoint, securedDetail, {
|
|
164
|
+
headers: signozHeaders,
|
|
165
|
+
timeout: 3e4
|
|
166
|
+
});
|
|
167
|
+
return c.json({
|
|
168
|
+
paginationResponse: step1.data,
|
|
169
|
+
detailResponse: step2.data
|
|
170
|
+
});
|
|
171
|
+
} catch (error) {
|
|
172
|
+
if (axios.isAxiosError(error)) {
|
|
173
|
+
if (error.code === "ECONNREFUSED" || error.code === "ENOTFOUND") {
|
|
174
|
+
logger.error({ error: error.message }, "SigNoz service unavailable");
|
|
175
|
+
return c.json({
|
|
176
|
+
error: "Service Unavailable",
|
|
177
|
+
message: "SigNoz service is unavailable"
|
|
178
|
+
}, 503);
|
|
179
|
+
}
|
|
180
|
+
if (error.response?.status === 401 || error.response?.status === 403) {
|
|
181
|
+
logger.error({ status: error.response.status }, "SigNoz authentication failed");
|
|
182
|
+
return c.json({
|
|
183
|
+
error: "Internal Server Error",
|
|
184
|
+
message: "SigNoz authentication failed"
|
|
185
|
+
}, 500);
|
|
186
|
+
}
|
|
187
|
+
if (error.response?.status === 400) {
|
|
188
|
+
logger.warn({ status: error.response.status }, "Invalid SigNoz query");
|
|
189
|
+
return c.json({
|
|
190
|
+
error: "Bad Request",
|
|
191
|
+
message: "Invalid query parameters"
|
|
192
|
+
}, 400);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
logger.error({ error }, "SigNoz query-batch failed");
|
|
196
|
+
return c.json({
|
|
197
|
+
error: "Internal Server Error",
|
|
198
|
+
message: "Failed to query SigNoz"
|
|
199
|
+
}, 500);
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
/**
|
|
203
|
+
* Inject a `conversation.id IN [...]` filter into every builder query
|
|
204
|
+
* of a SigNoz composite query payload.
|
|
205
|
+
*/
|
|
206
|
+
function injectConversationIdFilter(payload, conversationIds) {
|
|
207
|
+
const modified = JSON.parse(JSON.stringify(payload));
|
|
208
|
+
const builderQueries = modified.compositeQuery?.builderQueries;
|
|
209
|
+
if (!builderQueries) return modified;
|
|
210
|
+
const inFilter = {
|
|
211
|
+
key: {
|
|
212
|
+
key: "conversation.id",
|
|
213
|
+
dataType: "string",
|
|
214
|
+
type: "tag",
|
|
215
|
+
isColumn: false,
|
|
216
|
+
isJSON: false,
|
|
217
|
+
id: "false"
|
|
218
|
+
},
|
|
219
|
+
op: "in",
|
|
220
|
+
value: conversationIds
|
|
221
|
+
};
|
|
222
|
+
for (const queryKey in builderQueries) {
|
|
223
|
+
const query = builderQueries[queryKey];
|
|
224
|
+
if (!query.filters) query.filters = {
|
|
225
|
+
op: "AND",
|
|
226
|
+
items: []
|
|
227
|
+
};
|
|
228
|
+
query.filters.items = query.filters.items.filter((item) => !(item.key?.key === "conversation.id" && item.op === "in"));
|
|
229
|
+
query.filters.items.push(inFilter);
|
|
230
|
+
}
|
|
231
|
+
return modified;
|
|
232
|
+
}
|
|
103
233
|
app.get("/health", async (c) => {
|
|
104
234
|
const signozUrl = env.SIGNOZ_URL || env.PUBLIC_SIGNOZ_URL;
|
|
105
235
|
const signozApiKey = env.SIGNOZ_API_KEY;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types13 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_types13.BlankEnv, hono_types13.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentConfig, DelegateRelation } from "./Agent.js";
|
|
2
2
|
import { InternalRelation } from "../utils/project.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _inkeep_agents_core0 from "@inkeep/agents-core";
|
|
4
4
|
import { CredentialStoreRegistry, FullExecutionContext } from "@inkeep/agents-core";
|
|
5
5
|
import * as ai0 from "ai";
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ declare function createDelegateToAgentTool({
|
|
|
44
44
|
message: string;
|
|
45
45
|
}, {
|
|
46
46
|
toolCallId: any;
|
|
47
|
-
result:
|
|
47
|
+
result: _inkeep_agents_core0.Message | _inkeep_agents_core0.Task;
|
|
48
48
|
}>;
|
|
49
49
|
/**
|
|
50
50
|
* Parameters for building a transfer relation config
|
|
@@ -32,9 +32,9 @@ declare const ConversationHistorySummarySchema: z.ZodObject<{
|
|
|
32
32
|
tool_call_id: z.ZodString;
|
|
33
33
|
content_summary: z.ZodString;
|
|
34
34
|
relevance: z.ZodEnum<{
|
|
35
|
+
low: "low";
|
|
35
36
|
high: "high";
|
|
36
37
|
medium: "medium";
|
|
37
|
-
low: "low";
|
|
38
38
|
}>;
|
|
39
39
|
}, z.core.$strip>>>;
|
|
40
40
|
conversation_flow: z.ZodObject<{
|
|
@@ -9,9 +9,9 @@ declare const ImageUrlSchema: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
|
9
9
|
/** OpenAI-specific image detail level. Has no effect on other providers. */
|
|
10
10
|
declare const ImageDetailEnum: readonly ["auto", "low", "high"];
|
|
11
11
|
declare const ImageDetailSchema: z.ZodEnum<{
|
|
12
|
-
high: "high";
|
|
13
|
-
low: "low";
|
|
14
12
|
auto: "auto";
|
|
13
|
+
low: "low";
|
|
14
|
+
high: "high";
|
|
15
15
|
}>;
|
|
16
16
|
type ImageDetail = z.infer<typeof ImageDetailSchema>;
|
|
17
17
|
declare const ImageContentItemSchema: z.ZodObject<{
|
|
@@ -19,9 +19,9 @@ declare const ImageContentItemSchema: z.ZodObject<{
|
|
|
19
19
|
image_url: z.ZodObject<{
|
|
20
20
|
url: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
21
21
|
detail: z.ZodOptional<z.ZodEnum<{
|
|
22
|
-
high: "high";
|
|
23
|
-
low: "low";
|
|
24
22
|
auto: "auto";
|
|
23
|
+
low: "low";
|
|
24
|
+
high: "high";
|
|
25
25
|
}>>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
}, z.core.$strip>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core1 from "@inkeep/agents-core";
|
|
2
2
|
import { BreakdownComponentDef, ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown } from "@inkeep/agents-core";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/run/utils/token-estimator.d.ts
|
|
@@ -17,7 +17,7 @@ interface AssembleResult {
|
|
|
17
17
|
/** The assembled prompt string */
|
|
18
18
|
prompt: string;
|
|
19
19
|
/** Token breakdown for each component */
|
|
20
|
-
breakdown:
|
|
20
|
+
breakdown: _inkeep_agents_core1.ContextBreakdown;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
23
|
export { AssembleResult, type BreakdownComponentDef, type ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown, estimateTokens };
|
|
@@ -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
|
/**
|