@inkeep/agents-core 0.0.0-dev-20251014155922 → 0.0.0-dev-20251014185355

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.
@@ -3371,13 +3371,13 @@ declare const subAgentToolRelations: drizzle_orm_sqlite_core.SQLiteTableWithColu
3371
3371
  };
3372
3372
  dialect: "sqlite";
3373
3373
  }>;
3374
- declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3375
- name: "agent_function_tool_relations";
3374
+ declare const subAgentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3375
+ name: "sub_agent_function_tool_relations";
3376
3376
  schema: undefined;
3377
3377
  columns: {
3378
3378
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
3379
3379
  name: "created_at";
3380
- tableName: "agent_function_tool_relations";
3380
+ tableName: "sub_agent_function_tool_relations";
3381
3381
  dataType: "string";
3382
3382
  columnType: "SQLiteText";
3383
3383
  data: string;
@@ -3396,7 +3396,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3396
3396
  }>;
3397
3397
  updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
3398
3398
  name: "updated_at";
3399
- tableName: "agent_function_tool_relations";
3399
+ tableName: "sub_agent_function_tool_relations";
3400
3400
  dataType: "string";
3401
3401
  columnType: "SQLiteText";
3402
3402
  data: string;
@@ -3415,7 +3415,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3415
3415
  }>;
3416
3416
  functionToolId: drizzle_orm_sqlite_core.SQLiteColumn<{
3417
3417
  name: "function_tool_id";
3418
- tableName: "agent_function_tool_relations";
3418
+ tableName: "sub_agent_function_tool_relations";
3419
3419
  dataType: "string";
3420
3420
  columnType: "SQLiteText";
3421
3421
  data: string;
@@ -3434,7 +3434,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3434
3434
  }>;
3435
3435
  subAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3436
3436
  name: "sub_agent_id";
3437
- tableName: "agent_function_tool_relations";
3437
+ tableName: "sub_agent_function_tool_relations";
3438
3438
  dataType: "string";
3439
3439
  columnType: "SQLiteText";
3440
3440
  data: string;
@@ -3453,7 +3453,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3453
3453
  }>;
3454
3454
  agentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3455
3455
  name: "agent_id";
3456
- tableName: "agent_function_tool_relations";
3456
+ tableName: "sub_agent_function_tool_relations";
3457
3457
  dataType: "string";
3458
3458
  columnType: "SQLiteText";
3459
3459
  data: string;
@@ -3472,7 +3472,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3472
3472
  }>;
3473
3473
  projectId: drizzle_orm_sqlite_core.SQLiteColumn<{
3474
3474
  name: "project_id";
3475
- tableName: "agent_function_tool_relations";
3475
+ tableName: "sub_agent_function_tool_relations";
3476
3476
  dataType: "string";
3477
3477
  columnType: "SQLiteText";
3478
3478
  data: string;
@@ -3491,7 +3491,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3491
3491
  }>;
3492
3492
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
3493
3493
  name: "tenant_id";
3494
- tableName: "agent_function_tool_relations";
3494
+ tableName: "sub_agent_function_tool_relations";
3495
3495
  dataType: "string";
3496
3496
  columnType: "SQLiteText";
3497
3497
  data: string;
@@ -3510,7 +3510,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3510
3510
  }>;
3511
3511
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
3512
3512
  name: "id";
3513
- tableName: "agent_function_tool_relations";
3513
+ tableName: "sub_agent_function_tool_relations";
3514
3514
  dataType: "string";
3515
3515
  columnType: "SQLiteText";
3516
3516
  data: string;
@@ -4881,7 +4881,7 @@ declare const subAgentsRelations: drizzle_orm.Relations<"sub_agents", {
4881
4881
  sentMessages: drizzle_orm.Many<"messages">;
4882
4882
  receivedMessages: drizzle_orm.Many<"messages">;
4883
4883
  toolRelations: drizzle_orm.Many<"sub_agent_tool_relations">;
4884
- functionToolRelations: drizzle_orm.Many<"agent_function_tool_relations">;
4884
+ functionToolRelations: drizzle_orm.Many<"sub_agent_function_tool_relations">;
4885
4885
  dataComponentRelations: drizzle_orm.Many<"sub_agent_data_components">;
4886
4886
  artifactComponentRelations: drizzle_orm.Many<"sub_agent_artifact_components">;
4887
4887
  }>;
