@inkeep/agents-run-api 0.19.5 → 0.19.6
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/{chunk-7IMXW4RD.js → chunk-IBMWBEXH.js} +1 -1
- package/dist/{chunk-NZHNG4A3.js → chunk-LHCIBW34.js} +3 -1
- package/dist/{chunk-XO4RG36I.js → chunk-RZXPMRBA.js} +1 -1
- package/dist/{chunk-QRT6EIUX.js → chunk-T5AYIGCU.js} +2 -2
- package/dist/{conversations-OFIM2WLJ.js → conversations-6OGSD67W.js} +1 -1
- package/dist/dbClient-CSP4YJOO.js +1 -0
- package/dist/index.cjs +8 -6
- package/dist/index.js +10 -10
- package/dist/instrumentation.cjs +3 -1
- package/dist/instrumentation.js +1 -1
- package/package.json +2 -2
- package/dist/dbClient-UQHVUUUY.js +0 -1
|
@@ -11,9 +11,11 @@ var envSchema = z.object({
|
|
|
11
11
|
TURSO_AUTH_TOKEN: z.string().optional(),
|
|
12
12
|
AGENTS_RUN_API_URL: z.string().optional().default("http://localhost:3003"),
|
|
13
13
|
LOG_LEVEL: z.enum(["trace", "debug", "info", "warn", "error"]).optional().default("debug"),
|
|
14
|
+
NANGO_SERVER_URL: z.string().optional().default("https://api.nango.dev"),
|
|
14
15
|
NANGO_SECRET_KEY: z.string().optional(),
|
|
15
|
-
OPENAI_API_KEY: z.string().optional(),
|
|
16
16
|
ANTHROPIC_API_KEY: z.string(),
|
|
17
|
+
OPENAI_API_KEY: z.string().optional(),
|
|
18
|
+
GOOGLE_GENERATIVE_AI_API_KEY: z.string().optional(),
|
|
17
19
|
INKEEP_AGENTS_RUN_API_BYPASS_SECRET: z.string().optional(),
|
|
18
20
|
OTEL_BSP_SCHEDULE_DELAY: z.coerce.number().optional().default(500),
|
|
19
21
|
OTEL_BSP_MAX_EXPORT_BATCH_SIZE: z.coerce.number().optional().default(64)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getLogger } from './chunk-A2S7GSHL.js';
|
|
2
|
-
import { env } from './chunk-
|
|
2
|
+
import { env } from './chunk-LHCIBW34.js';
|
|
3
3
|
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
|
|
4
4
|
import { BaggageSpanProcessor, ALLOW_ALL_BAGGAGE_KEYS } from '@opentelemetry/baggage-span-processor';
|
|
5
5
|
import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dbClient_default } from './chunk-
|
|
1
|
+
import { dbClient_default } from './chunk-IBMWBEXH.js';
|
|
2
2
|
import { createMessage, getConversationHistory } from '@inkeep/agents-core';
|
|
3
3
|
import { nanoid } from 'nanoid';
|
|
4
4
|
|
|
@@ -191,7 +191,7 @@ async function getConversationScopedArtifacts(params) {
|
|
|
191
191
|
return [];
|
|
192
192
|
}
|
|
193
193
|
const { getLedgerArtifacts } = await import('@inkeep/agents-core');
|
|
194
|
-
const dbClient = (await import('./dbClient-
|
|
194
|
+
const dbClient = (await import('./dbClient-CSP4YJOO.js')).default;
|
|
195
195
|
const visibleTaskIds = visibleMessages.map((msg) => msg.taskId).filter((taskId) => Boolean(taskId));
|
|
196
196
|
const referenceArtifacts = [];
|
|
197
197
|
for (const taskId of visibleTaskIds) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createDefaultConversationHistoryConfig, getConversationScopedArtifacts, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-
|
|
1
|
+
export { createDefaultConversationHistoryConfig, getConversationScopedArtifacts, getFormattedConversationHistory, getFullConversationContext, getScopedHistory, getUserFacingHistory, saveA2AMessageResponse } from './chunk-T5AYIGCU.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { dbClient_default as default } from './chunk-IBMWBEXH.js';
|
package/dist/index.cjs
CHANGED
|
@@ -75,9 +75,11 @@ var init_env = __esm({
|
|
|
75
75
|
TURSO_AUTH_TOKEN: z6.z.string().optional(),
|
|
76
76
|
AGENTS_RUN_API_URL: z6.z.string().optional().default("http://localhost:3003"),
|
|
77
77
|
LOG_LEVEL: z6.z.enum(["trace", "debug", "info", "warn", "error"]).optional().default("debug"),
|
|
78
|
+
NANGO_SERVER_URL: z6.z.string().optional().default("https://api.nango.dev"),
|
|
78
79
|
NANGO_SECRET_KEY: z6.z.string().optional(),
|
|
79
|
-
OPENAI_API_KEY: z6.z.string().optional(),
|
|
80
80
|
ANTHROPIC_API_KEY: z6.z.string(),
|
|
81
|
+
OPENAI_API_KEY: z6.z.string().optional(),
|
|
82
|
+
GOOGLE_GENERATIVE_AI_API_KEY: z6.z.string().optional(),
|
|
81
83
|
INKEEP_AGENTS_RUN_API_BYPASS_SECRET: z6.z.string().optional(),
|
|
82
84
|
OTEL_BSP_SCHEDULE_DELAY: z6.z.coerce.number().optional().default(500),
|
|
83
85
|
OTEL_BSP_MAX_EXPORT_BATCH_SIZE: z6.z.coerce.number().optional().default(64)
|
|
@@ -3937,7 +3939,7 @@ ${this.statusUpdateState?.config.prompt?.trim() || ""}`;
|
|
|
3937
3939
|
"agent_session.id": this.sessionId,
|
|
3938
3940
|
"artifact.id": artifactData.artifactId,
|
|
3939
3941
|
"artifact.type": artifactData.artifactType || "unknown",
|
|
3940
|
-
"artifact.
|
|
3942
|
+
"artifact.sub_agent_id": artifactData.subAgentId || "unknown",
|
|
3941
3943
|
"artifact.tool_call_id": artifactData.metadata?.toolCallId || "unknown",
|
|
3942
3944
|
"artifact.data": JSON.stringify(artifactData.data, null, 2),
|
|
3943
3945
|
"tenant.id": artifactData.tenantId || "unknown",
|
|
@@ -7597,7 +7599,7 @@ var Agent = class {
|
|
|
7597
7599
|
"conversation.id": this.conversationId,
|
|
7598
7600
|
"tool.purpose": toolDefinition.description || "No description provided",
|
|
7599
7601
|
"ai.toolType": toolType || "unknown",
|
|
7600
|
-
"ai.
|
|
7602
|
+
"ai.subAgentName": this.config.name || "unknown",
|
|
7601
7603
|
"agent.id": this.config.agentId || "unknown"
|
|
7602
7604
|
});
|
|
7603
7605
|
}
|
|
@@ -7884,7 +7886,7 @@ var Agent = class {
|
|
|
7884
7886
|
originalToolName: tool3.name
|
|
7885
7887
|
}),
|
|
7886
7888
|
"ai.toolType": "mcp",
|
|
7887
|
-
"ai.
|
|
7889
|
+
"ai.subAgentName": this.config.name || "unknown",
|
|
7888
7890
|
"conversation.id": this.conversationId || "unknown",
|
|
7889
7891
|
"agent.id": this.config.agentId || "unknown",
|
|
7890
7892
|
"tenant.id": this.config.tenantId || "unknown",
|
|
@@ -8606,7 +8608,7 @@ var Agent = class {
|
|
|
8606
8608
|
"agent.load_tools",
|
|
8607
8609
|
{
|
|
8608
8610
|
attributes: {
|
|
8609
|
-
"
|
|
8611
|
+
"subAgent.name": this.config.name,
|
|
8610
8612
|
"session.id": sessionId
|
|
8611
8613
|
}
|
|
8612
8614
|
},
|
|
@@ -10761,7 +10763,7 @@ var ExecutionHandler = class {
|
|
|
10761
10763
|
span.setAttributes({
|
|
10762
10764
|
"ai.response.content": textContent || "No response content",
|
|
10763
10765
|
"ai.response.timestamp": (/* @__PURE__ */ new Date()).toISOString(),
|
|
10764
|
-
"ai.
|
|
10766
|
+
"ai.subAgent.name": currentAgentId
|
|
10765
10767
|
});
|
|
10766
10768
|
await agentsCore.createMessage(dbClient_default)({
|
|
10767
10769
|
id: nanoid.nanoid(),
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { flushBatchProcessor } from './chunk-
|
|
1
|
+
import { flushBatchProcessor } from './chunk-RZXPMRBA.js';
|
|
2
2
|
import { getLogger } from './chunk-A2S7GSHL.js';
|
|
3
|
-
import { getFormattedConversationHistory, createDefaultConversationHistoryConfig, saveA2AMessageResponse } from './chunk-
|
|
4
|
-
import { dbClient_default } from './chunk-
|
|
5
|
-
import { env } from './chunk-
|
|
3
|
+
import { getFormattedConversationHistory, createDefaultConversationHistoryConfig, saveA2AMessageResponse } from './chunk-T5AYIGCU.js';
|
|
4
|
+
import { dbClient_default } from './chunk-IBMWBEXH.js';
|
|
5
|
+
import { env } from './chunk-LHCIBW34.js';
|
|
6
6
|
import { __publicField } from './chunk-PKBMQBKP.js';
|
|
7
7
|
import { getTracer, HeadersScopeSchema, getRequestExecutionContext, createApiError, getAgentWithDefaultSubAgent, contextValidationMiddleware, getConversationId, getFullAgent, createOrGetConversation, getActiveAgentForConversation, setActiveAgentForConversation, getSubAgentById, handleContextResolution, createMessage, commonGetErrorResponses, loggerFactory, createDefaultCredentialStores, CredentialStoreRegistry, listTaskIdsByContextId, getTask, getLedgerArtifacts, upsertLedgerArtifact, createTask, updateTask, setSpanWithError, updateConversation, handleApiError, TaskState, setActiveAgentForThread, getConversation, getAgentById, getRelatedAgentsForAgent, getToolsForAgent, getDataComponentsForAgent, getArtifactComponentsForAgent, dbResultToMcpTool, validateAndGetApiKey, getProject, ContextResolver, CredentialStuffer, MCPServerType, getCredentialReference, McpClient, getFunctionToolsForSubAgent, getFunction, getContextConfigById, getFullAgentDefinition, TemplateEngine, agentHasArtifactComponents, MCPTransportType, SPAN_KEYS, getExternalAgent } from '@inkeep/agents-core';
|
|
8
8
|
import { otel } from '@hono/otel';
|
|
@@ -3023,7 +3023,7 @@ ${this.statusUpdateState?.config.prompt?.trim() || ""}`;
|
|
|
3023
3023
|
"agent_session.id": this.sessionId,
|
|
3024
3024
|
"artifact.id": artifactData.artifactId,
|
|
3025
3025
|
"artifact.type": artifactData.artifactType || "unknown",
|
|
3026
|
-
"artifact.
|
|
3026
|
+
"artifact.sub_agent_id": artifactData.subAgentId || "unknown",
|
|
3027
3027
|
"artifact.tool_call_id": artifactData.metadata?.toolCallId || "unknown",
|
|
3028
3028
|
"artifact.data": JSON.stringify(artifactData.data, null, 2),
|
|
3029
3029
|
"tenant.id": artifactData.tenantId || "unknown",
|
|
@@ -6658,7 +6658,7 @@ var Agent = class {
|
|
|
6658
6658
|
"conversation.id": this.conversationId,
|
|
6659
6659
|
"tool.purpose": toolDefinition.description || "No description provided",
|
|
6660
6660
|
"ai.toolType": toolType || "unknown",
|
|
6661
|
-
"ai.
|
|
6661
|
+
"ai.subAgentName": this.config.name || "unknown",
|
|
6662
6662
|
"agent.id": this.config.agentId || "unknown"
|
|
6663
6663
|
});
|
|
6664
6664
|
}
|
|
@@ -6945,7 +6945,7 @@ var Agent = class {
|
|
|
6945
6945
|
originalToolName: tool3.name
|
|
6946
6946
|
}),
|
|
6947
6947
|
"ai.toolType": "mcp",
|
|
6948
|
-
"ai.
|
|
6948
|
+
"ai.subAgentName": this.config.name || "unknown",
|
|
6949
6949
|
"conversation.id": this.conversationId || "unknown",
|
|
6950
6950
|
"agent.id": this.config.agentId || "unknown",
|
|
6951
6951
|
"tenant.id": this.config.tenantId || "unknown",
|
|
@@ -7310,7 +7310,7 @@ var Agent = class {
|
|
|
7310
7310
|
inputSchema: tool3.inputSchema || tool3.parameters || {},
|
|
7311
7311
|
usageGuidelines: name.startsWith("transfer_to_") || name.startsWith("delegate_to_") ? `Use this tool to ${name.startsWith("transfer_to_") ? "transfer" : "delegate"} to another agent when appropriate.` : "Use this tool when appropriate for the task at hand."
|
|
7312
7312
|
}));
|
|
7313
|
-
const { getConversationScopedArtifacts } = await import('./conversations-
|
|
7313
|
+
const { getConversationScopedArtifacts } = await import('./conversations-6OGSD67W.js');
|
|
7314
7314
|
const historyConfig = this.config.conversationHistoryConfig ?? createDefaultConversationHistoryConfig();
|
|
7315
7315
|
const referenceArtifacts = await getConversationScopedArtifacts({
|
|
7316
7316
|
tenantId: this.config.tenantId,
|
|
@@ -7667,7 +7667,7 @@ var Agent = class {
|
|
|
7667
7667
|
"agent.load_tools",
|
|
7668
7668
|
{
|
|
7669
7669
|
attributes: {
|
|
7670
|
-
"
|
|
7670
|
+
"subAgent.name": this.config.name,
|
|
7671
7671
|
"session.id": sessionId
|
|
7672
7672
|
}
|
|
7673
7673
|
},
|
|
@@ -9808,7 +9808,7 @@ var ExecutionHandler = class {
|
|
|
9808
9808
|
span.setAttributes({
|
|
9809
9809
|
"ai.response.content": textContent || "No response content",
|
|
9810
9810
|
"ai.response.timestamp": (/* @__PURE__ */ new Date()).toISOString(),
|
|
9811
|
-
"ai.
|
|
9811
|
+
"ai.subAgent.name": currentAgentId
|
|
9812
9812
|
});
|
|
9813
9813
|
await createMessage(dbClient_default)({
|
|
9814
9814
|
id: nanoid(),
|
package/dist/instrumentation.cjs
CHANGED
|
@@ -22,9 +22,11 @@ var envSchema = zod.z.object({
|
|
|
22
22
|
TURSO_AUTH_TOKEN: zod.z.string().optional(),
|
|
23
23
|
AGENTS_RUN_API_URL: zod.z.string().optional().default("http://localhost:3003"),
|
|
24
24
|
LOG_LEVEL: zod.z.enum(["trace", "debug", "info", "warn", "error"]).optional().default("debug"),
|
|
25
|
+
NANGO_SERVER_URL: zod.z.string().optional().default("https://api.nango.dev"),
|
|
25
26
|
NANGO_SECRET_KEY: zod.z.string().optional(),
|
|
26
|
-
OPENAI_API_KEY: zod.z.string().optional(),
|
|
27
27
|
ANTHROPIC_API_KEY: zod.z.string(),
|
|
28
|
+
OPENAI_API_KEY: zod.z.string().optional(),
|
|
29
|
+
GOOGLE_GENERATIVE_AI_API_KEY: zod.z.string().optional(),
|
|
28
30
|
INKEEP_AGENTS_RUN_API_BYPASS_SECRET: zod.z.string().optional(),
|
|
29
31
|
OTEL_BSP_SCHEDULE_DELAY: zod.z.coerce.number().optional().default(500),
|
|
30
32
|
OTEL_BSP_MAX_EXPORT_BATCH_SIZE: zod.z.coerce.number().optional().default(64)
|
package/dist/instrumentation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { defaultBatchProcessor, defaultContextManager, defaultInstrumentations, defaultResource, defaultSDK, defaultSpanProcessors, defaultTextMapPropagator, flushBatchProcessor } from './chunk-
|
|
1
|
+
export { defaultBatchProcessor, defaultContextManager, defaultInstrumentations, defaultResource, defaultSDK, defaultSpanProcessors, defaultTextMapPropagator, flushBatchProcessor } from './chunk-RZXPMRBA.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-run-api",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.6",
|
|
4
4
|
"description": "Agents Run API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"traverse": "^0.6.11",
|
|
52
52
|
"ts-pattern": "^5.7.1",
|
|
53
53
|
"zod": "^4.1.11",
|
|
54
|
-
"@inkeep/agents-core": "^0.19.
|
|
54
|
+
"@inkeep/agents-core": "^0.19.6"
|
|
55
55
|
},
|
|
56
56
|
"optionalDependencies": {
|
|
57
57
|
"keytar": "^7.9.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { dbClient_default as default } from './chunk-7IMXW4RD.js';
|