@inkeep/agents-core 0.30.2 → 0.30.4

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.
@@ -32,8 +32,8 @@ declare const SPAN_KEYS: {
32
32
  readonly AGENT_NAME: "agent.name";
33
33
  readonly TENANT_ID: "tenant.id";
34
34
  readonly PROJECT_ID: "project.id";
35
- readonly AI_SUB_AGENT_NAME: "ai.subAgentName";
36
- readonly AI_SUB_AGENT_NAME_ALT: "ai.subAgent.name";
35
+ readonly SUB_AGENT_NAME: "subAgent.name";
36
+ readonly SUB_AGENT_ID: "subAgent.id";
37
37
  readonly AI_OPERATION_ID: "ai.operationId";
38
38
  readonly AI_RESPONSE_TIMESTAMP: "ai.response.timestamp";
39
39
  readonly AI_RESPONSE_CONTENT: "ai.response.content";
@@ -44,6 +44,8 @@ declare const SPAN_KEYS: {
44
44
  readonly AI_PROMPT_MESSAGES: "ai.prompt.messages";
45
45
  readonly AI_MODEL_PROVIDER: "ai.model.provider";
46
46
  readonly AI_TELEMETRY_FUNCTION_ID: "ai.telemetry.functionId";
47
+ readonly AI_TELEMETRY_SUB_AGENT_ID: "ai.telemetry.metadata.subAgentId";
48
+ readonly AI_TELEMETRY_SUB_AGENT_NAME: "ai.telemetry.metadata.subAgentName";
47
49
  readonly AI_MODEL_ID: "ai.model.id";
48
50
  readonly AI_TOOL_CALL_NAME: "ai.toolCall.name";
49
51
  readonly AI_TOOL_CALL_RESULT: "ai.toolCall.result";
@@ -51,8 +53,6 @@ declare const SPAN_KEYS: {
51
53
  readonly AI_TOOL_CALL_ID: "ai.toolCall.id";
52
54
  readonly AI_TOOL_TYPE: "ai.toolType";
53
55
  readonly TOOL_PURPOSE: "tool.purpose";
54
- readonly SUB_AGENT_ID: "subagent.id";
55
- readonly SUB_AGENT_NAME: "subagent.name";
56
56
  readonly GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens";
57
57
  readonly GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens";
58
58
  readonly CONTEXT_URL: "context.url";
@@ -75,7 +75,6 @@ declare const SPAN_KEYS: {
75
75
  readonly CONVERSATION_ID: "conversation.id";
76
76
  readonly ARTIFACT_ID: "artifact.id";
77
77
  readonly ARTIFACT_TYPE: "artifact.type";
78
- readonly ARTIFACT_SUB_AGENT_ID: "artifact.sub_agent_id";
79
78
  readonly ARTIFACT_TOOL_CALL_ID: "artifact.tool_call_id";
80
79
  readonly ARTIFACT_DATA: "artifact.data";
81
80
  readonly ARTIFACT_NAME: "artifact.name";
@@ -32,8 +32,8 @@ declare const SPAN_KEYS: {
32
32
  readonly AGENT_NAME: "agent.name";
33
33
  readonly TENANT_ID: "tenant.id";
34
34
  readonly PROJECT_ID: "project.id";
35
- readonly AI_SUB_AGENT_NAME: "ai.subAgentName";
36
- readonly AI_SUB_AGENT_NAME_ALT: "ai.subAgent.name";
35
+ readonly SUB_AGENT_NAME: "subAgent.name";
36
+ readonly SUB_AGENT_ID: "subAgent.id";
37
37
  readonly AI_OPERATION_ID: "ai.operationId";
38
38
  readonly AI_RESPONSE_TIMESTAMP: "ai.response.timestamp";
39
39
  readonly AI_RESPONSE_CONTENT: "ai.response.content";
@@ -44,6 +44,8 @@ declare const SPAN_KEYS: {
44
44
  readonly AI_PROMPT_MESSAGES: "ai.prompt.messages";
45
45
  readonly AI_MODEL_PROVIDER: "ai.model.provider";
46
46
  readonly AI_TELEMETRY_FUNCTION_ID: "ai.telemetry.functionId";
47
+ readonly AI_TELEMETRY_SUB_AGENT_ID: "ai.telemetry.metadata.subAgentId";
48
+ readonly AI_TELEMETRY_SUB_AGENT_NAME: "ai.telemetry.metadata.subAgentName";
47
49
  readonly AI_MODEL_ID: "ai.model.id";
48
50
  readonly AI_TOOL_CALL_NAME: "ai.toolCall.name";
49
51
  readonly AI_TOOL_CALL_RESULT: "ai.toolCall.result";
@@ -51,8 +53,6 @@ declare const SPAN_KEYS: {
51
53
  readonly AI_TOOL_CALL_ID: "ai.toolCall.id";
52
54
  readonly AI_TOOL_TYPE: "ai.toolType";
53
55
  readonly TOOL_PURPOSE: "tool.purpose";
54
- readonly SUB_AGENT_ID: "subagent.id";
55
- readonly SUB_AGENT_NAME: "subagent.name";
56
56
  readonly GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens";
57
57
  readonly GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens";
58
58
  readonly CONTEXT_URL: "context.url";
@@ -75,7 +75,6 @@ declare const SPAN_KEYS: {
75
75
  readonly CONVERSATION_ID: "conversation.id";
76
76
  readonly ARTIFACT_ID: "artifact.id";
77
77
  readonly ARTIFACT_TYPE: "artifact.type";
78
- readonly ARTIFACT_SUB_AGENT_ID: "artifact.sub_agent_id";
79
78
  readonly ARTIFACT_TOOL_CALL_ID: "artifact.tool_call_id";
80
79
  readonly ARTIFACT_DATA: "artifact.data";
81
80
  readonly ARTIFACT_NAME: "artifact.name";
@@ -34,9 +34,9 @@ var SPAN_KEYS = {
34
34
  AGENT_NAME: "agent.name",
35
35
  TENANT_ID: "tenant.id",
36
36
  PROJECT_ID: "project.id",
37
+ SUB_AGENT_NAME: "subAgent.name",
38
+ SUB_AGENT_ID: "subAgent.id",
37
39
  // AI/Agent attributes
38
- AI_SUB_AGENT_NAME: "ai.subAgentName",
39
- AI_SUB_AGENT_NAME_ALT: "ai.subAgent.name",
40
40
  AI_OPERATION_ID: "ai.operationId",
41
41
  AI_RESPONSE_TIMESTAMP: "ai.response.timestamp",
42
42
  AI_RESPONSE_CONTENT: "ai.response.content",
@@ -47,6 +47,8 @@ var SPAN_KEYS = {
47
47
  AI_PROMPT_MESSAGES: "ai.prompt.messages",
48
48
  AI_MODEL_PROVIDER: "ai.model.provider",
49
49
  AI_TELEMETRY_FUNCTION_ID: "ai.telemetry.functionId",
50
+ AI_TELEMETRY_SUB_AGENT_ID: "ai.telemetry.metadata.subAgentId",
51
+ AI_TELEMETRY_SUB_AGENT_NAME: "ai.telemetry.metadata.subAgentName",
50
52
  AI_MODEL_ID: "ai.model.id",
51
53
  // Tool attributes
52
54
  AI_TOOL_CALL_NAME: "ai.toolCall.name",
@@ -55,9 +57,6 @@ var SPAN_KEYS = {
55
57
  AI_TOOL_CALL_ID: "ai.toolCall.id",
56
58
  AI_TOOL_TYPE: "ai.toolType",
57
59
  TOOL_PURPOSE: "tool.purpose",
58
- // SubAgent attributes
59
- SUB_AGENT_ID: "subagent.id",
60
- SUB_AGENT_NAME: "subagent.name",
61
60
  // Token usage
62
61
  GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens",
63
62
  GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens",
@@ -87,7 +86,6 @@ var SPAN_KEYS = {
87
86
  // Artifact processing attributes
88
87
  ARTIFACT_ID: "artifact.id",
89
88
  ARTIFACT_TYPE: "artifact.type",
90
- ARTIFACT_SUB_AGENT_ID: "artifact.sub_agent_id",
91
89
  ARTIFACT_TOOL_CALL_ID: "artifact.tool_call_id",
92
90
  ARTIFACT_DATA: "artifact.data",
93
91
  ARTIFACT_NAME: "artifact.name",
@@ -1921,9 +1921,9 @@ var SPAN_KEYS = {
1921
1921
  AGENT_NAME: "agent.name",
1922
1922
  TENANT_ID: "tenant.id",
1923
1923
  PROJECT_ID: "project.id",
1924
+ SUB_AGENT_NAME: "subAgent.name",
1925
+ SUB_AGENT_ID: "subAgent.id",
1924
1926
  // AI/Agent attributes
1925
- AI_SUB_AGENT_NAME: "ai.subAgentName",
1926
- AI_SUB_AGENT_NAME_ALT: "ai.subAgent.name",
1927
1927
  AI_OPERATION_ID: "ai.operationId",
1928
1928
  AI_RESPONSE_TIMESTAMP: "ai.response.timestamp",
1929
1929
  AI_RESPONSE_CONTENT: "ai.response.content",
@@ -1934,6 +1934,8 @@ var SPAN_KEYS = {
1934
1934
  AI_PROMPT_MESSAGES: "ai.prompt.messages",
1935
1935
  AI_MODEL_PROVIDER: "ai.model.provider",
1936
1936
  AI_TELEMETRY_FUNCTION_ID: "ai.telemetry.functionId",
1937
+ AI_TELEMETRY_SUB_AGENT_ID: "ai.telemetry.metadata.subAgentId",
1938
+ AI_TELEMETRY_SUB_AGENT_NAME: "ai.telemetry.metadata.subAgentName",
1937
1939
  AI_MODEL_ID: "ai.model.id",
1938
1940
  // Tool attributes
1939
1941
  AI_TOOL_CALL_NAME: "ai.toolCall.name",
@@ -1942,9 +1944,6 @@ var SPAN_KEYS = {
1942
1944
  AI_TOOL_CALL_ID: "ai.toolCall.id",
1943
1945
  AI_TOOL_TYPE: "ai.toolType",
1944
1946
  TOOL_PURPOSE: "tool.purpose",
1945
- // SubAgent attributes
1946
- SUB_AGENT_ID: "subagent.id",
1947
- SUB_AGENT_NAME: "subagent.name",
1948
1947
  // Token usage
1949
1948
  GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens",
1950
1949
  GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens",
@@ -1974,7 +1973,6 @@ var SPAN_KEYS = {
1974
1973
  // Artifact processing attributes
1975
1974
  ARTIFACT_ID: "artifact.id",
1976
1975
  ARTIFACT_TYPE: "artifact.type",
1977
- ARTIFACT_SUB_AGENT_ID: "artifact.sub_agent_id",
1978
1976
  ARTIFACT_TOOL_CALL_ID: "artifact.tool_call_id",
1979
1977
  ARTIFACT_DATA: "artifact.data",
1980
1978
  ARTIFACT_NAME: "artifact.name",
@@ -1,7 +1,7 @@
1
- export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-DtO-n2WD.cjs';
1
+ export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-Dk5iYAy9.cjs';
2
2
  import { z } from 'zod';
3
- import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-eADYCyd-.cjs';
4
- export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-eADYCyd-.cjs';
3
+ import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-fD4C61M4.cjs';
4
+ export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-fD4C61M4.cjs';
5
5
  export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
6
6
  import 'pino';
7
7
  import 'drizzle-zod';
@@ -134,8 +134,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
134
134
  }, z.core.$strip>>>;
135
135
  }, z.core.$strip>;
136
136
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
137
- id: z.ZodString;
138
137
  name: z.ZodString;
138
+ id: z.ZodString;
139
139
  description: z.ZodString;
140
140
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
141
141
  }, {
@@ -170,12 +170,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
170
170
  description: z.ZodOptional<z.ZodString>;
171
171
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
172
172
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
173
- id: z.ZodString;
174
173
  name: z.ZodString;
175
- description: z.ZodString;
176
- prompt: z.ZodString;
174
+ id: z.ZodString;
177
175
  createdAt: z.ZodOptional<z.ZodString>;
178
176
  updatedAt: z.ZodOptional<z.ZodString>;
177
+ description: z.ZodString;
179
178
  models: z.ZodOptional<z.ZodObject<{
180
179
  base: z.ZodOptional<z.ZodObject<{
181
180
  model: z.ZodOptional<z.ZodString>;
@@ -199,6 +198,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
199
198
  }, {
200
199
  stepCountIs?: number | undefined;
201
200
  }>>>>;
201
+ prompt: z.ZodString;
202
202
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
203
203
  type: z.ZodLiteral<"internal">;
204
204
  canUse: z.ZodArray<z.ZodObject<{
@@ -1,7 +1,7 @@
1
- export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-DtO-n2WD.js';
1
+ export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-Dk5iYAy9.js';
2
2
  import { z } from 'zod';
3
- import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-eADYCyd-.js';
4
- export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-eADYCyd-.js';
3
+ import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-fD4C61M4.js';
4
+ export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-fD4C61M4.js';
5
5
  export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
6
6
  import 'pino';
7
7
  import 'drizzle-zod';
@@ -134,8 +134,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
134
134
  }, z.core.$strip>>>;
135
135
  }, z.core.$strip>;
136
136
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
137
- id: z.ZodString;
138
137
  name: z.ZodString;
138
+ id: z.ZodString;
139
139
  description: z.ZodString;
140
140
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
141
141
  }, {
@@ -170,12 +170,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
170
170
  description: z.ZodOptional<z.ZodString>;
171
171
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
172
172
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
173
- id: z.ZodString;
174
173
  name: z.ZodString;
175
- description: z.ZodString;
176
- prompt: z.ZodString;
174
+ id: z.ZodString;
177
175
  createdAt: z.ZodOptional<z.ZodString>;
178
176
  updatedAt: z.ZodOptional<z.ZodString>;
177
+ description: z.ZodString;
179
178
  models: z.ZodOptional<z.ZodObject<{
180
179
  base: z.ZodOptional<z.ZodObject<{
181
180
  model: z.ZodOptional<z.ZodString>;
@@ -199,6 +198,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
199
198
  }, {
200
199
  stepCountIs?: number | undefined;
201
200
  }>>>>;
201
+ prompt: z.ZodString;
202
202
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
203
203
  type: z.ZodLiteral<"internal">;
204
204
  canUse: z.ZodArray<z.ZodObject<{
@@ -1,4 +1,4 @@
1
- export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired } from './chunk-FGRAVXBC.js';
1
+ export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired } from './chunk-QWXWHPCK.js';
2
2
  import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-37BY2EHU.js';
3
3
  export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-37BY2EHU.js';
4
4
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/sqlite-core';
3
- import '../utility-eADYCyd-.cjs';
4
- export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-DgEdaA4i.cjs';
3
+ import '../utility-fD4C61M4.cjs';
4
+ export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-uPzoiY7F.cjs';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/sqlite-core';
3
- import '../utility-eADYCyd-.js';
4
- export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-DfnCgRwo.js';
3
+ import '../utility-fD4C61M4.js';
4
+ export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-BWDgXp-e.js';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
package/dist/index.cjs CHANGED
@@ -212966,9 +212966,9 @@ var SPAN_KEYS = {
212966
212966
  AGENT_NAME: "agent.name",
212967
212967
  TENANT_ID: "tenant.id",
212968
212968
  PROJECT_ID: "project.id",
212969
+ SUB_AGENT_NAME: "subAgent.name",
212970
+ SUB_AGENT_ID: "subAgent.id",
212969
212971
  // AI/Agent attributes
212970
- AI_SUB_AGENT_NAME: "ai.subAgentName",
212971
- AI_SUB_AGENT_NAME_ALT: "ai.subAgent.name",
212972
212972
  AI_OPERATION_ID: "ai.operationId",
212973
212973
  AI_RESPONSE_TIMESTAMP: "ai.response.timestamp",
212974
212974
  AI_RESPONSE_CONTENT: "ai.response.content",
@@ -212979,6 +212979,8 @@ var SPAN_KEYS = {
212979
212979
  AI_PROMPT_MESSAGES: "ai.prompt.messages",
212980
212980
  AI_MODEL_PROVIDER: "ai.model.provider",
212981
212981
  AI_TELEMETRY_FUNCTION_ID: "ai.telemetry.functionId",
212982
+ AI_TELEMETRY_SUB_AGENT_ID: "ai.telemetry.metadata.subAgentId",
212983
+ AI_TELEMETRY_SUB_AGENT_NAME: "ai.telemetry.metadata.subAgentName",
212982
212984
  AI_MODEL_ID: "ai.model.id",
212983
212985
  // Tool attributes
212984
212986
  AI_TOOL_CALL_NAME: "ai.toolCall.name",
@@ -212987,9 +212989,6 @@ var SPAN_KEYS = {
212987
212989
  AI_TOOL_CALL_ID: "ai.toolCall.id",
212988
212990
  AI_TOOL_TYPE: "ai.toolType",
212989
212991
  TOOL_PURPOSE: "tool.purpose",
212990
- // SubAgent attributes
212991
- SUB_AGENT_ID: "subagent.id",
212992
- SUB_AGENT_NAME: "subagent.name",
212993
212992
  // Token usage
212994
212993
  GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens",
212995
212994
  GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens",
@@ -213019,7 +213018,6 @@ var SPAN_KEYS = {
213019
213018
  // Artifact processing attributes
213020
213019
  ARTIFACT_ID: "artifact.id",
213021
213020
  ARTIFACT_TYPE: "artifact.type",
213022
- ARTIFACT_SUB_AGENT_ID: "artifact.sub_agent_id",
213023
213021
  ARTIFACT_TOOL_CALL_ID: "artifact.tool_call_id",
213024
213022
  ARTIFACT_DATA: "artifact.data",
213025
213023
  ARTIFACT_NAME: "artifact.name",