@@ -4963,15 +4963,13 @@ declare const functionToolsRelations: drizzle_orm.Relations<"function_tools", {
4963
4963
  project: drizzle_orm.One<"projects", true>;
4964
4964
  agent: drizzle_orm.One<"agent", true>;
4965
4965
  function: drizzle_orm.One<"functions", true>;
4966
- agentRelations: drizzle_orm.Many<"agent_function_tool_relations">;
4966
+ subAgentRelations: drizzle_orm.Many<"sub_agent_function_tool_relations">;
4967
4967
  }>;
4968
- declare const agentFunctionToolRelationsRelations: drizzle_orm.Relations<"agent_function_tool_relations", {
4969
- agent: drizzle_orm.One<"sub_agents", true>;
4968
+ declare const subAgentFunctionToolRelationsRelations: drizzle_orm.Relations<"sub_agent_function_tool_relations", {
4969
+ subAgent: drizzle_orm.One<"sub_agents", true>;
4970
4970
  functionTool: drizzle_orm.One<"function_tools", true>;
4971
4971
  }>;
4972
4972
 
4973
- declare const schema_agentFunctionToolRelations: typeof agentFunctionToolRelations;
4974
- declare const schema_agentFunctionToolRelationsRelations: typeof agentFunctionToolRelationsRelations;
4975
4973
  declare const schema_agentRelations: typeof agentRelations;
4976
4974
  declare const schema_agentToolRelationsRelations: typeof agentToolRelationsRelations;
4977
4975
  declare const schema_agents: typeof agents;
@@ -5005,6 +5003,8 @@ declare const schema_subAgentArtifactComponents: typeof subAgentArtifactComponen
5005
5003
  declare const schema_subAgentArtifactComponentsRelations: typeof subAgentArtifactComponentsRelations;
5006
5004
  declare const schema_subAgentDataComponents: typeof subAgentDataComponents;
5007
5005
  declare const schema_subAgentDataComponentsRelations: typeof subAgentDataComponentsRelations;
5006
+ declare const schema_subAgentFunctionToolRelations: typeof subAgentFunctionToolRelations;
5007
+ declare const schema_subAgentFunctionToolRelationsRelations: typeof subAgentFunctionToolRelationsRelations;
5008
5008
  declare const schema_subAgentRelations: typeof subAgentRelations;
5009
5009
  declare const schema_subAgentRelationsRelations: typeof subAgentRelationsRelations;
5010
5010
  declare const schema_subAgentToolRelations: typeof subAgentToolRelations;
@@ -5017,7 +5017,7 @@ declare const schema_tasksRelations: typeof tasksRelations;
5017
5017
  declare const schema_tools: typeof tools;
5018
5018
  declare const schema_toolsRelations: typeof toolsRelations;
5019
5019
  declare namespace schema {
5020
- export { schema_agentFunctionToolRelations as agentFunctionToolRelations, schema_agentFunctionToolRelationsRelations as agentFunctionToolRelationsRelations, schema_agentRelations as agentRelations, schema_agentToolRelationsRelations as agentToolRelationsRelations, schema_agents as agents, schema_apiKeys as apiKeys, schema_apiKeysRelations as apiKeysRelations, schema_artifactComponents as artifactComponents, schema_artifactComponentsRelations as artifactComponentsRelations, schema_contextCache as contextCache, schema_contextCacheRelations as contextCacheRelations, schema_contextConfigs as contextConfigs, schema_contextConfigsRelations as contextConfigsRelations, schema_conversations as conversations, schema_conversationsRelations as conversationsRelations, schema_credentialReferences as credentialReferences, schema_credentialReferencesRelations as credentialReferencesRelations, schema_dataComponents as dataComponents, schema_dataComponentsRelations as dataComponentsRelations, schema_externalAgents as externalAgents, schema_externalAgentsRelations as externalAgentsRelations, schema_functionTools as functionTools, schema_functionToolsRelations as functionToolsRelations, schema_functions as functions, schema_functionsRelations as functionsRelations, schema_ledgerArtifacts as ledgerArtifacts, schema_ledgerArtifactsRelations as ledgerArtifactsRelations, schema_messages as messages, schema_messagesRelations as messagesRelations, schema_projects as projects, schema_projectsRelations as projectsRelations, schema_subAgentArtifactComponents as subAgentArtifactComponents, schema_subAgentArtifactComponentsRelations as subAgentArtifactComponentsRelations, schema_subAgentDataComponents as subAgentDataComponents, schema_subAgentDataComponentsRelations as subAgentDataComponentsRelations, schema_subAgentRelations as subAgentRelations, schema_subAgentRelationsRelations as subAgentRelationsRelations, schema_subAgentToolRelations as subAgentToolRelations, schema_subAgents as subAgents, schema_subAgentsRelations as subAgentsRelations, schema_taskRelations as taskRelations, schema_taskRelationsRelations as taskRelationsRelations, schema_tasks as tasks, schema_tasksRelations as tasksRelations, schema_tools as tools, schema_toolsRelations as toolsRelations };
5020
+ export { schema_agentRelations as agentRelations, schema_agentToolRelationsRelations as agentToolRelationsRelations, schema_agents as agents, schema_apiKeys as apiKeys, schema_apiKeysRelations as apiKeysRelations, schema_artifactComponents as artifactComponents, schema_artifactComponentsRelations as artifactComponentsRelations, schema_contextCache as contextCache, schema_contextCacheRelations as contextCacheRelations, schema_contextConfigs as contextConfigs, schema_contextConfigsRelations as contextConfigsRelations, schema_conversations as conversations, schema_conversationsRelations as conversationsRelations, schema_credentialReferences as credentialReferences, schema_credentialReferencesRelations as credentialReferencesRelations, schema_dataComponents as dataComponents, schema_dataComponentsRelations as dataComponentsRelations, schema_externalAgents as externalAgents, schema_externalAgentsRelations as externalAgentsRelations, schema_functionTools as functionTools, schema_functionToolsRelations as functionToolsRelations, schema_functions as functions, schema_functionsRelations as functionsRelations, schema_ledgerArtifacts as ledgerArtifacts, schema_ledgerArtifactsRelations as ledgerArtifactsRelations, schema_messages as messages, schema_messagesRelations as messagesRelations, schema_projects as projects, schema_projectsRelations as projectsRelations, schema_subAgentArtifactComponents as subAgentArtifactComponents, schema_subAgentArtifactComponentsRelations as subAgentArtifactComponentsRelations, schema_subAgentDataComponents as subAgentDataComponents, schema_subAgentDataComponentsRelations as subAgentDataComponentsRelations, schema_subAgentFunctionToolRelations as subAgentFunctionToolRelations, schema_subAgentFunctionToolRelationsRelations as subAgentFunctionToolRelationsRelations, schema_subAgentRelations as subAgentRelations, schema_subAgentRelationsRelations as subAgentRelationsRelations, schema_subAgentToolRelations as subAgentToolRelations, schema_subAgents as subAgents, schema_subAgentsRelations as subAgentsRelations, schema_taskRelations as taskRelations, schema_taskRelationsRelations as taskRelationsRelations, schema_tasks as tasks, schema_tasksRelations as tasksRelations, schema_tools as tools, schema_toolsRelations as toolsRelations };
5021
5021
  }
5022
5022
 
5023
- export { taskRelationsRelations as A, contextConfigsRelations as B, contextCacheRelations as C, subAgentsRelations as D, agentRelations as E, externalAgentsRelations as F, apiKeysRelations as G, agentToolRelationsRelations as H, credentialReferencesRelations as I, toolsRelations as J, conversationsRelations as K, messagesRelations as L, artifactComponentsRelations as M, subAgentArtifactComponentsRelations as N, dataComponentsRelations as O, subAgentDataComponentsRelations as P, ledgerArtifactsRelations as Q, functionsRelations as R, subAgentRelationsRelations as S, functionToolsRelations as T, agentFunctionToolRelationsRelations as U, agents as a, contextCache as b, contextConfigs as c, subAgents as d, subAgentRelations as e, externalAgents as f, taskRelations as g, dataComponents as h, subAgentDataComponents as i, artifactComponents as j, subAgentArtifactComponents as k, tools as l, functionTools as m, functions as n, subAgentToolRelations as o, projects as p, agentFunctionToolRelations as q, conversations as r, schema as s, tasks as t, messages as u, ledgerArtifacts as v, apiKeys as w, credentialReferences as x, tasksRelations as y, projectsRelations as z };
5023
+ export { taskRelationsRelations as A, contextConfigsRelations as B, contextCacheRelations as C, subAgentsRelations as D, agentRelations as E, externalAgentsRelations as F, apiKeysRelations as G, agentToolRelationsRelations as H, credentialReferencesRelations as I, toolsRelations as J, conversationsRelations as K, messagesRelations as L, artifactComponentsRelations as M, subAgentArtifactComponentsRelations as N, dataComponentsRelations as O, subAgentDataComponentsRelations as P, ledgerArtifactsRelations as Q, functionsRelations as R, subAgentRelationsRelations as S, functionToolsRelations as T, subAgentFunctionToolRelationsRelations as U, agents as a, contextCache as b, contextConfigs as c, subAgents as d, subAgentRelations as e, externalAgents as f, taskRelations as g, dataComponents as h, subAgentDataComponents as i, artifactComponents as j, subAgentArtifactComponents as k, tools as l, functionTools as m, functions as n, subAgentToolRelations as o, projects as p, subAgentFunctionToolRelations as q, conversations as r, schema as s, tasks as t, messages as u, ledgerArtifacts as v, apiKeys as w, credentialReferences as x, tasksRelations as y, projectsRelations as z };
@@ -3371,13 +3371,13 @@ declare const subAgentToolRelations: drizzle_orm_sqlite_core.SQLiteTableWithColu
3371
3371
  };
