@inkeep/agents-core 0.20.1 → 0.21.1

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.
@@ -1,4 +1,4 @@
1
- import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-VICWT3WO.js';
1
+ import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-XKJPMUGE.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  var TransferDataSchema = z.object({
@@ -5,8 +5,6 @@ import { sqliteTable, text, primaryKey, foreignKey, blob, integer, index, unique
5
5
  // src/db/schema.ts
6
6
  var schema_exports = {};
7
7
  __export(schema_exports, {
8
- agentFunctionToolRelations: () => agentFunctionToolRelations,
9
- agentFunctionToolRelationsRelations: () => agentFunctionToolRelationsRelations,
10
8
  agentRelations: () => agentRelations,
11
9
  agentToolRelationsRelations: () => agentToolRelationsRelations,
12
10
  agents: () => agents,
@@ -40,6 +38,8 @@ __export(schema_exports, {
40
38
  subAgentArtifactComponentsRelations: () => subAgentArtifactComponentsRelations,
41
39
  subAgentDataComponents: () => subAgentDataComponents,
42
40
  subAgentDataComponentsRelations: () => subAgentDataComponentsRelations,
41
+ subAgentFunctionToolRelations: () => subAgentFunctionToolRelations,
42
+ subAgentFunctionToolRelationsRelations: () => subAgentFunctionToolRelationsRelations,
43
43
  subAgentRelations: () => subAgentRelations,
44
44
  subAgentRelationsRelations: () => subAgentRelationsRelations,
45
45
  subAgentToolRelations: () => subAgentToolRelations,
@@ -81,11 +81,8 @@ var projects = sqliteTable(
81
81
  {
82
82
  ...tenantScoped,
83
83
  ...uiProperties,
84
- // Project-level default model settings that can be inherited by agents
85
84
  models: text("models", { mode: "json" }).$type(),
86
- // Project-level stopWhen configuration that can be inherited by agents
87
85
  stopWhen: text("stop_when", { mode: "json" }).$type(),
88
- // Project-level sandbox configuration for function execution
89
86
  sandboxConfig: text("sandbox_config", { mode: "json" }).$type(),
90
87
  ...timestamps
91
88
  },
@@ -118,9 +115,7 @@ var contextConfigs = sqliteTable(
118
115
  "context_configs",
119
116
  {
120
117
  ...agentScoped,
121
- // Developer-defined Zod schema for validating incoming request context
122
118
  headersSchema: blob("headers_schema", { mode: "json" }).$type(),
123
- // Object mapping template keys to fetch definitions that use request context data
124
119
  contextVariables: blob("context_variables", { mode: "json" }).$type(),
125
120
  ...timestamps
126
121
  },
@@ -137,15 +132,11 @@ var contextCache = sqliteTable(
137
132
  "context_cache",
138
133
  {
139
134
  ...projectScoped,
140
- // Always scoped to conversation for complete data isolation
141
135
  conversationId: text("conversation_id").notNull(),
142
- // Reference to the context config and specific fetch definition
143
136
  contextConfigId: text("context_config_id").notNull(),
144
137
  contextVariableKey: text("context_variable_key").notNull(),
145
138
  value: blob("value", { mode: "json" }).$type().notNull(),
146
- // Request hash for cache invalidation based on context changes
147
139
  requestHash: text("request_hash"),
148
- // Metadata for monitoring and debugging
149
140
  fetchedAt: text("fetched_at").notNull(),
150
141
  fetchSource: text("fetch_source"),
151
142
  fetchDurationMs: integer("fetch_duration_ms"),
@@ -192,9 +183,7 @@ var subAgentRelations = sqliteTable(
192
183
  {
193
184
  ...agentScoped,
194
185
  sourceSubAgentId: text("source_sub_agent_id").notNull(),
195
- // For internal relationships
196
186
  targetSubAgentId: text("target_sub_agent_id"),
197
- // For external relationships
198
187
  externalSubAgentId: text("external_sub_agent_id"),
199
188
  relationType: text("relation_type"),
200
189
  ...timestamps
@@ -363,9 +352,7 @@ var tools = sqliteTable(
363
352
  config: blob("config", { mode: "json" }).$type().notNull(),
364
353
  credentialReferenceId: text("credential_reference_id"),
365
354
  headers: blob("headers", { mode: "json" }).$type(),
366
- // Image URL for custom tool icon (supports regular URLs and base64 encoded images)
367
355
  imageUrl: text("image_url"),
368
- // Server capabilities and status (only for MCP tools)
369
356
  capabilities: blob("capabilities", { mode: "json" }).$type(),
370
357
  lastError: text("last_error"),
371
358
  ...timestamps
@@ -395,7 +382,6 @@ var functionTools = sqliteTable(
395
382
  foreignColumns: [agents.tenantId, agents.projectId, agents.id],
396
383
  name: "function_tools_agent_fk"
397
384
  }).onDelete("cascade"),
398
- // Foreign key constraint to functions table
399
385
  foreignKey({
400
386
  columns: [table.tenantId, table.projectId, table.functionId],
401
387
  foreignColumns: [functions.tenantId, functions.projectId, functions.id],
@@ -444,8 +430,8 @@ var subAgentToolRelations = sqliteTable(
444
430
  }).onDelete("cascade")
445
431
  ]
446
432
  );
447
- var agentFunctionToolRelations = sqliteTable(
448
- "agent_function_tool_relations",
433
+ var subAgentFunctionToolRelations = sqliteTable(
434
+ "sub_agent_function_tool_relations",
449
435
  {
450
436
  ...subAgentScoped,
451
437
  functionToolId: text("function_tool_id").notNull(),
@@ -453,13 +439,11 @@ var agentFunctionToolRelations = sqliteTable(
453
439
  },
454
440
  (table) => [
455
441
  primaryKey({ columns: [table.tenantId, table.projectId, table.agentId, table.id] }),
456
- // Foreign key constraint to agents table
457
442
  foreignKey({
458
443
  columns: [table.tenantId, table.projectId, table.agentId, table.subAgentId],
459
444
  foreignColumns: [subAgents.tenantId, subAgents.projectId, subAgents.agentId, subAgents.id],
460
- name: "agent_function_tool_relations_agent_fk"
445
+ name: "sub_agent_function_tool_relations_sub_agent_fk"
461
446
  }).onDelete("cascade"),
462
- // Foreign key constraint to functionTools table
463
447
  foreignKey({
464
448
  columns: [table.tenantId, table.projectId, table.agentId, table.functionToolId],
465
449
  foreignColumns: [
@@ -468,7 +452,7 @@ var agentFunctionToolRelations = sqliteTable(
468
452
  functionTools.agentId,
469
453
  functionTools.id
470
454
  ],
471
- name: "agent_function_tool_relations_function_tool_fk"
455
+ name: "sub_agent_function_tool_relations_function_tool_fk"
472
456
  }).onDelete("cascade")
473
457
  ]
474
458
  );
@@ -497,26 +481,18 @@ var messages = sqliteTable(
497
481
  {
498
482
  ...projectScoped,
499
483
  conversationId: text("conversation_id").notNull(),
500
- // Role mapping: user, agent, system (unified for both formats)
501
484
  role: text("role").notNull(),
502
- // Agent sender/recipient tracking (nullable - only populated when relevant)
503
485
  fromSubAgentId: text("from_sub_agent_id"),
504
486
  toSubAgentId: text("to_sub_agent_id"),
505
- // External agent sender tracking
506
487
  fromExternalAgentId: text("from_external_sub_agent_id"),
507
- // External agent recipient tracking
508
488
  toExternalAgentId: text("to_external_sub_agent_id"),
509
- // Message content stored as JSON to support both formats
510
489
  content: blob("content", { mode: "json" }).$type().notNull(),
511
- // Message classification and filtering
512
490
  visibility: text("visibility").notNull().default("user-facing"),
513
491
  messageType: text("message_type").notNull().default("chat"),
514
492
  taskId: text("task_id"),
515
493
  parentMessageId: text("parent_message_id"),
516
- // A2A specific fields
517
494
  a2aTaskId: text("a2a_task_id"),
518
495
  a2aSessionId: text("a2a_session_id"),
519
- // Metadata for extensions
520
496
  metadata: blob("metadata", { mode: "json" }).$type(),
521
497
  ...timestamps
522
498
  },
@@ -533,17 +509,14 @@ var ledgerArtifacts = sqliteTable(
533
509
  "ledger_artifacts",
534
510
  {
535
511
  ...projectScoped,
536
- // Links
537
512
  taskId: text("task_id").notNull(),
538
513
  toolCallId: text("tool_call_id"),
539
514
  contextId: text("context_id").notNull(),
540
- // Core Artifact fields
541
515
  type: text("type").notNull().default("source"),
542
516
  name: text("name"),
543
517
  description: text("description"),
544
518
  parts: blob("parts", { mode: "json" }).$type(),
545
519
  metadata: blob("metadata", { mode: "json" }).$type(),
546
- // Extra ledger information (not part of the Artifact spec – kept optional)
547
520
  summary: text("summary"),
548
521
  mime: blob("mime", { mode: "json" }).$type(),
549
522
  visibility: text("visibility").default("context"),
@@ -694,7 +667,7 @@ var subAgentsRelations = relations(subAgents, ({ many, one }) => ({
694
667
  relationName: "receivedMessages"
695
668
  }),
696
669
  toolRelations: many(subAgentToolRelations),
697
- functionToolRelations: many(agentFunctionToolRelations),
670
+ functionToolRelations: many(subAgentFunctionToolRelations),
698
671
  dataComponentRelations: many(subAgentDataComponents),
699
672
  artifactComponentRelations: many(subAgentArtifactComponents)
700
673
  }));
@@ -899,20 +872,20 @@ var functionToolsRelations = relations(functionTools, ({ one, many }) => ({
899
872
  fields: [functionTools.tenantId, functionTools.projectId, functionTools.functionId],
900
873
  references: [functions.tenantId, functions.projectId, functions.id]
901
874
  }),
902
- agentRelations: many(agentFunctionToolRelations)
875
+ subAgentRelations: many(subAgentFunctionToolRelations)
903
876
  }));
904
- var agentFunctionToolRelationsRelations = relations(
905
- agentFunctionToolRelations,
877
+ var subAgentFunctionToolRelationsRelations = relations(
878
+ subAgentFunctionToolRelations,
906
879
  ({ one }) => ({
907
- agent: one(subAgents, {
908
- fields: [agentFunctionToolRelations.subAgentId],
880
+ subAgent: one(subAgents, {
881
+ fields: [subAgentFunctionToolRelations.subAgentId],
909
882
  references: [subAgents.id]
910
883
  }),
911
884
  functionTool: one(functionTools, {
912
- fields: [agentFunctionToolRelations.functionToolId],
885
+ fields: [subAgentFunctionToolRelations.functionToolId],
913
886
  references: [functionTools.id]
914
887
  })
915
888
  })
916
889
  );
917
890
 
918
- export { agentFunctionToolRelations, agentFunctionToolRelationsRelations, agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, schema_exports, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentRelations, subAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations };
891
+ export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, schema_exports, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations };
@@ -1,17 +1,28 @@
1
1
  // src/constants/models.ts
2
2
  var ANTHROPIC_MODELS = {
3
+ CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1",
3
4
  CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805",
5
+ CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5",
4
6
  CLAUDE_SONNET_4_5_20250929: "anthropic/claude-sonnet-4-5-20250929",
7
+ CLAUDE_SONNET_4: "anthropic/claude-sonnet-4",
5
8
  CLAUDE_SONNET_4_20250514: "anthropic/claude-sonnet-4-20250514",
9
+ CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet",
6
10
  CLAUDE_3_5_SONNET_20241022: "anthropic/claude-3-5-sonnet-20241022",
11
+ CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku",
7
12
  CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022"
8
13
  };
9
14
  var OPENAI_MODELS = {
15
+ GPT_5: "openai/gpt-5",
10
16
  GPT_5_20250807: "openai/gpt-5-2025-08-07",
17
+ GPT_5_MINI: "openai/gpt-5-mini",
11
18
  GPT_5_MINI_20250807: "openai/gpt-5-mini-2025-08-07",
19
+ GPT_5_NANO: "openai/gpt-5-nano",
12
20
  GPT_5_NANO_20250807: "openai/gpt-5-nano-2025-08-07",
21
+ GPT_4_1: "openai/gpt-4.1",
13
22
  GPT_4_1_20250414: "openai/gpt-4.1-2025-04-14",
23
+ GPT_4_1_MINI: "openai/gpt-4.1-mini",
14
24
  GPT_4_1_MINI_20250414: "openai/gpt-4.1-mini-2025-04-14",
25
+ GPT_4_1_NANO: "openai/gpt-4.1-nano",
15
26
  GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14"
16
27
  };
17
28
  var GOOGLE_MODELS = {
@@ -1,4 +1,4 @@
1
- import { subAgents, subAgentRelations, agents, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, functionTools, functions, contextConfigs, subAgentToolRelations, ledgerArtifacts, projects } from './chunk-B6F3RF4T.js';
1
+ import { subAgents, subAgentRelations, agents, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, functionTools, functions, contextConfigs, subAgentToolRelations, ledgerArtifacts, projects } from './chunk-TNHJH73I.js';
2
2
  import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-YFHT5M2R.js';
3
3
  import { z } from '@hono/zod-openapi';
4
4
  import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
@@ -58,11 +58,8 @@ var projects = sqliteCore.sqliteTable(
58
58
  {
59
59
  ...tenantScoped,
60
60
  ...uiProperties,
61
- // Project-level default model settings that can be inherited by agents
62
61
  models: sqliteCore.text("models", { mode: "json" }).$type(),
63
- // Project-level stopWhen configuration that can be inherited by agents
64
62
  stopWhen: sqliteCore.text("stop_when", { mode: "json" }).$type(),
65
- // Project-level sandbox configuration for function execution
66
63
  sandboxConfig: sqliteCore.text("sandbox_config", { mode: "json" }).$type(),
67
64
  ...timestamps
68
65
  },
@@ -95,9 +92,7 @@ var contextConfigs = sqliteCore.sqliteTable(
95
92
  "context_configs",
96
93
  {
97
94
  ...agentScoped,
98
- // Developer-defined Zod schema for validating incoming request context
99
95
  headersSchema: sqliteCore.blob("headers_schema", { mode: "json" }).$type(),
100
- // Object mapping template keys to fetch definitions that use request context data
101
96
  contextVariables: sqliteCore.blob("context_variables", { mode: "json" }).$type(),
102
97
  ...timestamps
103
98
  },
@@ -114,15 +109,11 @@ var contextCache = sqliteCore.sqliteTable(
114
109
  "context_cache",
115
110
  {
116
111
  ...projectScoped,
117
- // Always scoped to conversation for complete data isolation
118
112
  conversationId: sqliteCore.text("conversation_id").notNull(),
119
- // Reference to the context config and specific fetch definition
120
113
  contextConfigId: sqliteCore.text("context_config_id").notNull(),
121
114
  contextVariableKey: sqliteCore.text("context_variable_key").notNull(),
122
115
  value: sqliteCore.blob("value", { mode: "json" }).$type().notNull(),
123
- // Request hash for cache invalidation based on context changes
124
116
  requestHash: sqliteCore.text("request_hash"),
125
- // Metadata for monitoring and debugging
126
117
  fetchedAt: sqliteCore.text("fetched_at").notNull(),
127
118
  fetchSource: sqliteCore.text("fetch_source"),
128
119
  fetchDurationMs: sqliteCore.integer("fetch_duration_ms"),
@@ -169,9 +160,7 @@ var subAgentRelations = sqliteCore.sqliteTable(
169
160
  {
170
161
  ...agentScoped,
171
162
  sourceSubAgentId: sqliteCore.text("source_sub_agent_id").notNull(),
172
- // For internal relationships
173
163
  targetSubAgentId: sqliteCore.text("target_sub_agent_id"),
174
- // For external relationships
175
164
  externalSubAgentId: sqliteCore.text("external_sub_agent_id"),
176
165
  relationType: sqliteCore.text("relation_type"),
177
166
  ...timestamps
@@ -340,9 +329,7 @@ var tools = sqliteCore.sqliteTable(
340
329
  config: sqliteCore.blob("config", { mode: "json" }).$type().notNull(),
341
330
  credentialReferenceId: sqliteCore.text("credential_reference_id"),
342
331
  headers: sqliteCore.blob("headers", { mode: "json" }).$type(),
343
- // Image URL for custom tool icon (supports regular URLs and base64 encoded images)
344
332
  imageUrl: sqliteCore.text("image_url"),
345
- // Server capabilities and status (only for MCP tools)
346
333
  capabilities: sqliteCore.blob("capabilities", { mode: "json" }).$type(),
347
334
  lastError: sqliteCore.text("last_error"),
348
335
  ...timestamps
@@ -372,7 +359,6 @@ var functionTools = sqliteCore.sqliteTable(
372
359
  foreignColumns: [agents.tenantId, agents.projectId, agents.id],
373
360
  name: "function_tools_agent_fk"
374
361
  }).onDelete("cascade"),
375
- // Foreign key constraint to functions table
376
362
  sqliteCore.foreignKey({
377
363
  columns: [table.tenantId, table.projectId, table.functionId],
378
364
  foreignColumns: [functions.tenantId, functions.projectId, functions.id],
@@ -421,8 +407,8 @@ var subAgentToolRelations = sqliteCore.sqliteTable(
421
407
  }).onDelete("cascade")
422
408
  ]
423
409
  );
424
- var agentFunctionToolRelations = sqliteCore.sqliteTable(
425
- "agent_function_tool_relations",
410
+ var subAgentFunctionToolRelations = sqliteCore.sqliteTable(
411
+ "sub_agent_function_tool_relations",
426
412
  {
427
413
  ...subAgentScoped,
428
414
  functionToolId: sqliteCore.text("function_tool_id").notNull(),
@@ -430,13 +416,11 @@ var agentFunctionToolRelations = sqliteCore.sqliteTable(
430
416
  },
431
417
  (table) => [
432
418
  sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.agentId, table.id] }),
433
- // Foreign key constraint to agents table
434
419
  sqliteCore.foreignKey({
435
420
  columns: [table.tenantId, table.projectId, table.agentId, table.subAgentId],
436
421
  foreignColumns: [subAgents.tenantId, subAgents.projectId, subAgents.agentId, subAgents.id],
437
- name: "agent_function_tool_relations_agent_fk"
422
+ name: "sub_agent_function_tool_relations_sub_agent_fk"
438
423
  }).onDelete("cascade"),
439
- // Foreign key constraint to functionTools table
440
424
  sqliteCore.foreignKey({
441
425
  columns: [table.tenantId, table.projectId, table.agentId, table.functionToolId],
442
426
  foreignColumns: [
@@ -445,7 +429,7 @@ var agentFunctionToolRelations = sqliteCore.sqliteTable(
445
429
  functionTools.agentId,
446
430
  functionTools.id
447
431
  ],
448
- name: "agent_function_tool_relations_function_tool_fk"
432
+ name: "sub_agent_function_tool_relations_function_tool_fk"
449
433
  }).onDelete("cascade")
450
434
  ]
451
435
  );
@@ -474,26 +458,18 @@ var messages = sqliteCore.sqliteTable(
474
458
  {
475
459
  ...projectScoped,
476
460
  conversationId: sqliteCore.text("conversation_id").notNull(),
477
- // Role mapping: user, agent, system (unified for both formats)
478
461
  role: sqliteCore.text("role").notNull(),
479
- // Agent sender/recipient tracking (nullable - only populated when relevant)
480
462
  fromSubAgentId: sqliteCore.text("from_sub_agent_id"),
481
463
  toSubAgentId: sqliteCore.text("to_sub_agent_id"),
482
- // External agent sender tracking
483
464
  fromExternalAgentId: sqliteCore.text("from_external_sub_agent_id"),
484
- // External agent recipient tracking
485
465
  toExternalAgentId: sqliteCore.text("to_external_sub_agent_id"),
486
- // Message content stored as JSON to support both formats
487
466
  content: sqliteCore.blob("content", { mode: "json" }).$type().notNull(),
488
- // Message classification and filtering
489
467
  visibility: sqliteCore.text("visibility").notNull().default("user-facing"),
490
468
  messageType: sqliteCore.text("message_type").notNull().default("chat"),
491
469
  taskId: sqliteCore.text("task_id"),
492
470
  parentMessageId: sqliteCore.text("parent_message_id"),
493
- // A2A specific fields
494
471
  a2aTaskId: sqliteCore.text("a2a_task_id"),
495
472
  a2aSessionId: sqliteCore.text("a2a_session_id"),
496
- // Metadata for extensions
497
473
  metadata: sqliteCore.blob("metadata", { mode: "json" }).$type(),
498
474
  ...timestamps
499
475
  },
@@ -510,17 +486,14 @@ var ledgerArtifacts = sqliteCore.sqliteTable(
510
486
  "ledger_artifacts",
511
487
  {
512
488
  ...projectScoped,
513
- // Links
514
489
  taskId: sqliteCore.text("task_id").notNull(),
515
490
  toolCallId: sqliteCore.text("tool_call_id"),
516
491
  contextId: sqliteCore.text("context_id").notNull(),
517
- // Core Artifact fields
518
492
  type: sqliteCore.text("type").notNull().default("source"),
519
493
  name: sqliteCore.text("name"),
520
494
  description: sqliteCore.text("description"),
521
495
  parts: sqliteCore.blob("parts", { mode: "json" }).$type(),
522
496
  metadata: sqliteCore.blob("metadata", { mode: "json" }).$type(),
523
- // Extra ledger information (not part of the Artifact spec – kept optional)
524
497
  summary: sqliteCore.text("summary"),
525
498
  mime: sqliteCore.blob("mime", { mode: "json" }).$type(),
526
499
  visibility: sqliteCore.text("visibility").default("context"),
@@ -671,7 +644,7 @@ drizzleOrm.relations(subAgents, ({ many, one }) => ({
671
644
  relationName: "receivedMessages"
672
645
  }),
673
646
  toolRelations: many(subAgentToolRelations),
674
- functionToolRelations: many(agentFunctionToolRelations),
647
+ functionToolRelations: many(subAgentFunctionToolRelations),
675
648
  dataComponentRelations: many(subAgentDataComponents),
676
649
  artifactComponentRelations: many(subAgentArtifactComponents)
677
650
  }));
@@ -876,17 +849,17 @@ drizzleOrm.relations(functionTools, ({ one, many }) => ({
876
849
  fields: [functionTools.tenantId, functionTools.projectId, functionTools.functionId],
877
850
  references: [functions.tenantId, functions.projectId, functions.id]
878
851
  }),
879
- agentRelations: many(agentFunctionToolRelations)
852
+ subAgentRelations: many(subAgentFunctionToolRelations)
880
853
  }));
881
854
  drizzleOrm.relations(
882
- agentFunctionToolRelations,
855
+ subAgentFunctionToolRelations,
883
856
  ({ one }) => ({
884
- agent: one(subAgents, {
885
- fields: [agentFunctionToolRelations.subAgentId],
857
+ subAgent: one(subAgents, {
858
+ fields: [subAgentFunctionToolRelations.subAgentId],
886
859
  references: [subAgents.id]
887
860
  }),
888
861
  functionTool: one(functionTools, {
889
- fields: [agentFunctionToolRelations.functionToolId],
862
+ fields: [subAgentFunctionToolRelations.functionToolId],
890
863
  references: [functionTools.id]
891
864
  })
892
865
  })
@@ -1,6 +1,6 @@
1
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 } from './chunk-QFIITHNT.js';
2
- import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-VICWT3WO.js';
3
- export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, SandboxConfigSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-VICWT3WO.js';
2
+ import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-XKJPMUGE.js';
3
+ export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, SandboxConfigSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-XKJPMUGE.js';
4
4
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
5
5
  export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
6
6
  import { z } from 'zod';
@@ -2,18 +2,29 @@
2
2
 
3
3
  // src/constants/models.ts
4
4
  var ANTHROPIC_MODELS = {
5
+ CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1",
5
6
  CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805",
7
+ CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5",
6
8
  CLAUDE_SONNET_4_5_20250929: "anthropic/claude-sonnet-4-5-20250929",
9
+ CLAUDE_SONNET_4: "anthropic/claude-sonnet-4",
7
10
  CLAUDE_SONNET_4_20250514: "anthropic/claude-sonnet-4-20250514",
11
+ CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet",
8
12
  CLAUDE_3_5_SONNET_20241022: "anthropic/claude-3-5-sonnet-20241022",
13
+ CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku",
9
14
  CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022"
10
15
  };
11
16
  var OPENAI_MODELS = {
17
+ GPT_5: "openai/gpt-5",
12
18
  GPT_5_20250807: "openai/gpt-5-2025-08-07",
19
+ GPT_5_MINI: "openai/gpt-5-mini",
13
20
  GPT_5_MINI_20250807: "openai/gpt-5-mini-2025-08-07",
21
+ GPT_5_NANO: "openai/gpt-5-nano",
14
22
  GPT_5_NANO_20250807: "openai/gpt-5-nano-2025-08-07",
23
+ GPT_4_1: "openai/gpt-4.1",
15
24
  GPT_4_1_20250414: "openai/gpt-4.1-2025-04-14",
25
+ GPT_4_1_MINI: "openai/gpt-4.1-mini",
16
26
  GPT_4_1_MINI_20250414: "openai/gpt-4.1-mini-2025-04-14",
27
+ GPT_4_1_NANO: "openai/gpt-4.1-nano",
17
28
  GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14"
18
29
  };
19
30
  var GOOGLE_MODELS = {
@@ -2,18 +2,29 @@
2
2
  * Model name constants used throughout the Inkeep Agents SDK
3
3
  */
4
4
  declare const ANTHROPIC_MODELS: {
5
+ readonly CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1";
5
6
  readonly CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805";
7
+ readonly CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5";
6
8
  readonly CLAUDE_SONNET_4_5_20250929: "anthropic/claude-sonnet-4-5-20250929";
9
+ readonly CLAUDE_SONNET_4: "anthropic/claude-sonnet-4";
7
10
  readonly CLAUDE_SONNET_4_20250514: "anthropic/claude-sonnet-4-20250514";
11
+ readonly CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet";
8
12
  readonly CLAUDE_3_5_SONNET_20241022: "anthropic/claude-3-5-sonnet-20241022";
13
+ readonly CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku";
9
14
  readonly CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022";
10
15
  };
11
16
  declare const OPENAI_MODELS: {
17
+ readonly GPT_5: "openai/gpt-5";
12
18
  readonly GPT_5_20250807: "openai/gpt-5-2025-08-07";
19
+ readonly GPT_5_MINI: "openai/gpt-5-mini";
13
20
  readonly GPT_5_MINI_20250807: "openai/gpt-5-mini-2025-08-07";
21
+ readonly GPT_5_NANO: "openai/gpt-5-nano";
14
22
  readonly GPT_5_NANO_20250807: "openai/gpt-5-nano-2025-08-07";
23
+ readonly GPT_4_1: "openai/gpt-4.1";
15
24
  readonly GPT_4_1_20250414: "openai/gpt-4.1-2025-04-14";
25
+ readonly GPT_4_1_MINI: "openai/gpt-4.1-mini";
16
26
  readonly GPT_4_1_MINI_20250414: "openai/gpt-4.1-mini-2025-04-14";
27
+ readonly GPT_4_1_NANO: "openai/gpt-4.1-nano";
17
28
  readonly GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14";
18
29
  };
19
30
  declare const GOOGLE_MODELS: {
@@ -2,18 +2,29 @@
2
2
  * Model name constants used throughout the Inkeep Agents SDK
3
3
  */
4
4
  declare const ANTHROPIC_MODELS: {
5
+ readonly CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1";
5
6
  readonly CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805";
7
+ readonly CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5";
6
8
  readonly CLAUDE_SONNET_4_5_20250929: "anthropic/claude-sonnet-4-5-20250929";
9
+ readonly CLAUDE_SONNET_4: "anthropic/claude-sonnet-4";
7
10
  readonly CLAUDE_SONNET_4_20250514: "anthropic/claude-sonnet-4-20250514";
11
+ readonly CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet";
8
12
  readonly CLAUDE_3_5_SONNET_20241022: "anthropic/claude-3-5-sonnet-20241022";
13
+ readonly CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku";
9
14
  readonly CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022";
10
15
  };
11
16
  declare const OPENAI_MODELS: {
17
+ readonly GPT_5: "openai/gpt-5";
12
18
  readonly GPT_5_20250807: "openai/gpt-5-2025-08-07";
19
+ readonly GPT_5_MINI: "openai/gpt-5-mini";
13
20
  readonly GPT_5_MINI_20250807: "openai/gpt-5-mini-2025-08-07";
21
+ readonly GPT_5_NANO: "openai/gpt-5-nano";
14
22
  readonly GPT_5_NANO_20250807: "openai/gpt-5-nano-2025-08-07";
23
+ readonly GPT_4_1: "openai/gpt-4.1";
15
24
  readonly GPT_4_1_20250414: "openai/gpt-4.1-2025-04-14";
25
+ readonly GPT_4_1_MINI: "openai/gpt-4.1-mini";
16
26
  readonly GPT_4_1_MINI_20250414: "openai/gpt-4.1-mini-2025-04-14";
27
+ readonly GPT_4_1_NANO: "openai/gpt-4.1-nano";
17
28
  readonly GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14";
18
29
  };
19
30
  declare const GOOGLE_MODELS: {
@@ -1 +1 @@
1
- export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from '../chunk-LZJWVTQ2.js';
1
+ export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from '../chunk-TTIPV5QP.js';