@inkeep/agents-core 0.0.0-dev-20251009192735 → 0.0.0-dev-20251009215610
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/README.md +2 -2
- package/dist/{chunk-VPJ6Z5QZ.js → chunk-5LRSB445.js} +115 -118
- package/dist/{chunk-TO2HNKGP.js → chunk-BVURASVM.js} +74 -110
- package/dist/chunk-TCLX6C3C.js +271 -0
- package/dist/chunk-ZSQFZL3Y.js +173 -0
- package/dist/client-exports.cjs +483 -225
- package/dist/client-exports.d.cts +6 -5
- package/dist/client-exports.d.ts +6 -5
- package/dist/client-exports.js +5 -4
- package/dist/db/schema.cjs +114 -117
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +1687 -1360
- package/dist/index.d.cts +1530 -1524
- package/dist/index.d.ts +1530 -1524
- package/dist/index.js +1016 -989
- package/dist/{schema-Ct2NlO81.d.cts → schema-B1rukNyF.d.ts} +118 -137
- package/dist/{schema-BQk_FMBV.d.ts → schema-BIYOOKX_.d.cts} +118 -137
- package/dist/signoz-queries-CifqdbnO.d.cts +269 -0
- package/dist/signoz-queries-CifqdbnO.d.ts +269 -0
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-s9c5CVOe.d.cts → utility-BEeDGMP9.d.cts} +226 -297
- package/dist/{utility-s9c5CVOe.d.ts → utility-BEeDGMP9.d.ts} +226 -297
- package/dist/validation/index.cjs +243 -238
- package/dist/validation/index.d.cts +76 -4
- package/dist/validation/index.d.ts +76 -4
- package/dist/validation/index.js +2 -2
- package/drizzle/0005_wide_shriek.sql +127 -0
- package/drizzle/meta/0005_snapshot.json +2558 -0
- package/drizzle/meta/_journal.json +7 -0
- package/package.json +1 -1
- package/dist/chunk-L53XWAYG.js +0 -134
package/dist/client-exports.cjs
CHANGED
|
@@ -41,9 +41,9 @@ var graphScoped = {
|
|
|
41
41
|
...projectScoped,
|
|
42
42
|
graphId: sqliteCore.text("graph_id").notNull()
|
|
43
43
|
};
|
|
44
|
-
var
|
|
44
|
+
var subAgentScoped = {
|
|
45
45
|
...graphScoped,
|
|
46
|
-
|
|
46
|
+
subAgentId: sqliteCore.text("sub_agent_id").notNull()
|
|
47
47
|
};
|
|
48
48
|
var uiProperties = {
|
|
49
49
|
name: sqliteCore.text("name").notNull(),
|
|
@@ -74,7 +74,7 @@ var agentGraph = sqliteCore.sqliteTable(
|
|
|
74
74
|
...projectScoped,
|
|
75
75
|
name: sqliteCore.text("name").notNull(),
|
|
76
76
|
description: sqliteCore.text("description"),
|
|
77
|
-
|
|
77
|
+
defaultSubAgentId: sqliteCore.text("default_sub_agent_id"),
|
|
78
78
|
// Reference to shared context configuration for all agents in this graph
|
|
79
79
|
contextConfigId: sqliteCore.text("context_config_id"),
|
|
80
80
|
// add fk relationship
|
|
@@ -153,8 +153,8 @@ var contextCache = sqliteCore.sqliteTable(
|
|
|
153
153
|
)
|
|
154
154
|
]
|
|
155
155
|
);
|
|
156
|
-
var
|
|
157
|
-
"
|
|
156
|
+
var subAgents = sqliteCore.sqliteTable(
|
|
157
|
+
"sub_agents",
|
|
158
158
|
{
|
|
159
159
|
...graphScoped,
|
|
160
160
|
...uiProperties,
|
|
@@ -176,17 +176,16 @@ var agents = sqliteCore.sqliteTable(
|
|
|
176
176
|
}).onDelete("cascade")
|
|
177
177
|
]
|
|
178
178
|
);
|
|
179
|
-
var
|
|
180
|
-
"
|
|
179
|
+
var subAgentRelations = sqliteCore.sqliteTable(
|
|
180
|
+
"sub_agent_relations",
|
|
181
181
|
{
|
|
182
182
|
...graphScoped,
|
|
183
|
-
|
|
183
|
+
sourceSubAgentId: sqliteCore.text("source_sub_agent_id").notNull(),
|
|
184
184
|
// For internal relationships
|
|
185
|
-
|
|
185
|
+
targetSubAgentId: sqliteCore.text("target_sub_agent_id"),
|
|
186
186
|
// For external relationships
|
|
187
|
-
|
|
187
|
+
externalSubAgentId: sqliteCore.text("external_sub_agent_id"),
|
|
188
188
|
relationType: sqliteCore.text("relation_type"),
|
|
189
|
-
// 'transfer' | 'delegate'
|
|
190
189
|
...timestamps
|
|
191
190
|
},
|
|
192
191
|
(table) => [
|
|
@@ -194,7 +193,7 @@ var agentRelations = sqliteCore.sqliteTable(
|
|
|
194
193
|
sqliteCore.foreignKey({
|
|
195
194
|
columns: [table.tenantId, table.projectId, table.graphId],
|
|
196
195
|
foreignColumns: [agentGraph.tenantId, agentGraph.projectId, agentGraph.id],
|
|
197
|
-
name: "
|
|
196
|
+
name: "sub_agent_relations_graph_fk"
|
|
198
197
|
}).onDelete("cascade")
|
|
199
198
|
]
|
|
200
199
|
);
|
|
@@ -230,7 +229,7 @@ var externalAgents = sqliteCore.sqliteTable(
|
|
|
230
229
|
var tasks = sqliteCore.sqliteTable(
|
|
231
230
|
"tasks",
|
|
232
231
|
{
|
|
233
|
-
...
|
|
232
|
+
...subAgentScoped,
|
|
234
233
|
contextId: sqliteCore.text("context_id").notNull(),
|
|
235
234
|
status: sqliteCore.text("status").notNull(),
|
|
236
235
|
metadata: sqliteCore.blob("metadata", { mode: "json" }).$type(),
|
|
@@ -239,9 +238,9 @@ var tasks = sqliteCore.sqliteTable(
|
|
|
239
238
|
(table) => [
|
|
240
239
|
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.id] }),
|
|
241
240
|
sqliteCore.foreignKey({
|
|
242
|
-
columns: [table.tenantId, table.projectId, table.graphId, table.
|
|
243
|
-
foreignColumns: [
|
|
244
|
-
name: "
|
|
241
|
+
columns: [table.tenantId, table.projectId, table.graphId, table.subAgentId],
|
|
242
|
+
foreignColumns: [subAgents.tenantId, subAgents.projectId, subAgents.graphId, subAgents.id],
|
|
243
|
+
name: "tasks_sub_agent_fk"
|
|
245
244
|
}).onDelete("cascade")
|
|
246
245
|
]
|
|
247
246
|
);
|
|
@@ -281,10 +280,10 @@ var dataComponents = sqliteCore.sqliteTable(
|
|
|
281
280
|
}).onDelete("cascade")
|
|
282
281
|
]
|
|
283
282
|
);
|
|
284
|
-
var
|
|
285
|
-
"
|
|
283
|
+
var subAgentDataComponents = sqliteCore.sqliteTable(
|
|
284
|
+
"sub_agent_data_components",
|
|
286
285
|
{
|
|
287
|
-
...
|
|
286
|
+
...subAgentScoped,
|
|
288
287
|
dataComponentId: sqliteCore.text("data_component_id").notNull(),
|
|
289
288
|
createdAt: sqliteCore.text("created_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`)
|
|
290
289
|
},
|
|
@@ -292,15 +291,15 @@ var agentDataComponents = sqliteCore.sqliteTable(
|
|
|
292
291
|
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.id] }),
|
|
293
292
|
// Foreign key constraint to agents table (ensures graph and project exist via cascade)
|
|
294
293
|
sqliteCore.foreignKey({
|
|
295
|
-
columns: [table.tenantId, table.projectId, table.graphId, table.
|
|
296
|
-
foreignColumns: [
|
|
297
|
-
name: "
|
|
294
|
+
columns: [table.tenantId, table.projectId, table.graphId, table.subAgentId],
|
|
295
|
+
foreignColumns: [subAgents.tenantId, subAgents.projectId, subAgents.graphId, subAgents.id],
|
|
296
|
+
name: "sub_agent_data_components_sub_agent_fk"
|
|
298
297
|
}).onDelete("cascade"),
|
|
299
298
|
// Foreign key constraint to data_components table
|
|
300
299
|
sqliteCore.foreignKey({
|
|
301
300
|
columns: [table.tenantId, table.projectId, table.dataComponentId],
|
|
302
301
|
foreignColumns: [dataComponents.tenantId, dataComponents.projectId, dataComponents.id],
|
|
303
|
-
name: "
|
|
302
|
+
name: "sub_agent_data_components_data_component_fk"
|
|
304
303
|
}).onDelete("cascade")
|
|
305
304
|
]
|
|
306
305
|
);
|
|
@@ -321,22 +320,22 @@ var artifactComponents = sqliteCore.sqliteTable(
|
|
|
321
320
|
}).onDelete("cascade")
|
|
322
321
|
]
|
|
323
322
|
);
|
|
324
|
-
var
|
|
325
|
-
"
|
|
323
|
+
var subAgentArtifactComponents = sqliteCore.sqliteTable(
|
|
324
|
+
"sub_agent_artifact_components",
|
|
326
325
|
{
|
|
327
|
-
...
|
|
326
|
+
...subAgentScoped,
|
|
328
327
|
artifactComponentId: sqliteCore.text("artifact_component_id").notNull(),
|
|
329
328
|
createdAt: sqliteCore.text("created_at").notNull().default(drizzleOrm.sql`CURRENT_TIMESTAMP`)
|
|
330
329
|
},
|
|
331
330
|
(table) => [
|
|
332
331
|
sqliteCore.primaryKey({
|
|
333
|
-
columns: [table.tenantId, table.projectId, table.graphId, table.
|
|
332
|
+
columns: [table.tenantId, table.projectId, table.graphId, table.subAgentId, table.id]
|
|
334
333
|
}),
|
|
335
334
|
// Foreign key constraint to agents table (ensures graph and project exist via cascade)
|
|
336
335
|
sqliteCore.foreignKey({
|
|
337
|
-
columns: [table.tenantId, table.projectId, table.graphId, table.
|
|
338
|
-
foreignColumns: [
|
|
339
|
-
name: "
|
|
336
|
+
columns: [table.tenantId, table.projectId, table.graphId, table.subAgentId],
|
|
337
|
+
foreignColumns: [subAgents.tenantId, subAgents.projectId, subAgents.graphId, subAgents.id],
|
|
338
|
+
name: "sub_agent_artifact_components_sub_agent_fk"
|
|
340
339
|
}).onDelete("cascade"),
|
|
341
340
|
// Foreign key constraint to artifact_components table
|
|
342
341
|
sqliteCore.foreignKey({
|
|
@@ -346,7 +345,7 @@ var agentArtifactComponents = sqliteCore.sqliteTable(
|
|
|
346
345
|
artifactComponents.projectId,
|
|
347
346
|
artifactComponents.id
|
|
348
347
|
],
|
|
349
|
-
name: "
|
|
348
|
+
name: "sub_agent_artifact_components_artifact_component_fk"
|
|
350
349
|
}).onDelete("cascade")
|
|
351
350
|
]
|
|
352
351
|
);
|
|
@@ -402,10 +401,10 @@ var functions = sqliteCore.sqliteTable(
|
|
|
402
401
|
}).onDelete("cascade")
|
|
403
402
|
]
|
|
404
403
|
);
|
|
405
|
-
var
|
|
406
|
-
"
|
|
404
|
+
var subAgentToolRelations = sqliteCore.sqliteTable(
|
|
405
|
+
"sub_agent_tool_relations",
|
|
407
406
|
{
|
|
408
|
-
...
|
|
407
|
+
...subAgentScoped,
|
|
409
408
|
toolId: sqliteCore.text("tool_id").notNull(),
|
|
410
409
|
selectedTools: sqliteCore.blob("selected_tools", { mode: "json" }).$type(),
|
|
411
410
|
headers: sqliteCore.blob("headers", { mode: "json" }).$type(),
|
|
@@ -415,15 +414,15 @@ var agentToolRelations = sqliteCore.sqliteTable(
|
|
|
415
414
|
sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.graphId, table.id] }),
|
|
416
415
|
// Foreign key constraint to agents table (which includes project and graph scope)
|
|
417
416
|
sqliteCore.foreignKey({
|
|
418
|
-
columns: [table.tenantId, table.projectId, table.graphId, table.
|
|
419
|
-
foreignColumns: [
|
|
420
|
-
name: "
|
|
417
|
+
columns: [table.tenantId, table.projectId, table.graphId, table.subAgentId],
|
|
418
|
+
foreignColumns: [subAgents.tenantId, subAgents.projectId, subAgents.graphId, subAgents.id],
|
|
419
|
+
name: "sub_agent_tool_relations_agent_fk"
|
|
421
420
|
}).onDelete("cascade"),
|
|
422
421
|
// Foreign key constraint to tools table
|
|
423
422
|
sqliteCore.foreignKey({
|
|
424
423
|
columns: [table.tenantId, table.projectId, table.toolId],
|
|
425
424
|
foreignColumns: [tools.tenantId, tools.projectId, tools.id],
|
|
426
|
-
name: "
|
|
425
|
+
name: "sub_agent_tool_relations_tool_fk"
|
|
427
426
|
}).onDelete("cascade")
|
|
428
427
|
]
|
|
429
428
|
);
|
|
@@ -432,7 +431,7 @@ var conversations = sqliteCore.sqliteTable(
|
|
|
432
431
|
{
|
|
433
432
|
...projectScoped,
|
|
434
433
|
userId: sqliteCore.text("user_id"),
|
|
435
|
-
|
|
434
|
+
activeSubAgentId: sqliteCore.text("active_sub_agent_id").notNull(),
|
|
436
435
|
title: sqliteCore.text("title"),
|
|
437
436
|
lastContextResolution: sqliteCore.text("last_context_resolution"),
|
|
438
437
|
metadata: sqliteCore.blob("metadata", { mode: "json" }).$type(),
|
|
@@ -456,15 +455,15 @@ var messages = sqliteCore.sqliteTable(
|
|
|
456
455
|
role: sqliteCore.text("role").notNull(),
|
|
457
456
|
// 'user' | 'agent' | 'system'
|
|
458
457
|
// Agent sender/recipient tracking (nullable - only populated when relevant)
|
|
459
|
-
|
|
458
|
+
fromSubAgentId: sqliteCore.text("from_sub_agent_id"),
|
|
460
459
|
// Populated when message is from an agent
|
|
461
|
-
|
|
460
|
+
toSubAgentId: sqliteCore.text("to_sub_agent_id"),
|
|
462
461
|
// Populated when message is directed to a specific agent (e.g., transfers/delegations)
|
|
463
462
|
// External agent sender tracking
|
|
464
|
-
fromExternalAgentId: sqliteCore.text("
|
|
463
|
+
fromExternalAgentId: sqliteCore.text("from_external_sub_agent_id"),
|
|
465
464
|
// Populated when message is directed from an external agent
|
|
466
465
|
// External agent recipient tracking
|
|
467
|
-
toExternalAgentId: sqliteCore.text("
|
|
466
|
+
toExternalAgentId: sqliteCore.text("to_external_sub_agent_id"),
|
|
468
467
|
// Populated when message is directed to an external agent
|
|
469
468
|
// Message content stored as JSON to support both formats
|
|
470
469
|
content: sqliteCore.blob("content", { mode: "json" }).$type().notNull(),
|
|
@@ -473,8 +472,6 @@ var messages = sqliteCore.sqliteTable(
|
|
|
473
472
|
// 'user-facing' | 'internal' | 'system' | 'external'
|
|
474
473
|
messageType: sqliteCore.text("message_type").notNull().default("chat"),
|
|
475
474
|
// 'chat' | 'a2a-request' | 'a2a-response' | 'task-update' | 'tool-call'
|
|
476
|
-
// Legacy agent association (consider deprecating in favor of fromAgentId/toAgentId)
|
|
477
|
-
agentId: sqliteCore.text("agent_id"),
|
|
478
475
|
taskId: sqliteCore.text("task_id"),
|
|
479
476
|
parentMessageId: sqliteCore.text("parent_message_id"),
|
|
480
477
|
// Remove self-reference constraint here
|
|
@@ -601,10 +598,9 @@ drizzleOrm.relations(tasks, ({ one, many }) => ({
|
|
|
601
598
|
childRelations: many(taskRelations, {
|
|
602
599
|
relationName: "parentTask"
|
|
603
600
|
}),
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
references: [agents.id]
|
|
601
|
+
subAgent: one(subAgents, {
|
|
602
|
+
fields: [tasks.subAgentId],
|
|
603
|
+
references: [subAgents.id]
|
|
608
604
|
}),
|
|
609
605
|
// A task can have many messages associated with it
|
|
610
606
|
messages: many(messages),
|
|
@@ -612,7 +608,7 @@ drizzleOrm.relations(tasks, ({ one, many }) => ({
|
|
|
612
608
|
ledgerArtifacts: many(ledgerArtifacts)
|
|
613
609
|
}));
|
|
614
610
|
drizzleOrm.relations(projects, ({ many }) => ({
|
|
615
|
-
|
|
611
|
+
subAgents: many(subAgents),
|
|
616
612
|
agentGraphs: many(agentGraph),
|
|
617
613
|
tools: many(tools),
|
|
618
614
|
contextConfigs: many(contextConfigs),
|
|
@@ -650,17 +646,17 @@ drizzleOrm.relations(contextCache, ({ one }) => ({
|
|
|
650
646
|
references: [contextConfigs.id]
|
|
651
647
|
})
|
|
652
648
|
}));
|
|
653
|
-
drizzleOrm.relations(
|
|
649
|
+
drizzleOrm.relations(subAgents, ({ many, one }) => ({
|
|
654
650
|
project: one(projects, {
|
|
655
|
-
fields: [
|
|
651
|
+
fields: [subAgents.tenantId, subAgents.projectId],
|
|
656
652
|
references: [projects.tenantId, projects.id]
|
|
657
653
|
}),
|
|
658
654
|
tasks: many(tasks),
|
|
659
655
|
defaultForGraphs: many(agentGraph),
|
|
660
|
-
sourceRelations: many(
|
|
656
|
+
sourceRelations: many(subAgentRelations, {
|
|
661
657
|
relationName: "sourceRelations"
|
|
662
658
|
}),
|
|
663
|
-
targetRelations: many(
|
|
659
|
+
targetRelations: many(subAgentRelations, {
|
|
664
660
|
relationName: "targetRelations"
|
|
665
661
|
}),
|
|
666
662
|
sentMessages: many(messages, {
|
|
@@ -672,18 +668,18 @@ drizzleOrm.relations(agents, ({ many, one }) => ({
|
|
|
672
668
|
associatedMessages: many(messages, {
|
|
673
669
|
relationName: "associatedAgent"
|
|
674
670
|
}),
|
|
675
|
-
toolRelations: many(
|
|
676
|
-
dataComponentRelations: many(
|
|
677
|
-
artifactComponentRelations: many(
|
|
671
|
+
toolRelations: many(subAgentToolRelations),
|
|
672
|
+
dataComponentRelations: many(subAgentDataComponents),
|
|
673
|
+
artifactComponentRelations: many(subAgentArtifactComponents)
|
|
678
674
|
}));
|
|
679
675
|
drizzleOrm.relations(agentGraph, ({ one }) => ({
|
|
680
676
|
project: one(projects, {
|
|
681
677
|
fields: [agentGraph.tenantId, agentGraph.projectId],
|
|
682
678
|
references: [projects.tenantId, projects.id]
|
|
683
679
|
}),
|
|
684
|
-
|
|
685
|
-
fields: [agentGraph.
|
|
686
|
-
references: [
|
|
680
|
+
defaultSubAgent: one(subAgents, {
|
|
681
|
+
fields: [agentGraph.defaultSubAgentId],
|
|
682
|
+
references: [subAgents.id]
|
|
687
683
|
}),
|
|
688
684
|
contextConfig: one(contextConfigs, {
|
|
689
685
|
fields: [agentGraph.contextConfigId],
|
|
@@ -695,7 +691,7 @@ drizzleOrm.relations(externalAgents, ({ one, many }) => ({
|
|
|
695
691
|
fields: [externalAgents.tenantId, externalAgents.projectId],
|
|
696
692
|
references: [projects.tenantId, projects.id]
|
|
697
693
|
}),
|
|
698
|
-
|
|
694
|
+
subAgentRelations: many(subAgentRelations),
|
|
699
695
|
credentialReference: one(credentialReferences, {
|
|
700
696
|
fields: [externalAgents.credentialReferenceId],
|
|
701
697
|
references: [credentialReferences.id]
|
|
@@ -711,13 +707,13 @@ drizzleOrm.relations(apiKeys, ({ one }) => ({
|
|
|
711
707
|
references: [agentGraph.id]
|
|
712
708
|
})
|
|
713
709
|
}));
|
|
714
|
-
drizzleOrm.relations(
|
|
715
|
-
|
|
716
|
-
fields: [
|
|
717
|
-
references: [
|
|
710
|
+
drizzleOrm.relations(subAgentToolRelations, ({ one }) => ({
|
|
711
|
+
subAgent: one(subAgents, {
|
|
712
|
+
fields: [subAgentToolRelations.subAgentId],
|
|
713
|
+
references: [subAgents.id]
|
|
718
714
|
}),
|
|
719
715
|
tool: one(tools, {
|
|
720
|
-
fields: [
|
|
716
|
+
fields: [subAgentToolRelations.toolId],
|
|
721
717
|
references: [tools.id]
|
|
722
718
|
})
|
|
723
719
|
}));
|
|
@@ -729,7 +725,7 @@ drizzleOrm.relations(tools, ({ one, many }) => ({
|
|
|
729
725
|
fields: [tools.tenantId, tools.projectId],
|
|
730
726
|
references: [projects.tenantId, projects.id]
|
|
731
727
|
}),
|
|
732
|
-
|
|
728
|
+
subAgentRelations: many(subAgentToolRelations),
|
|
733
729
|
credentialReference: one(credentialReferences, {
|
|
734
730
|
fields: [tools.credentialReferenceId],
|
|
735
731
|
references: [credentialReferences.id]
|
|
@@ -745,9 +741,9 @@ drizzleOrm.relations(conversations, ({ one, many }) => ({
|
|
|
745
741
|
references: [projects.tenantId, projects.id]
|
|
746
742
|
}),
|
|
747
743
|
messages: many(messages),
|
|
748
|
-
|
|
749
|
-
fields: [conversations.
|
|
750
|
-
references: [
|
|
744
|
+
activeSubAgent: one(subAgents, {
|
|
745
|
+
fields: [conversations.activeSubAgentId],
|
|
746
|
+
references: [subAgents.id]
|
|
751
747
|
})
|
|
752
748
|
}));
|
|
753
749
|
drizzleOrm.relations(messages, ({ one, many }) => ({
|
|
@@ -755,20 +751,14 @@ drizzleOrm.relations(messages, ({ one, many }) => ({
|
|
|
755
751
|
fields: [messages.conversationId],
|
|
756
752
|
references: [conversations.id]
|
|
757
753
|
}),
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
references: [agents.id],
|
|
762
|
-
relationName: "associatedAgent"
|
|
763
|
-
}),
|
|
764
|
-
fromAgent: one(agents, {
|
|
765
|
-
fields: [messages.fromAgentId],
|
|
766
|
-
references: [agents.id],
|
|
754
|
+
fromSubAgent: one(subAgents, {
|
|
755
|
+
fields: [messages.fromSubAgentId],
|
|
756
|
+
references: [subAgents.id],
|
|
767
757
|
relationName: "sentMessages"
|
|
768
758
|
}),
|
|
769
|
-
|
|
770
|
-
fields: [messages.
|
|
771
|
-
references: [
|
|
759
|
+
toSubAgent: one(subAgents, {
|
|
760
|
+
fields: [messages.toSubAgentId],
|
|
761
|
+
references: [subAgents.id],
|
|
772
762
|
relationName: "receivedMessages"
|
|
773
763
|
}),
|
|
774
764
|
fromExternalAgent: one(externalAgents, {
|
|
@@ -794,33 +784,40 @@ drizzleOrm.relations(messages, ({ one, many }) => ({
|
|
|
794
784
|
relationName: "parentChild"
|
|
795
785
|
})
|
|
796
786
|
}));
|
|
797
|
-
drizzleOrm.relations(artifactComponents, ({ many }) => ({
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
agent: one(agents, {
|
|
802
|
-
fields: [agentArtifactComponents.agentId],
|
|
803
|
-
references: [agents.id]
|
|
787
|
+
drizzleOrm.relations(artifactComponents, ({ many, one }) => ({
|
|
788
|
+
project: one(projects, {
|
|
789
|
+
fields: [artifactComponents.tenantId, artifactComponents.projectId],
|
|
790
|
+
references: [projects.tenantId, projects.id]
|
|
804
791
|
}),
|
|
805
|
-
|
|
806
|
-
fields: [agentArtifactComponents.artifactComponentId],
|
|
807
|
-
references: [artifactComponents.id]
|
|
808
|
-
})
|
|
792
|
+
subAgentRelations: many(subAgentArtifactComponents)
|
|
809
793
|
}));
|
|
794
|
+
drizzleOrm.relations(
|
|
795
|
+
subAgentArtifactComponents,
|
|
796
|
+
({ one }) => ({
|
|
797
|
+
subAgent: one(subAgents, {
|
|
798
|
+
fields: [subAgentArtifactComponents.subAgentId],
|
|
799
|
+
references: [subAgents.id]
|
|
800
|
+
}),
|
|
801
|
+
artifactComponent: one(artifactComponents, {
|
|
802
|
+
fields: [subAgentArtifactComponents.artifactComponentId],
|
|
803
|
+
references: [artifactComponents.id]
|
|
804
|
+
})
|
|
805
|
+
})
|
|
806
|
+
);
|
|
810
807
|
drizzleOrm.relations(dataComponents, ({ many, one }) => ({
|
|
811
808
|
project: one(projects, {
|
|
812
809
|
fields: [dataComponents.tenantId, dataComponents.projectId],
|
|
813
810
|
references: [projects.tenantId, projects.id]
|
|
814
811
|
}),
|
|
815
|
-
|
|
812
|
+
subAgentRelations: many(subAgentDataComponents)
|
|
816
813
|
}));
|
|
817
|
-
drizzleOrm.relations(
|
|
818
|
-
|
|
819
|
-
fields: [
|
|
820
|
-
references: [
|
|
814
|
+
drizzleOrm.relations(subAgentDataComponents, ({ one }) => ({
|
|
815
|
+
subAgent: one(subAgents, {
|
|
816
|
+
fields: [subAgentDataComponents.subAgentId],
|
|
817
|
+
references: [subAgents.id]
|
|
821
818
|
}),
|
|
822
819
|
dataComponent: one(dataComponents, {
|
|
823
|
-
fields: [
|
|
820
|
+
fields: [subAgentDataComponents.dataComponentId],
|
|
824
821
|
references: [dataComponents.id]
|
|
825
822
|
})
|
|
826
823
|
}));
|
|
@@ -837,23 +834,23 @@ drizzleOrm.relations(ledgerArtifacts, ({ one }) => ({
|
|
|
837
834
|
drizzleOrm.relations(functions, ({ many }) => ({
|
|
838
835
|
tools: many(tools)
|
|
839
836
|
}));
|
|
840
|
-
drizzleOrm.relations(
|
|
837
|
+
drizzleOrm.relations(subAgentRelations, ({ one }) => ({
|
|
841
838
|
graph: one(agentGraph, {
|
|
842
|
-
fields: [
|
|
839
|
+
fields: [subAgentRelations.graphId],
|
|
843
840
|
references: [agentGraph.id]
|
|
844
841
|
}),
|
|
845
|
-
|
|
846
|
-
fields: [
|
|
847
|
-
references: [
|
|
842
|
+
sourceSubAgent: one(subAgents, {
|
|
843
|
+
fields: [subAgentRelations.sourceSubAgentId],
|
|
844
|
+
references: [subAgents.id],
|
|
848
845
|
relationName: "sourceRelations"
|
|
849
846
|
}),
|
|
850
|
-
|
|
851
|
-
fields: [
|
|
852
|
-
references: [
|
|
847
|
+
targetSubAgent: one(subAgents, {
|
|
848
|
+
fields: [subAgentRelations.targetSubAgentId],
|
|
849
|
+
references: [subAgents.id],
|
|
853
850
|
relationName: "targetRelations"
|
|
854
851
|
}),
|
|
855
852
|
externalAgent: one(externalAgents, {
|
|
856
|
-
fields: [
|
|
853
|
+
fields: [subAgentRelations.externalSubAgentId],
|
|
857
854
|
references: [externalAgents.id]
|
|
858
855
|
})
|
|
859
856
|
}));
|
|
@@ -907,22 +904,22 @@ var createApiUpdateSchema = (schema) => schema.omit({ tenantId: true, projectId:
|
|
|
907
904
|
var createGraphScopedApiSchema = (schema) => schema.omit({ tenantId: true, projectId: true, graphId: true });
|
|
908
905
|
var createGraphScopedApiInsertSchema = (schema) => schema.omit({ tenantId: true, projectId: true, graphId: true });
|
|
909
906
|
var createGraphScopedApiUpdateSchema = (schema) => schema.omit({ tenantId: true, projectId: true, graphId: true }).partial();
|
|
910
|
-
var
|
|
911
|
-
var
|
|
907
|
+
var SubAgentSelectSchema = drizzleZod.createSelectSchema(subAgents);
|
|
908
|
+
var SubAgentInsertSchema = drizzleZod.createInsertSchema(subAgents).extend({
|
|
912
909
|
id: resourceIdSchema,
|
|
913
910
|
models: ModelSchema.optional()
|
|
914
911
|
});
|
|
915
|
-
var
|
|
916
|
-
var
|
|
917
|
-
var
|
|
918
|
-
createGraphScopedApiUpdateSchema(
|
|
919
|
-
var AgentRelationSelectSchema = drizzleZod.createSelectSchema(
|
|
920
|
-
var AgentRelationInsertSchema = drizzleZod.createInsertSchema(
|
|
912
|
+
var SubAgentUpdateSchema = SubAgentInsertSchema.partial();
|
|
913
|
+
var SubAgentApiSelectSchema = createGraphScopedApiSchema(SubAgentSelectSchema);
|
|
914
|
+
var SubAgentApiInsertSchema = createGraphScopedApiInsertSchema(SubAgentInsertSchema);
|
|
915
|
+
createGraphScopedApiUpdateSchema(SubAgentUpdateSchema);
|
|
916
|
+
var AgentRelationSelectSchema = drizzleZod.createSelectSchema(subAgentRelations);
|
|
917
|
+
var AgentRelationInsertSchema = drizzleZod.createInsertSchema(subAgentRelations).extend({
|
|
921
918
|
id: resourceIdSchema,
|
|
922
919
|
graphId: resourceIdSchema,
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
920
|
+
sourceSubAgentId: resourceIdSchema,
|
|
921
|
+
targetSubAgentId: resourceIdSchema.optional(),
|
|
922
|
+
externalSubAgentId: resourceIdSchema.optional()
|
|
926
923
|
});
|
|
927
924
|
var AgentRelationUpdateSchema = AgentRelationInsertSchema.partial();
|
|
928
925
|
createGraphScopedApiSchema(AgentRelationSelectSchema);
|
|
@@ -932,13 +929,13 @@ createGraphScopedApiInsertSchema(
|
|
|
932
929
|
relationType: zodOpenapi.z.enum(VALID_RELATION_TYPES)
|
|
933
930
|
}).refine(
|
|
934
931
|
(data) => {
|
|
935
|
-
const hasTarget = data.
|
|
936
|
-
const hasExternal = data.
|
|
932
|
+
const hasTarget = data.targetSubAgentId != null;
|
|
933
|
+
const hasExternal = data.externalSubAgentId != null;
|
|
937
934
|
return hasTarget !== hasExternal;
|
|
938
935
|
},
|
|
939
936
|
{
|
|
940
|
-
message: "Must specify exactly one of
|
|
941
|
-
path: ["
|
|
937
|
+
message: "Must specify exactly one of targetSubAgentId or externalSubAgentId",
|
|
938
|
+
path: ["targetSubAgentId", "externalSubAgentId"]
|
|
942
939
|
}
|
|
943
940
|
);
|
|
944
941
|
createGraphScopedApiUpdateSchema(
|
|
@@ -947,28 +944,28 @@ createGraphScopedApiUpdateSchema(
|
|
|
947
944
|
relationType: zodOpenapi.z.enum(VALID_RELATION_TYPES).optional()
|
|
948
945
|
}).refine(
|
|
949
946
|
(data) => {
|
|
950
|
-
const hasTarget = data.
|
|
951
|
-
const hasExternal = data.
|
|
947
|
+
const hasTarget = data.targetSubAgentId != null;
|
|
948
|
+
const hasExternal = data.externalSubAgentId != null;
|
|
952
949
|
if (!hasTarget && !hasExternal) {
|
|
953
950
|
return true;
|
|
954
951
|
}
|
|
955
952
|
return hasTarget !== hasExternal;
|
|
956
953
|
},
|
|
957
954
|
{
|
|
958
|
-
message: "Must specify exactly one of
|
|
959
|
-
path: ["
|
|
955
|
+
message: "Must specify exactly one of targetSubAgentId or externalSubAgentId when updating agent relationships",
|
|
956
|
+
path: ["targetSubAgentId", "externalSubAgentId"]
|
|
960
957
|
}
|
|
961
958
|
);
|
|
962
959
|
zodOpenapi.z.object({
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
960
|
+
sourceSubAgentId: zodOpenapi.z.string().optional(),
|
|
961
|
+
targetSubAgentId: zodOpenapi.z.string().optional(),
|
|
962
|
+
externalSubAgentId: zodOpenapi.z.string().optional()
|
|
966
963
|
});
|
|
967
|
-
var ExternalAgentRelationInsertSchema = drizzleZod.createInsertSchema(
|
|
964
|
+
var ExternalAgentRelationInsertSchema = drizzleZod.createInsertSchema(subAgentRelations).extend({
|
|
968
965
|
id: resourceIdSchema,
|
|
969
966
|
graphId: resourceIdSchema,
|
|
970
|
-
|
|
971
|
-
|
|
967
|
+
sourceSubAgentId: resourceIdSchema,
|
|
968
|
+
externalSubAgentId: resourceIdSchema
|
|
972
969
|
});
|
|
973
970
|
createApiInsertSchema(
|
|
974
971
|
ExternalAgentRelationInsertSchema
|
|
@@ -1102,8 +1099,8 @@ var DataComponentUpdateSchema = DataComponentInsertSchema.partial();
|
|
|
1102
1099
|
createApiSchema(DataComponentSelectSchema);
|
|
1103
1100
|
var DataComponentApiInsertSchema = createApiInsertSchema(DataComponentInsertSchema);
|
|
1104
1101
|
createApiUpdateSchema(DataComponentUpdateSchema);
|
|
1105
|
-
var AgentDataComponentSelectSchema = drizzleZod.createSelectSchema(
|
|
1106
|
-
var AgentDataComponentInsertSchema = drizzleZod.createInsertSchema(
|
|
1102
|
+
var AgentDataComponentSelectSchema = drizzleZod.createSelectSchema(subAgentDataComponents);
|
|
1103
|
+
var AgentDataComponentInsertSchema = drizzleZod.createInsertSchema(subAgentDataComponents);
|
|
1107
1104
|
var AgentDataComponentUpdateSchema = AgentDataComponentInsertSchema.partial();
|
|
1108
1105
|
createGraphScopedApiSchema(
|
|
1109
1106
|
AgentDataComponentSelectSchema
|
|
@@ -1132,12 +1129,12 @@ var ArtifactComponentApiInsertSchema = ArtifactComponentInsertSchema.omit({
|
|
|
1132
1129
|
createApiUpdateSchema(
|
|
1133
1130
|
ArtifactComponentUpdateSchema
|
|
1134
1131
|
);
|
|
1135
|
-
var AgentArtifactComponentSelectSchema = drizzleZod.createSelectSchema(
|
|
1132
|
+
var AgentArtifactComponentSelectSchema = drizzleZod.createSelectSchema(subAgentArtifactComponents);
|
|
1136
1133
|
var AgentArtifactComponentInsertSchema = drizzleZod.createInsertSchema(
|
|
1137
|
-
|
|
1134
|
+
subAgentArtifactComponents
|
|
1138
1135
|
).extend({
|
|
1139
1136
|
id: resourceIdSchema,
|
|
1140
|
-
|
|
1137
|
+
subAgentId: resourceIdSchema,
|
|
1141
1138
|
artifactComponentId: resourceIdSchema
|
|
1142
1139
|
});
|
|
1143
1140
|
var AgentArtifactComponentUpdateSchema = AgentArtifactComponentInsertSchema.partial();
|
|
@@ -1165,7 +1162,7 @@ var ExternalAgentApiSelectSchema = createGraphScopedApiSchema(ExternalAgentSelec
|
|
|
1165
1162
|
var ExternalAgentApiInsertSchema = createGraphScopedApiInsertSchema(ExternalAgentInsertSchema);
|
|
1166
1163
|
createGraphScopedApiUpdateSchema(ExternalAgentUpdateSchema);
|
|
1167
1164
|
zodOpenapi.z.discriminatedUnion("type", [
|
|
1168
|
-
|
|
1165
|
+
SubAgentApiSelectSchema.extend({ type: zodOpenapi.z.literal("internal") }),
|
|
1169
1166
|
ExternalAgentApiSelectSchema.extend({ type: zodOpenapi.z.literal("external") })
|
|
1170
1167
|
]);
|
|
1171
1168
|
var ApiKeySelectSchema = drizzleZod.createSelectSchema(apiKeys);
|
|
@@ -1319,10 +1316,10 @@ var ContextConfigApiInsertSchema = createApiInsertSchema(ContextConfigInsertSche
|
|
|
1319
1316
|
createApiUpdateSchema(ContextConfigUpdateSchema).omit({
|
|
1320
1317
|
graphId: true
|
|
1321
1318
|
});
|
|
1322
|
-
var AgentToolRelationSelectSchema = drizzleZod.createSelectSchema(
|
|
1323
|
-
var AgentToolRelationInsertSchema = drizzleZod.createInsertSchema(
|
|
1319
|
+
var AgentToolRelationSelectSchema = drizzleZod.createSelectSchema(subAgentToolRelations);
|
|
1320
|
+
var AgentToolRelationInsertSchema = drizzleZod.createInsertSchema(subAgentToolRelations).extend({
|
|
1324
1321
|
id: resourceIdSchema,
|
|
1325
|
-
|
|
1322
|
+
subAgentId: resourceIdSchema,
|
|
1326
1323
|
toolId: resourceIdSchema,
|
|
1327
1324
|
selectedTools: zodOpenapi.z.array(zodOpenapi.z.string()).nullish(),
|
|
1328
1325
|
headers: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.string()).nullish()
|
|
@@ -1365,7 +1362,7 @@ var CanUseItemSchema = zodOpenapi.z.object({
|
|
|
1365
1362
|
toolSelection: zodOpenapi.z.array(zodOpenapi.z.string()).nullish(),
|
|
1366
1363
|
headers: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.string()).nullish()
|
|
1367
1364
|
});
|
|
1368
|
-
var FullGraphAgentInsertSchema =
|
|
1365
|
+
var FullGraphAgentInsertSchema = SubAgentApiInsertSchema.extend({
|
|
1369
1366
|
type: zodOpenapi.z.literal("internal"),
|
|
1370
1367
|
canUse: zodOpenapi.z.array(CanUseItemSchema),
|
|
1371
1368
|
// All tools (both MCP and function tools)
|
|
@@ -1374,27 +1371,17 @@ var FullGraphAgentInsertSchema = AgentApiInsertSchema.extend({
|
|
|
1374
1371
|
canTransferTo: zodOpenapi.z.array(zodOpenapi.z.string()).optional(),
|
|
1375
1372
|
canDelegateTo: zodOpenapi.z.array(zodOpenapi.z.string()).optional()
|
|
1376
1373
|
});
|
|
1377
|
-
AgentGraphApiInsertSchema.extend({
|
|
1378
|
-
agents: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.union([FullGraphAgentInsertSchema, ExternalAgentApiInsertSchema])),
|
|
1379
|
-
// Lookup maps for UI to resolve canUse items
|
|
1380
|
-
tools: zodOpenapi.z.record(zodOpenapi.z.string(), ToolApiInsertSchema).optional(),
|
|
1381
|
-
// Get tool name/description from toolId
|
|
1382
|
-
functions: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionApiInsertSchema).optional(),
|
|
1383
|
-
// Get function code for function tools
|
|
1384
|
-
contextConfig: zodOpenapi.z.optional(ContextConfigApiInsertSchema),
|
|
1385
|
-
statusUpdates: zodOpenapi.z.optional(StatusUpdateSchema),
|
|
1386
|
-
models: ModelSchema.optional(),
|
|
1387
|
-
stopWhen: GraphStopWhenSchema.optional(),
|
|
1388
|
-
graphPrompt: zodOpenapi.z.string().max(5e3, "Graph prompt cannot exceed 5000 characters").optional()
|
|
1389
|
-
});
|
|
1390
1374
|
var GraphWithinContextOfProjectSchema = AgentGraphApiInsertSchema.extend({
|
|
1391
|
-
|
|
1375
|
+
subAgents: zodOpenapi.z.record(
|
|
1392
1376
|
zodOpenapi.z.string(),
|
|
1393
1377
|
zodOpenapi.z.discriminatedUnion("type", [
|
|
1394
1378
|
FullGraphAgentInsertSchema,
|
|
1395
1379
|
ExternalAgentApiInsertSchema.extend({ type: zodOpenapi.z.literal("external") })
|
|
1396
1380
|
])
|
|
1397
1381
|
),
|
|
1382
|
+
tools: zodOpenapi.z.record(zodOpenapi.z.string(), ToolApiInsertSchema).optional(),
|
|
1383
|
+
// Get tool name/description from toolId
|
|
1384
|
+
functions: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionApiInsertSchema).optional(),
|
|
1398
1385
|
contextConfig: zodOpenapi.z.optional(ContextConfigApiInsertSchema),
|
|
1399
1386
|
statusUpdates: zodOpenapi.z.optional(StatusUpdateSchema),
|
|
1400
1387
|
models: ModelSchema.optional(),
|
|
@@ -1459,72 +1446,46 @@ zodOpenapi.z.object({
|
|
|
1459
1446
|
example: "graph_789"
|
|
1460
1447
|
})
|
|
1461
1448
|
});
|
|
1462
|
-
zodOpenapi.z.
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1449
|
+
var TenantId = zodOpenapi.z.string().openapi({
|
|
1450
|
+
description: "Tenant identifier",
|
|
1451
|
+
example: "tenant_123"
|
|
1452
|
+
});
|
|
1453
|
+
var ProjectId = zodOpenapi.z.string().openapi({
|
|
1454
|
+
description: "Project identifier",
|
|
1455
|
+
example: "project_456"
|
|
1456
|
+
});
|
|
1457
|
+
var GraphId = zodOpenapi.z.string().openapi({
|
|
1458
|
+
description: "Graph identifier",
|
|
1459
|
+
example: "graph_789"
|
|
1460
|
+
});
|
|
1461
|
+
var SubAgentId = zodOpenapi.z.string().openapi({
|
|
1462
|
+
description: "Sub-agent identifier",
|
|
1463
|
+
example: "sub_agent_123"
|
|
1464
|
+
});
|
|
1465
|
+
var TenantParamsSchema = zodOpenapi.z.object({
|
|
1466
|
+
tenantId: TenantId
|
|
1467
1467
|
}).openapi("TenantParams");
|
|
1468
|
-
|
|
1469
|
-
tenantId: zodOpenapi.z.string().openapi({
|
|
1470
|
-
description: "Tenant identifier",
|
|
1471
|
-
example: "tenant_123"
|
|
1472
|
-
}),
|
|
1473
|
-
projectId: zodOpenapi.z.string().openapi({
|
|
1474
|
-
description: "Project identifier",
|
|
1475
|
-
example: "project_456"
|
|
1476
|
-
})
|
|
1477
|
-
}).openapi("TenantProjectParams");
|
|
1478
|
-
zodOpenapi.z.object({
|
|
1479
|
-
tenantId: zodOpenapi.z.string().openapi({
|
|
1480
|
-
description: "Tenant identifier",
|
|
1481
|
-
example: "tenant_123"
|
|
1482
|
-
}),
|
|
1483
|
-
projectId: zodOpenapi.z.string().openapi({
|
|
1484
|
-
description: "Project identifier",
|
|
1485
|
-
example: "project_456"
|
|
1486
|
-
}),
|
|
1487
|
-
graphId: zodOpenapi.z.string().openapi({
|
|
1488
|
-
description: "Graph identifier",
|
|
1489
|
-
example: "graph_789"
|
|
1490
|
-
})
|
|
1491
|
-
}).openapi("TenantProjectGraphParams");
|
|
1492
|
-
zodOpenapi.z.object({
|
|
1493
|
-
tenantId: zodOpenapi.z.string().openapi({
|
|
1494
|
-
description: "Tenant identifier",
|
|
1495
|
-
example: "tenant_123"
|
|
1496
|
-
}),
|
|
1497
|
-
projectId: zodOpenapi.z.string().openapi({
|
|
1498
|
-
description: "Project identifier",
|
|
1499
|
-
example: "project_456"
|
|
1500
|
-
}),
|
|
1501
|
-
graphId: zodOpenapi.z.string().openapi({
|
|
1502
|
-
description: "Graph identifier",
|
|
1503
|
-
example: "graph_789"
|
|
1504
|
-
}),
|
|
1468
|
+
TenantParamsSchema.extend({
|
|
1505
1469
|
id: resourceIdSchema
|
|
1506
|
-
}).openapi("
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
}),
|
|
1512
|
-
projectId: zodOpenapi.z.string().openapi({
|
|
1513
|
-
description: "Project identifier",
|
|
1514
|
-
example: "project_456"
|
|
1515
|
-
}),
|
|
1470
|
+
}).openapi("TenantIdParams");
|
|
1471
|
+
var TenantProjectParamsSchema = TenantParamsSchema.extend({
|
|
1472
|
+
projectId: ProjectId
|
|
1473
|
+
}).openapi("TenantProjectParams");
|
|
1474
|
+
TenantProjectParamsSchema.extend({
|
|
1516
1475
|
id: resourceIdSchema
|
|
1517
1476
|
}).openapi("TenantProjectIdParams");
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
}),
|
|
1477
|
+
var TenantProjectGraphParamsSchema = TenantProjectParamsSchema.extend({
|
|
1478
|
+
graphId: GraphId
|
|
1479
|
+
}).openapi("TenantProjectGraphParams");
|
|
1480
|
+
TenantProjectGraphParamsSchema.extend({
|
|
1523
1481
|
id: resourceIdSchema
|
|
1524
|
-
}).openapi("
|
|
1525
|
-
|
|
1482
|
+
}).openapi("TenantProjectGraphIdParams");
|
|
1483
|
+
var TenantProjectGraphSubAgentParamsSchema = TenantProjectGraphParamsSchema.extend({
|
|
1484
|
+
subAgentId: SubAgentId
|
|
1485
|
+
}).openapi("TenantProjectGraphSubAgentParams");
|
|
1486
|
+
TenantProjectGraphSubAgentParamsSchema.extend({
|
|
1526
1487
|
id: resourceIdSchema
|
|
1527
|
-
}).openapi("
|
|
1488
|
+
}).openapi("TenantProjectGraphSubAgentIdParams");
|
|
1528
1489
|
zodOpenapi.z.object({
|
|
1529
1490
|
page: zodOpenapi.z.coerce.number().min(1).default(1),
|
|
1530
1491
|
limit: zodOpenapi.z.coerce.number().min(1).max(100).default(10)
|
|
@@ -1632,6 +1593,276 @@ function validatePropsAsJsonSchema(props) {
|
|
|
1632
1593
|
}
|
|
1633
1594
|
}
|
|
1634
1595
|
|
|
1596
|
+
// src/constants/otel-attributes.ts
|
|
1597
|
+
var DELEGATION_FROM_SUB_AGENT_ID = "delegation.from_sub_agent_id";
|
|
1598
|
+
var DELEGATION_TO_SUB_AGENT_ID = "delegation.to_sub_agent_id";
|
|
1599
|
+
var DELEGATION_ID = "delegation.id";
|
|
1600
|
+
var TRANSFER_FROM_SUB_AGENT_ID = "transfer.from_sub_agent_id";
|
|
1601
|
+
var TRANSFER_TO_SUB_AGENT_ID = "transfer.to_sub_agent_id";
|
|
1602
|
+
var SPAN_NAMES = {
|
|
1603
|
+
AI_TOOL_CALL: "ai.toolCall",
|
|
1604
|
+
CONTEXT_RESOLUTION: "context-resolver.resolve_single_fetch_definition",
|
|
1605
|
+
CONTEXT_HANDLE: "context.handle_context_resolution",
|
|
1606
|
+
AGENT_GENERATION: "agent.generate",
|
|
1607
|
+
CONTEXT_FETCHER: "context-fetcher.http-request"
|
|
1608
|
+
};
|
|
1609
|
+
var AI_OPERATIONS = {
|
|
1610
|
+
GENERATE_TEXT: "ai.generateText.doGenerate",
|
|
1611
|
+
STREAM_TEXT: "ai.streamText.doStream"
|
|
1612
|
+
};
|
|
1613
|
+
var SPAN_KEYS = {
|
|
1614
|
+
// Core span attributes
|
|
1615
|
+
SPAN_ID: "spanID",
|
|
1616
|
+
TRACE_ID: "traceID",
|
|
1617
|
+
DURATION_NANO: "durationNano",
|
|
1618
|
+
TIMESTAMP: "timestamp",
|
|
1619
|
+
HAS_ERROR: "hasError",
|
|
1620
|
+
STATUS_MESSAGE: "status_message",
|
|
1621
|
+
OTEL_STATUS_CODE: "otel.status_code",
|
|
1622
|
+
OTEL_STATUS_DESCRIPTION: "otel.status_description",
|
|
1623
|
+
// Graph attributes
|
|
1624
|
+
GRAPH_ID: "graph.id",
|
|
1625
|
+
GRAPH_NAME: "graph.name",
|
|
1626
|
+
TENANT_ID: "tenant.id",
|
|
1627
|
+
PROJECT_ID: "project.id",
|
|
1628
|
+
// AI/Agent attributes
|
|
1629
|
+
AI_AGENT_NAME: "ai.agentName",
|
|
1630
|
+
AI_AGENT_NAME_ALT: "ai.agent.name",
|
|
1631
|
+
AI_OPERATION_ID: "ai.operationId",
|
|
1632
|
+
AI_RESPONSE_TIMESTAMP: "ai.response.timestamp",
|
|
1633
|
+
AI_RESPONSE_CONTENT: "ai.response.content",
|
|
1634
|
+
AI_RESPONSE_TEXT: "ai.response.text",
|
|
1635
|
+
AI_RESPONSE_MODEL: "ai.response.model",
|
|
1636
|
+
AI_RESPONSE_TOOL_CALLS: "ai.response.toolCalls",
|
|
1637
|
+
AI_PROMPT_MESSAGES: "ai.prompt.messages",
|
|
1638
|
+
AI_MODEL_PROVIDER: "ai.model.provider",
|
|
1639
|
+
AI_TELEMETRY_FUNCTION_ID: "ai.telemetry.functionId",
|
|
1640
|
+
AI_MODEL_ID: "ai.model.id",
|
|
1641
|
+
// Tool attributes
|
|
1642
|
+
AI_TOOL_CALL_NAME: "ai.toolCall.name",
|
|
1643
|
+
AI_TOOL_CALL_RESULT: "ai.toolCall.result",
|
|
1644
|
+
AI_TOOL_CALL_ARGS: "ai.toolCall.args",
|
|
1645
|
+
AI_TOOL_CALL_ID: "ai.toolCall.id",
|
|
1646
|
+
AI_TOOL_TYPE: "ai.toolType",
|
|
1647
|
+
TOOL_PURPOSE: "tool.purpose",
|
|
1648
|
+
// Agent attributes
|
|
1649
|
+
AGENT_ID: "agent.id",
|
|
1650
|
+
AGENT_NAME: "agent.name",
|
|
1651
|
+
// Token usage
|
|
1652
|
+
GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens",
|
|
1653
|
+
GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens",
|
|
1654
|
+
// Context attributes
|
|
1655
|
+
CONTEXT_URL: "context.url",
|
|
1656
|
+
CONTEXT_CONFIG_ID: "context.context_config_id",
|
|
1657
|
+
CONTEXT_AGENT_GRAPH_ID: "context.agent_graph_id",
|
|
1658
|
+
CONTEXT_HEADERS_KEYS: "context.headers_keys",
|
|
1659
|
+
// Message attributes
|
|
1660
|
+
MESSAGE_CONTENT: "message.content",
|
|
1661
|
+
MESSAGE_TIMESTAMP: "message.timestamp",
|
|
1662
|
+
MCP_TOOL_DESCRIPTION: "mcp.tool.description",
|
|
1663
|
+
// Delegation/Transfer attributes
|
|
1664
|
+
DELEGATION_FROM_SUB_AGENT_ID,
|
|
1665
|
+
DELEGATION_TO_SUB_AGENT_ID,
|
|
1666
|
+
DELEGATION_ID,
|
|
1667
|
+
TRANSFER_FROM_SUB_AGENT_ID,
|
|
1668
|
+
TRANSFER_TO_SUB_AGENT_ID,
|
|
1669
|
+
// HTTP attributes
|
|
1670
|
+
HTTP_URL: "http.url",
|
|
1671
|
+
HTTP_STATUS_CODE: "http.status_code",
|
|
1672
|
+
HTTP_RESPONSE_BODY_SIZE: "http.response.body_size",
|
|
1673
|
+
// Core attributes
|
|
1674
|
+
NAME: "name",
|
|
1675
|
+
PARENT_SPAN_ID: "parentSpanID",
|
|
1676
|
+
CONVERSATION_ID: "conversation.id"
|
|
1677
|
+
};
|
|
1678
|
+
var UNKNOWN_VALUE = "unknown";
|
|
1679
|
+
var ACTIVITY_TYPES = {
|
|
1680
|
+
TOOL_CALL: "tool_call",
|
|
1681
|
+
AI_GENERATION: "ai_generation",
|
|
1682
|
+
AGENT_GENERATION: "agent_generation",
|
|
1683
|
+
CONTEXT_FETCH: "context_fetch",
|
|
1684
|
+
CONTEXT_RESOLUTION: "context_resolution",
|
|
1685
|
+
USER_MESSAGE: "user_message",
|
|
1686
|
+
AI_ASSISTANT_MESSAGE: "ai_assistant_message",
|
|
1687
|
+
AI_MODEL_STREAMED_TEXT: "ai_model_streamed_text"
|
|
1688
|
+
};
|
|
1689
|
+
var ACTIVITY_STATUS = {
|
|
1690
|
+
SUCCESS: "success",
|
|
1691
|
+
ERROR: "error",
|
|
1692
|
+
PENDING: "pending"
|
|
1693
|
+
};
|
|
1694
|
+
var AGENT_IDS = {
|
|
1695
|
+
USER: "user",
|
|
1696
|
+
AI_ASSISTANT: "ai-assistant"
|
|
1697
|
+
};
|
|
1698
|
+
var ACTIVITY_NAMES = {
|
|
1699
|
+
CONTEXT_FETCH: "Context Fetch",
|
|
1700
|
+
USER_MESSAGE: "User Message",
|
|
1701
|
+
AI_ASSISTANT_MESSAGE: "AI Assistant Message",
|
|
1702
|
+
AI_TEXT_GENERATION: "AI Text Generation",
|
|
1703
|
+
AI_STREAMING_TEXT: "AI Streaming Text",
|
|
1704
|
+
UNKNOWN_AGENT: "Unknown Agent",
|
|
1705
|
+
USER: "User"
|
|
1706
|
+
};
|
|
1707
|
+
var TOOL_NAMES = {
|
|
1708
|
+
SAVE_TOOL_RESULT: "save_tool_result"
|
|
1709
|
+
};
|
|
1710
|
+
var AI_TOOL_TYPES = {
|
|
1711
|
+
MCP: "mcp",
|
|
1712
|
+
TRANSFER: "transfer",
|
|
1713
|
+
DELEGATION: "delegation"
|
|
1714
|
+
};
|
|
1715
|
+
|
|
1716
|
+
// src/constants/signoz-queries.ts
|
|
1717
|
+
var DATA_TYPES = {
|
|
1718
|
+
STRING: "string",
|
|
1719
|
+
INT64: "int64",
|
|
1720
|
+
FLOAT64: "float64",
|
|
1721
|
+
BOOL: "bool"
|
|
1722
|
+
};
|
|
1723
|
+
var FIELD_TYPES = {
|
|
1724
|
+
TAG: "tag",
|
|
1725
|
+
RESOURCE: "resource"
|
|
1726
|
+
};
|
|
1727
|
+
var QUERY_FIELD_CONFIGS = {
|
|
1728
|
+
// String tag fields
|
|
1729
|
+
STRING_TAG: {
|
|
1730
|
+
dataType: DATA_TYPES.STRING,
|
|
1731
|
+
type: FIELD_TYPES.TAG,
|
|
1732
|
+
isColumn: false
|
|
1733
|
+
},
|
|
1734
|
+
STRING_TAG_COLUMN: {
|
|
1735
|
+
dataType: DATA_TYPES.STRING,
|
|
1736
|
+
type: FIELD_TYPES.TAG,
|
|
1737
|
+
isColumn: true
|
|
1738
|
+
},
|
|
1739
|
+
// Numeric tag fields
|
|
1740
|
+
INT64_TAG: {
|
|
1741
|
+
dataType: DATA_TYPES.INT64,
|
|
1742
|
+
type: FIELD_TYPES.TAG,
|
|
1743
|
+
isColumn: false
|
|
1744
|
+
},
|
|
1745
|
+
INT64_TAG_COLUMN: {
|
|
1746
|
+
dataType: DATA_TYPES.INT64,
|
|
1747
|
+
type: FIELD_TYPES.TAG,
|
|
1748
|
+
isColumn: true
|
|
1749
|
+
},
|
|
1750
|
+
FLOAT64_TAG: {
|
|
1751
|
+
dataType: DATA_TYPES.FLOAT64,
|
|
1752
|
+
type: FIELD_TYPES.TAG,
|
|
1753
|
+
isColumn: false
|
|
1754
|
+
},
|
|
1755
|
+
FLOAT64_TAG_COLUMN: {
|
|
1756
|
+
dataType: DATA_TYPES.FLOAT64,
|
|
1757
|
+
type: FIELD_TYPES.TAG,
|
|
1758
|
+
isColumn: true
|
|
1759
|
+
},
|
|
1760
|
+
// Boolean tag fields
|
|
1761
|
+
BOOL_TAG: {
|
|
1762
|
+
dataType: DATA_TYPES.BOOL,
|
|
1763
|
+
type: FIELD_TYPES.TAG,
|
|
1764
|
+
isColumn: false
|
|
1765
|
+
},
|
|
1766
|
+
BOOL_TAG_COLUMN: {
|
|
1767
|
+
dataType: DATA_TYPES.BOOL,
|
|
1768
|
+
type: FIELD_TYPES.TAG,
|
|
1769
|
+
isColumn: true
|
|
1770
|
+
}
|
|
1771
|
+
};
|
|
1772
|
+
var OPERATORS = {
|
|
1773
|
+
// Comparison operators
|
|
1774
|
+
EQUALS: "=",
|
|
1775
|
+
NOT_EQUALS: "!=",
|
|
1776
|
+
LESS_THAN: "<",
|
|
1777
|
+
GREATER_THAN: ">",
|
|
1778
|
+
LESS_THAN_OR_EQUAL: "<=",
|
|
1779
|
+
GREATER_THAN_OR_EQUAL: ">=",
|
|
1780
|
+
// String operators
|
|
1781
|
+
LIKE: "like",
|
|
1782
|
+
NOT_LIKE: "nlike",
|
|
1783
|
+
// Existence operators
|
|
1784
|
+
EXISTS: "exists",
|
|
1785
|
+
NOT_EXISTS: "nexists",
|
|
1786
|
+
// Logical operators
|
|
1787
|
+
AND: "AND",
|
|
1788
|
+
OR: "OR"
|
|
1789
|
+
};
|
|
1790
|
+
var QUERY_EXPRESSIONS = {
|
|
1791
|
+
SPAN_NAMES: "spanNames",
|
|
1792
|
+
AGENT_MODEL_CALLS: "agentModelCalls",
|
|
1793
|
+
MODEL_CALLS: "modelCalls",
|
|
1794
|
+
LAST_ACTIVITY: "lastActivity",
|
|
1795
|
+
CONVERSATION_METADATA: "conversationMetadata",
|
|
1796
|
+
FILTERED_CONVERSATIONS: "filteredConversations",
|
|
1797
|
+
TOOLS: "tools",
|
|
1798
|
+
TRANSFERS: "transfers",
|
|
1799
|
+
DELEGATIONS: "delegations",
|
|
1800
|
+
AI_CALLS: "aiCalls",
|
|
1801
|
+
CONTEXT_ERRORS: "contextErrors",
|
|
1802
|
+
AGENT_GENERATION_ERRORS: "agentGenerationErrors",
|
|
1803
|
+
USER_MESSAGES: "userMessages",
|
|
1804
|
+
UNIQUE_GRAPHS: "uniqueGraphs",
|
|
1805
|
+
UNIQUE_MODELS: "uniqueModels",
|
|
1806
|
+
// Route-specific query names
|
|
1807
|
+
TOOL_CALLS: "toolCalls",
|
|
1808
|
+
CONTEXT_RESOLUTION: "contextResolution",
|
|
1809
|
+
CONTEXT_HANDLE: "contextHandle",
|
|
1810
|
+
AI_ASSISTANT_MESSAGES: "aiAssistantMessages",
|
|
1811
|
+
AI_GENERATIONS: "aiGenerations",
|
|
1812
|
+
AI_STREAMING_TEXT: "aiStreamingText",
|
|
1813
|
+
CONTEXT_FETCHERS: "contextFetchers",
|
|
1814
|
+
DURATION_SPANS: "durationSpans",
|
|
1815
|
+
AGENT_GENERATIONS: "agentGenerations",
|
|
1816
|
+
SPANS_WITH_ERRORS: "spansWithErrors"
|
|
1817
|
+
};
|
|
1818
|
+
var REDUCE_OPERATIONS = {
|
|
1819
|
+
SUM: "sum",
|
|
1820
|
+
MAX: "max",
|
|
1821
|
+
MIN: "min",
|
|
1822
|
+
AVG: "avg",
|
|
1823
|
+
COUNT: "count"
|
|
1824
|
+
};
|
|
1825
|
+
var ORDER_DIRECTIONS = {
|
|
1826
|
+
ASC: "asc",
|
|
1827
|
+
DESC: "desc"
|
|
1828
|
+
};
|
|
1829
|
+
var QUERY_TYPES = {
|
|
1830
|
+
BUILDER: "builder",
|
|
1831
|
+
CLICKHOUSE: "clickhouse",
|
|
1832
|
+
PROMQL: "promql"
|
|
1833
|
+
};
|
|
1834
|
+
var PANEL_TYPES = {
|
|
1835
|
+
LIST: "list",
|
|
1836
|
+
TABLE: "table",
|
|
1837
|
+
GRAPH: "graph",
|
|
1838
|
+
VALUE: "value"
|
|
1839
|
+
};
|
|
1840
|
+
var DATA_SOURCES = {
|
|
1841
|
+
TRACES: "traces",
|
|
1842
|
+
METRICS: "metrics",
|
|
1843
|
+
LOGS: "logs"
|
|
1844
|
+
};
|
|
1845
|
+
var AGGREGATE_OPERATORS = {
|
|
1846
|
+
COUNT: "count",
|
|
1847
|
+
SUM: "sum",
|
|
1848
|
+
AVG: "avg",
|
|
1849
|
+
MIN: "min",
|
|
1850
|
+
MAX: "max",
|
|
1851
|
+
NOOP: "noop"
|
|
1852
|
+
};
|
|
1853
|
+
var QUERY_DEFAULTS = {
|
|
1854
|
+
STEP: 60,
|
|
1855
|
+
STEP_INTERVAL: 60,
|
|
1856
|
+
OFFSET: 0,
|
|
1857
|
+
DISABLED: false,
|
|
1858
|
+
HAVING: [],
|
|
1859
|
+
LEGEND: "",
|
|
1860
|
+
LIMIT_NULL: null,
|
|
1861
|
+
LIMIT_ZERO: 0,
|
|
1862
|
+
LIMIT_1000: 1e3,
|
|
1863
|
+
EMPTY_GROUP_BY: []
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1635
1866
|
// src/client-exports.ts
|
|
1636
1867
|
var TenantParamsSchema2 = zod.z.object({
|
|
1637
1868
|
tenantId: zod.z.string()
|
|
@@ -1642,7 +1873,7 @@ var TenantProjectParamsSchema2 = TenantParamsSchema2.extend({
|
|
|
1642
1873
|
var TenantProjectIdParamsSchema2 = TenantProjectParamsSchema2.extend({
|
|
1643
1874
|
id: zod.z.string()
|
|
1644
1875
|
});
|
|
1645
|
-
var
|
|
1876
|
+
var IdParamsSchema = zod.z.object({
|
|
1646
1877
|
id: zod.z.string()
|
|
1647
1878
|
});
|
|
1648
1879
|
var PaginationSchema2 = zod.z.object({
|
|
@@ -1663,7 +1894,7 @@ var ErrorResponseSchema2 = zod.z.object({
|
|
|
1663
1894
|
message: zod.z.string().optional(),
|
|
1664
1895
|
details: zod.z.unknown().optional()
|
|
1665
1896
|
});
|
|
1666
|
-
var
|
|
1897
|
+
var AgentApiInsertSchema = zod.z.object({
|
|
1667
1898
|
id: zod.z.string().optional(),
|
|
1668
1899
|
name: zod.z.string(),
|
|
1669
1900
|
description: zod.z.string().optional(),
|
|
@@ -1739,10 +1970,10 @@ var AgentGraphApiInsertSchema2 = zod.z.object({
|
|
|
1739
1970
|
id: zod.z.string().optional(),
|
|
1740
1971
|
name: zod.z.string(),
|
|
1741
1972
|
description: zod.z.string().optional(),
|
|
1742
|
-
|
|
1973
|
+
defaultSubAgentId: zod.z.string().optional()
|
|
1743
1974
|
});
|
|
1744
|
-
var
|
|
1745
|
-
|
|
1975
|
+
var FullGraphDefinitionSchema = AgentGraphApiInsertSchema2.extend({
|
|
1976
|
+
subAgents: zod.z.record(
|
|
1746
1977
|
zod.z.string(),
|
|
1747
1978
|
zod.z.union([
|
|
1748
1979
|
FullGraphAgentInsertSchema,
|
|
@@ -1801,7 +2032,14 @@ function generateIdFromName(name) {
|
|
|
1801
2032
|
return name.toLowerCase().replace(/[^a-zA-Z0-9]/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "").slice(0, MAX_ID_LENGTH2);
|
|
1802
2033
|
}
|
|
1803
2034
|
|
|
1804
|
-
exports.
|
|
2035
|
+
exports.ACTIVITY_NAMES = ACTIVITY_NAMES;
|
|
2036
|
+
exports.ACTIVITY_STATUS = ACTIVITY_STATUS;
|
|
2037
|
+
exports.ACTIVITY_TYPES = ACTIVITY_TYPES;
|
|
2038
|
+
exports.AGENT_IDS = AGENT_IDS;
|
|
2039
|
+
exports.AGGREGATE_OPERATORS = AGGREGATE_OPERATORS;
|
|
2040
|
+
exports.AI_OPERATIONS = AI_OPERATIONS;
|
|
2041
|
+
exports.AI_TOOL_TYPES = AI_TOOL_TYPES;
|
|
2042
|
+
exports.AgentApiInsertSchema = AgentApiInsertSchema;
|
|
1805
2043
|
exports.AgentGraphApiInsertSchema = AgentGraphApiInsertSchema2;
|
|
1806
2044
|
exports.AgentStopWhenSchema = AgentStopWhenSchema;
|
|
1807
2045
|
exports.ApiKeyApiCreationResponseSchema = ApiKeyApiCreationResponseSchema2;
|
|
@@ -1810,28 +2048,48 @@ exports.ArtifactComponentApiInsertSchema = ArtifactComponentApiInsertSchema2;
|
|
|
1810
2048
|
exports.ContextConfigApiInsertSchema = ContextConfigApiInsertSchema2;
|
|
1811
2049
|
exports.CredentialReferenceApiInsertSchema = CredentialReferenceApiInsertSchema2;
|
|
1812
2050
|
exports.CredentialStoreType = CredentialStoreType;
|
|
2051
|
+
exports.DATA_SOURCES = DATA_SOURCES;
|
|
2052
|
+
exports.DATA_TYPES = DATA_TYPES;
|
|
2053
|
+
exports.DELEGATION_FROM_SUB_AGENT_ID = DELEGATION_FROM_SUB_AGENT_ID;
|
|
2054
|
+
exports.DELEGATION_ID = DELEGATION_ID;
|
|
2055
|
+
exports.DELEGATION_TO_SUB_AGENT_ID = DELEGATION_TO_SUB_AGENT_ID;
|
|
1813
2056
|
exports.DataComponentApiInsertSchema = DataComponentApiInsertSchema2;
|
|
1814
2057
|
exports.ErrorResponseSchema = ErrorResponseSchema2;
|
|
1815
2058
|
exports.ExternalAgentApiInsertSchema = ExternalAgentApiInsertSchema2;
|
|
1816
|
-
exports.
|
|
2059
|
+
exports.FIELD_TYPES = FIELD_TYPES;
|
|
2060
|
+
exports.FullGraphDefinitionSchema = FullGraphDefinitionSchema;
|
|
1817
2061
|
exports.FunctionApiInsertSchema = FunctionApiInsertSchema;
|
|
1818
2062
|
exports.FunctionApiSelectSchema = FunctionApiSelectSchema;
|
|
1819
2063
|
exports.FunctionApiUpdateSchema = FunctionApiUpdateSchema;
|
|
1820
2064
|
exports.GraphStopWhenSchema = GraphStopWhenSchema;
|
|
1821
|
-
exports.IdParamsSchema =
|
|
2065
|
+
exports.IdParamsSchema = IdParamsSchema;
|
|
1822
2066
|
exports.ListResponseSchema = ListResponseSchema;
|
|
1823
2067
|
exports.MAX_ID_LENGTH = MAX_ID_LENGTH2;
|
|
1824
2068
|
exports.MCPTransportType = MCPTransportType;
|
|
1825
2069
|
exports.MIN_ID_LENGTH = MIN_ID_LENGTH2;
|
|
1826
2070
|
exports.ModelSettingsSchema = ModelSettingsSchema;
|
|
2071
|
+
exports.OPERATORS = OPERATORS;
|
|
2072
|
+
exports.ORDER_DIRECTIONS = ORDER_DIRECTIONS;
|
|
2073
|
+
exports.PANEL_TYPES = PANEL_TYPES;
|
|
1827
2074
|
exports.PaginationSchema = PaginationSchema2;
|
|
2075
|
+
exports.QUERY_DEFAULTS = QUERY_DEFAULTS;
|
|
2076
|
+
exports.QUERY_EXPRESSIONS = QUERY_EXPRESSIONS;
|
|
2077
|
+
exports.QUERY_FIELD_CONFIGS = QUERY_FIELD_CONFIGS;
|
|
2078
|
+
exports.QUERY_TYPES = QUERY_TYPES;
|
|
2079
|
+
exports.REDUCE_OPERATIONS = REDUCE_OPERATIONS;
|
|
2080
|
+
exports.SPAN_KEYS = SPAN_KEYS;
|
|
2081
|
+
exports.SPAN_NAMES = SPAN_NAMES;
|
|
1828
2082
|
exports.SandboxConfigSchema = SandboxConfigSchema;
|
|
1829
2083
|
exports.SingleResponseSchema = SingleResponseSchema;
|
|
1830
2084
|
exports.StopWhenSchema = StopWhenSchema;
|
|
2085
|
+
exports.TOOL_NAMES = TOOL_NAMES;
|
|
2086
|
+
exports.TRANSFER_FROM_SUB_AGENT_ID = TRANSFER_FROM_SUB_AGENT_ID;
|
|
2087
|
+
exports.TRANSFER_TO_SUB_AGENT_ID = TRANSFER_TO_SUB_AGENT_ID;
|
|
1831
2088
|
exports.TenantParamsSchema = TenantParamsSchema2;
|
|
1832
2089
|
exports.TenantProjectIdParamsSchema = TenantProjectIdParamsSchema2;
|
|
1833
2090
|
exports.TenantProjectParamsSchema = TenantProjectParamsSchema2;
|
|
1834
2091
|
exports.ToolApiInsertSchema = ToolApiInsertSchema2;
|
|
2092
|
+
exports.UNKNOWN_VALUE = UNKNOWN_VALUE;
|
|
1835
2093
|
exports.URL_SAFE_ID_PATTERN = URL_SAFE_ID_PATTERN2;
|
|
1836
2094
|
exports.generateIdFromName = generateIdFromName;
|
|
1837
2095
|
exports.resourceIdSchema = resourceIdSchema2;
|