3372
3372
  dialect: "sqlite";
3373
3373
  }>;
3374
- declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3375
- name: "agent_function_tool_relations";
3374
+ declare const subAgentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3375
+ name: "sub_agent_function_tool_relations";
3376
3376
  schema: undefined;
3377
3377
  columns: {
3378
3378
  createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
3379
3379
  name: "created_at";
3380
- tableName: "agent_function_tool_relations";
3380
+ tableName: "sub_agent_function_tool_relations";
3381
3381
  dataType: "string";
3382
3382
  columnType: "SQLiteText";
3383
3383
  data: string;
@@ -3396,7 +3396,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3396
3396
  }>;
3397
3397
  updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
3398
3398
  name: "updated_at";
3399
- tableName: "agent_function_tool_relations";
3399
+ tableName: "sub_agent_function_tool_relations";
3400
3400
  dataType: "string";
3401
3401
  columnType: "SQLiteText";
3402
3402
  data: string;
@@ -3415,7 +3415,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3415
3415
  }>;
3416
3416
  functionToolId: drizzle_orm_sqlite_core.SQLiteColumn<{
3417
3417
  name: "function_tool_id";
3418
- tableName: "agent_function_tool_relations";
3418
+ tableName: "sub_agent_function_tool_relations";
3419
3419
  dataType: "string";
3420
3420
  columnType: "SQLiteText";
3421
3421
  data: string;
@@ -3434,7 +3434,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3434
3434
  }>;
3435
3435
  subAgentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3436
3436
  name: "sub_agent_id";
3437
- tableName: "agent_function_tool_relations";
3437
+ tableName: "sub_agent_function_tool_relations";
3438
3438
  dataType: "string";
3439
3439
  columnType: "SQLiteText";
3440
3440
  data: string;
@@ -3453,7 +3453,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3453
3453
  }>;
3454
3454
  agentId: drizzle_orm_sqlite_core.SQLiteColumn<{
3455
3455
  name: "agent_id";
3456
- tableName: "agent_function_tool_relations";
3456
+ tableName: "sub_agent_function_tool_relations";
3457
3457
  dataType: "string";
3458
3458
  columnType: "SQLiteText";
3459
3459
  data: string;
@@ -3472,7 +3472,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3472
3472
  }>;
3473
3473
  projectId: drizzle_orm_sqlite_core.SQLiteColumn<{
3474
3474
  name: "project_id";
3475
- tableName: "agent_function_tool_relations";
3475
+ tableName: "sub_agent_function_tool_relations";
3476
3476
  dataType: "string";
3477
3477
  columnType: "SQLiteText";
3478
3478
  data: string;
@@ -3491,7 +3491,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3491
3491
  }>;
3492
3492
  tenantId: drizzle_orm_sqlite_core.SQLiteColumn<{
3493
3493
  name: "tenant_id";
3494
- tableName: "agent_function_tool_relations";
3494
+ tableName: "sub_agent_function_tool_relations";
3495
3495
  dataType: "string";
3496
3496
  columnType: "SQLiteText";
3497
3497
  data: string;
@@ -3510,7 +3510,7 @@ declare const agentFunctionToolRelations: drizzle_orm_sqlite_core.SQLiteTableWit
3510
3510
  }>;
3511
3511
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
3512
3512
  name: "id";
3513
- tableName: "agent_function_tool_relations";
3513
+ tableName: "sub_agent_function_tool_relations";
3514
3514
  dataType: "string";
3515
3515
  columnType: "SQLiteText";
3516
3516
  data: string;
@@ -4881,7 +4881,7 @@ declare const subAgentsRelations: drizzle_orm.Relations<"sub_agents", {
4881
4881
  sentMessages: drizzle_orm.Many<"messages">;
4882
4882
  receivedMessages: drizzle_orm.Many<"messages">;
4883
4883
  toolRelations: drizzle_orm.Many<"sub_agent_tool_relations">;
4884
- functionToolRelations: drizzle_orm.Many<"agent_function_tool_relations">;
4884
+ functionToolRelations: drizzle_orm.Many<"sub_agent_function_tool_relations">;
4885
4885
  dataComponentRelations: drizzle_orm.Many<"sub_agent_data_components">;
4886
4886
  artifactComponentRelations: drizzle_orm.Many<"sub_agent_artifact_components">;
4887
4887
  }>;
@@ -4963,15 +4963,13 @@ declare const functionToolsRelations: drizzle_orm.Relations<"function_tools", {
4963
4963
  project: drizzle_orm.One<"projects", true>;
4964
4964
  agent: drizzle_orm.One<"agent", true>;
4965
4965
  function: drizzle_orm.One<"functions", true>;
4966
- agentRelations: drizzle_orm.Many<"agent_function_tool_relations">;
4966
+ subAgentRelations: drizzle_orm.Many<"sub_agent_function_tool_relations">;
4967
4967
  }>;
4968
- declare const agentFunctionToolRelationsRelations: drizzle_orm.Relations<"agent_function_tool_relations", {
4969
- agent: drizzle_orm.One<"sub_agents", true>;
4968
+ declare const subAgentFunctionToolRelationsRelations: drizzle_orm.Relations<"sub_agent_function_tool_relations", {
4969
+ subAgent: drizzle_orm.One<"sub_agents", true>;
4970
4970
  functionTool: drizzle_orm.One<"function_tools", true>;
4971
4971
  }>;
4972
4972
 
4973
- declare const schema_agentFunctionToolRelations: typeof agentFunctionToolRelations;
4974
- declare const schema_agentFunctionToolRelationsRelations: typeof agentFunctionToolRelationsRelations;
4975
4973
  declare const schema_agentRelations: typeof agentRelations;
4976
4974
  declare const schema_agentToolRelationsRelations: typeof agentToolRelationsRelations;
4977
4975
  declare const schema_agents: typeof agents;
@@ -5005,6 +5003,8 @@ declare const schema_subAgentArtifactComponents: typeof subAgentArtifactComponen
5005
5003
  declare const schema_subAgentArtifactComponentsRelations: typeof subAgentArtifactComponentsRelations;
5006
5004
  declare const schema_subAgentDataComponents: typeof subAgentDataComponents;
5007
5005
  declare const schema_subAgentDataComponentsRelations: typeof subAgentDataComponentsRelations;
5006
+ declare const schema_subAgentFunctionToolRelations: typeof subAgentFunctionToolRelations;
5007
+ declare const schema_subAgentFunctionToolRelationsRelations: typeof subAgentFunctionToolRelationsRelations;
5008
5008
  declare const schema_subAgentRelations: typeof subAgentRelations;
5009
5009
  declare const schema_subAgentRelationsRelations: typeof subAgentRelationsRelations;
5010
5010
  declare const schema_subAgentToolRelations: typeof subAgentToolRelations;
@@ -5017,7 +5017,7 @@ declare const schema_tasksRelations: typeof tasksRelations;
5017
5017
  declare const schema_tools: typeof tools;
5018
5018
  declare const schema_toolsRelations: typeof toolsRelations;
5019
5019
  declare namespace schema {
5020
- export { schema_agentFunctionToolRelations as agentFunctionToolRelations, schema_agentFunctionToolRelationsRelations as agentFunctionToolRelationsRelations, schema_agentRelations as agentRelations, schema_agentToolRelationsRelations as agentToolRelationsRelations, schema_agents as agents, schema_apiKeys as apiKeys, schema_apiKeysRelations as apiKeysRelations, schema_artifactComponents as artifactComponents, schema_artifactComponentsRelations as artifactComponentsRelations, schema_contextCache as contextCache, schema_contextCacheRelations as contextCacheRelations, schema_contextConfigs as contextConfigs, schema_contextConfigsRelations as contextConfigsRelations, schema_conversations as conversations, schema_conversationsRelations as conversationsRelations, schema_credentialReferences as credentialReferences, schema_credentialReferencesRelations as credentialReferencesRelations, schema_dataComponents as dataComponents, schema_dataComponentsRelations as dataComponentsRelations, schema_externalAgents as externalAgents, schema_externalAgentsRelations as externalAgentsRelations, schema_functionTools as functionTools, schema_functionToolsRelations as functionToolsRelations, schema_functions as functions, schema_functionsRelations as functionsRelations, schema_ledgerArtifacts as ledgerArtifacts, schema_ledgerArtifactsRelations as ledgerArtifactsRelations, schema_messages as messages, schema_messagesRelations as messagesRelations, schema_projects as projects, schema_projectsRelations as projectsRelations, schema_subAgentArtifactComponents as subAgentArtifactComponents, schema_subAgentArtifactComponentsRelations as subAgentArtifactComponentsRelations, schema_subAgentDataComponents as subAgentDataComponents, schema_subAgentDataComponentsRelations as subAgentDataComponentsRelations, schema_subAgentRelations as subAgentRelations, schema_subAgentRelationsRelations as subAgentRelationsRelations, schema_subAgentToolRelations as subAgentToolRelations, schema_subAgents as subAgents, schema_subAgentsRelations as subAgentsRelations, schema_taskRelations as taskRelations, schema_taskRelationsRelations as taskRelationsRelations, schema_tasks as tasks, schema_tasksRelations as tasksRelations, schema_tools as tools, schema_toolsRelations as toolsRelations };
5020
+ export { schema_agentRelations as agentRelations, schema_agentToolRelationsRelations as agentToolRelationsRelations, schema_agents as agents, schema_apiKeys as apiKeys, schema_apiKeysRelations as apiKeysRelations, schema_artifactComponents as artifactComponents, schema_artifactComponentsRelations as artifactComponentsRelations, schema_contextCache as contextCache, schema_contextCacheRelations as contextCacheRelations, schema_contextConfigs as contextConfigs, schema_contextConfigsRelations as contextConfigsRelations, schema_conversations as conversations, schema_conversationsRelations as conversationsRelations, schema_credentialReferences as credentialReferences, schema_credentialReferencesRelations as credentialReferencesRelations, schema_dataComponents as dataComponents, schema_dataComponentsRelations as dataComponentsRelations, schema_externalAgents as externalAgents, schema_externalAgentsRelations as externalAgentsRelations, schema_functionTools as functionTools, schema_functionToolsRelations as functionToolsRelations, schema_functions as functions, schema_functionsRelations as functionsRelations, schema_ledgerArtifacts as ledgerArtifacts, schema_ledgerArtifactsRelations as ledgerArtifactsRelations, schema_messages as messages, schema_messagesRelations as messagesRelations, schema_projects as projects, schema_projectsRelations as projectsRelations, schema_subAgentArtifactComponents as subAgentArtifactComponents, schema_subAgentArtifactComponentsRelations as subAgentArtifactComponentsRelations, schema_subAgentDataComponents as subAgentDataComponents, schema_subAgentDataComponentsRelations as subAgentDataComponentsRelations, schema_subAgentFunctionToolRelations as subAgentFunctionToolRelations, schema_subAgentFunctionToolRelationsRelations as subAgentFunctionToolRelationsRelations, schema_subAgentRelations as subAgentRelations, schema_subAgentRelationsRelations as subAgentRelationsRelations, schema_subAgentToolRelations as subAgentToolRelations, schema_subAgents as subAgents, schema_subAgentsRelations as subAgentsRelations, schema_taskRelations as taskRelations, schema_taskRelationsRelations as taskRelationsRelations, schema_tasks as tasks, schema_tasksRelations as tasksRelations, schema_tools as tools, schema_toolsRelations as toolsRelations };
5021
5021
  }
5022
5022
 
5023
- export { taskRelationsRelations as A, contextConfigsRelations as B, contextCacheRelations as C, subAgentsRelations as D, agentRelations as E, externalAgentsRelations as F, apiKeysRelations as G, agentToolRelationsRelations as H, credentialReferencesRelations as I, toolsRelations as J, conversationsRelations as K, messagesRelations as L, artifactComponentsRelations as M, subAgentArtifactComponentsRelations as N, dataComponentsRelations as O, subAgentDataComponentsRelations as P, ledgerArtifactsRelations as Q, functionsRelations as R, subAgentRelationsRelations as S, functionToolsRelations as T, agentFunctionToolRelationsRelations as U, agents as a, contextCache as b, contextConfigs as c, subAgents as d, subAgentRelations as e, externalAgents as f, taskRelations as g, dataComponents as h, subAgentDataComponents as i, artifactComponents as j, subAgentArtifactComponents as k, tools as l, functionTools as m, functions as n, subAgentToolRelations as o, projects as p, agentFunctionToolRelations as q, conversations as r, schema as s, tasks as t, messages as u, ledgerArtifacts as v, apiKeys as w, credentialReferences as x, tasksRelations as y, projectsRelations as z };
5023
+ export { taskRelationsRelations as A, contextConfigsRelations as B, contextCacheRelations as C, subAgentsRelations as D, agentRelations as E, externalAgentsRelations as F, apiKeysRelations as G, agentToolRelationsRelations as H, credentialReferencesRelations as I, toolsRelations as J, conversationsRelations as K, messagesRelations as L, artifactComponentsRelations as M, subAgentArtifactComponentsRelations as N, dataComponentsRelations as O, subAgentDataComponentsRelations as P, ledgerArtifactsRelations as Q, functionsRelations as R, subAgentRelationsRelations as S, functionToolsRelations as T, subAgentFunctionToolRelationsRelations as U, agents as a, contextCache as b, contextConfigs as c, subAgents as d, subAgentRelations as e, externalAgents as f, taskRelations as g, dataComponents as h, subAgentDataComponents as i, artifactComponents as j, subAgentArtifactComponents as k, tools as l, functionTools as m, functions as n, subAgentToolRelations as o, projects as p, subAgentFunctionToolRelations as q, conversations as r, schema as s, tasks as t, messages as u, ledgerArtifacts as v, apiKeys as w, credentialReferences as x, tasksRelations as y, projectsRelations as z };
@@ -441,8 +441,8 @@ var subAgentToolRelations = sqliteCore.sqliteTable(
441
441
  }).onDelete("cascade")
442
442
  ]
443
443
  );
444
- var agentFunctionToolRelations = sqliteCore.sqliteTable(
445
- "agent_function_tool_relations",
444
+ var subAgentFunctionToolRelations = sqliteCore.sqliteTable(
445
+ "sub_agent_function_tool_relations",
446
446
  {
447
447
  ...subAgentScoped,
448
448
  functionToolId: sqliteCore.text("function_tool_id").notNull(),
@@ -450,11 +450,11 @@ var agentFunctionToolRelations = sqliteCore.sqliteTable(
450
450
  },
451
451
  (table) => [
452
452
  sqliteCore.primaryKey({ columns: [table.tenantId, table.projectId, table.agentId, table.id] }),
453
- // Foreign key constraint to agents table
453
+ // Foreign key constraint to sub_agents table
454
454
  sqliteCore.foreignKey({
455
455
  columns: [table.tenantId, table.projectId, table.agentId, table.subAgentId],
456
456
  foreignColumns: [subAgents.tenantId, subAgents.projectId, subAgents.agentId, subAgents.id],
457
- name: "agent_function_tool_relations_agent_fk"
457
+ name: "sub_agent_function_tool_relations_sub_agent_fk"
458
458
  }).onDelete("cascade"),
459
459
  // Foreign key constraint to functionTools table
460
460
  sqliteCore.foreignKey({
@@ -465,7 +465,7 @@ var agentFunctionToolRelations = sqliteCore.sqliteTable(
465
465
  functionTools.agentId,
466
466
  functionTools.id
467
467
  ],
468
- name: "agent_function_tool_relations_function_tool_fk"
468
+ name: "sub_agent_function_tool_relations_function_tool_fk"
469
469
  }).onDelete("cascade")
470
470
  ]
471
471
  );
@@ -691,7 +691,7 @@ drizzleOrm.relations(subAgents, ({ many, one }) => ({
691
691
  relationName: "receivedMessages"
692
692
  }),
693
693
  toolRelations: many(subAgentToolRelations),
694
- functionToolRelations: many(agentFunctionToolRelations),
694
+ functionToolRelations: many(subAgentFunctionToolRelations),
695
695
  dataComponentRelations: many(subAgentDataComponents),
696
696
  artifactComponentRelations: many(subAgentArtifactComponents)
697
697
  }));
@@ -896,17 +896,17 @@ drizzleOrm.relations(functionTools, ({ one, many }) => ({
896
896
  fields: [functionTools.tenantId, functionTools.projectId, functionTools.functionId],
897
897
  references: [functions.tenantId, functions.projectId, functions.id]
898
898
  }),
899
- agentRelations: many(agentFunctionToolRelations)
899
+ subAgentRelations: many(subAgentFunctionToolRelations)
900
900
  }));
901
901
  drizzleOrm.relations(
902
- agentFunctionToolRelations,
902
+ subAgentFunctionToolRelations,
903
903
  ({ one }) => ({
904
- agent: one(subAgents, {
905
- fields: [agentFunctionToolRelations.subAgentId],
904
+ subAgent: one(subAgents, {
905
+ fields: [subAgentFunctionToolRelations.subAgentId],
906
906
  references: [subAgents.id]
907
907
  }),
908
908
  functionTool: one(functionTools, {
909
- fields: [agentFunctionToolRelations.functionToolId],
909
+ fields: [subAgentFunctionToolRelations.functionToolId],
910
910
  references: [functionTools.id]
911
911
  })
912
912
  })
@@ -1,2 +1,2 @@
1
- export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateToolReferences } from '../chunk-4FMDWUE4.js';
2
- export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SandboxConfigSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-VICWT3WO.js';
1
+ export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateToolReferences } from '../chunk-VTNB6CCI.js';
2
+ export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SandboxConfigSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-RCE4G7BW.js';
@@ -0,0 +1,20 @@
1
+ ALTER TABLE `agent_function_tool_relations` RENAME TO `sub_agent_function_tool_relations`;--> statement-breakpoint
2
+ PRAGMA foreign_keys=OFF;--> statement-breakpoint
3
+ CREATE TABLE `__new_sub_agent_function_tool_relations` (
4
+ `tenant_id` text NOT NULL,
5
+ `id` text NOT NULL,
6
+ `project_id` text NOT NULL,
7
+ `agent_id` text NOT NULL,
8
+ `sub_agent_id` text NOT NULL,
9
+ `function_tool_id` text NOT NULL,
10
+ `created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
11
+ `updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
12
+ PRIMARY KEY(`tenant_id`, `project_id`, `agent_id`, `id`),
13
+ FOREIGN KEY (`tenant_id`,`project_id`,`agent_id`,`sub_agent_id`) REFERENCES `sub_agents`(`tenant_id`,`project_id`,`agent_id`,`id`) ON UPDATE no action ON DELETE cascade,
14
+ FOREIGN KEY (`tenant_id`,`project_id`,`agent_id`,`function_tool_id`) REFERENCES `function_tools`(`tenant_id`,`project_id`,`agent_id`,`id`) ON UPDATE no action ON DELETE cascade
15
+ );
16
+ --> statement-breakpoint
17
+ INSERT INTO `__new_sub_agent_function_tool_relations`("tenant_id", "id", "project_id", "agent_id", "sub_agent_id", "function_tool_id", "created_at", "updated_at") SELECT "tenant_id", "id", "project_id", "agent_id", "sub_agent_id", "function_tool_id", "created_at", "updated_at" FROM `sub_agent_function_tool_relations`;--> statement-breakpoint
18
+ DROP TABLE `sub_agent_function_tool_relations`;--> statement-breakpoint
19
+ ALTER TABLE `__new_sub_agent_function_tool_relations` RENAME TO `sub_agent_function_tool_relations`;--> statement-breakpoint
20
+ PRAGMA foreign_keys=ON;