@inkeep/agents-core 0.0.0-dev-20260331193203 → 0.0.0-dev-20260331194528
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-client/eval-api-client.d.ts +2 -12
- package/dist/api-client/eval-api-client.js +0 -15
- package/dist/api-client/index.d.ts +2 -2
- package/dist/auth/auth-schema.d.ts +108 -108
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/data-access/index.d.ts +3 -3
- package/dist/data-access/index.js +3 -3
- package/dist/data-access/manage/agents.d.ts +36 -36
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/evalConfig.d.ts +48 -2
- package/dist/data-access/manage/evalConfig.js +61 -3
- package/dist/data-access/manage/functionTools.d.ts +8 -8
- package/dist/data-access/manage/skills.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +9 -9
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +32 -32
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +50 -5
- package/dist/data-access/runtime/scheduledTriggerInvocations.js +34 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +723 -473
- package/dist/db/manage/manage-schema.js +153 -7
- package/dist/db/runtime/runtime-schema.d.ts +376 -376
- package/dist/dolt/backfill-skill-files.d.ts +41 -0
- package/dist/dolt/backfill-skill-files.js +209 -0
- package/dist/dolt/run-sql-file-on-all-branches.d.ts +29 -0
- package/dist/dolt/run-sql-file-on-all-branches.js +177 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +5 -5
- package/dist/types/entities.d.ts +8 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/utility.d.ts +4 -4
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +36 -36
- package/dist/validation/schemas.d.ts +2714 -2572
- package/dist/validation/schemas.js +13 -15
- package/drizzle/manage/0017_brief_doctor_strange.sql +29 -0
- package/drizzle/manage/meta/0017_snapshot.json +3748 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +3 -1
|
@@ -4,6 +4,10 @@ import { boolean, doublePrecision, foreignKey, index, jsonb, numeric, pgTable, p
|
|
|
4
4
|
|
|
5
5
|
//#region src/db/manage/manage-schema.ts
|
|
6
6
|
var manage_schema_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
agentDatasetRelations: () => agentDatasetRelations,
|
|
8
|
+
agentDatasetRelationsRelations: () => agentDatasetRelationsRelations,
|
|
9
|
+
agentEvaluatorRelations: () => agentEvaluatorRelations,
|
|
10
|
+
agentEvaluatorRelationsRelations: () => agentEvaluatorRelationsRelations,
|
|
7
11
|
agentRelations: () => agentRelations,
|
|
8
12
|
agentToolRelationsRelations: () => agentToolRelationsRelations,
|
|
9
13
|
agents: () => agents,
|
|
@@ -761,22 +765,18 @@ const dataset = pgTable("dataset", {
|
|
|
761
765
|
name: "dataset_project_fk"
|
|
762
766
|
}).onDelete("cascade")]);
|
|
763
767
|
/**
|
|
764
|
-
*
|
|
765
768
|
* Individual test case within a dataset. Contains the input messages to send
|
|
766
|
-
* to an agent and optionally expected output
|
|
769
|
+
* to an agent and optionally expected output.
|
|
767
770
|
* When a dataset run executes, it creates conversations from these items.
|
|
768
771
|
*
|
|
769
|
-
*
|
|
770
772
|
* Includes: input (messages array with optional headers), expected output (array of messages),
|
|
771
|
-
*
|
|
772
|
-
* simulationAgent is for when a user wants to create a multi-turn simulation aka a simulating agent is creating input messages based on a persona
|
|
773
|
+
* and timestamps.
|
|
773
774
|
*/
|
|
774
775
|
const datasetItem = pgTable("dataset_item", {
|
|
775
776
|
...projectScoped,
|
|
776
777
|
datasetId: varchar("dataset_id", { length: 256 }).notNull(),
|
|
777
778
|
input: jsonb("input").$type().notNull(),
|
|
778
779
|
expectedOutput: jsonb("expected_output").$type(),
|
|
779
|
-
simulationAgent: jsonb("simulation_agent").$type(),
|
|
780
780
|
...timestamps
|
|
781
781
|
}, (table) => [primaryKey({ columns: [
|
|
782
782
|
table.tenantId,
|
|
@@ -1367,6 +1367,100 @@ const subAgentTeamAgentRelationsRelations = relations(subAgentTeamAgentRelations
|
|
|
1367
1367
|
})
|
|
1368
1368
|
}));
|
|
1369
1369
|
/**
|
|
1370
|
+
* Links agents to datasets. Many-to-many relationship that scopes a dataset
|
|
1371
|
+
* to specific agents. When a dataset has agent relations, it is only associated
|
|
1372
|
+
* with those agents. When it has NO agent relations, it is treated as
|
|
1373
|
+
* project-wide and available to all agents.
|
|
1374
|
+
*
|
|
1375
|
+
* Includes: agentId, datasetId, and timestamps
|
|
1376
|
+
*/
|
|
1377
|
+
const agentDatasetRelations = pgTable("agent_dataset_relations", {
|
|
1378
|
+
...projectScoped,
|
|
1379
|
+
agentId: varchar("agent_id", { length: 256 }).notNull(),
|
|
1380
|
+
datasetId: varchar("dataset_id", { length: 256 }).notNull(),
|
|
1381
|
+
...timestamps
|
|
1382
|
+
}, (table) => [
|
|
1383
|
+
primaryKey({ columns: [
|
|
1384
|
+
table.tenantId,
|
|
1385
|
+
table.projectId,
|
|
1386
|
+
table.id
|
|
1387
|
+
] }),
|
|
1388
|
+
foreignKey({
|
|
1389
|
+
columns: [
|
|
1390
|
+
table.tenantId,
|
|
1391
|
+
table.projectId,
|
|
1392
|
+
table.agentId
|
|
1393
|
+
],
|
|
1394
|
+
foreignColumns: [
|
|
1395
|
+
agents.tenantId,
|
|
1396
|
+
agents.projectId,
|
|
1397
|
+
agents.id
|
|
1398
|
+
],
|
|
1399
|
+
name: "agent_dataset_relations_agent_fk"
|
|
1400
|
+
}).onDelete("cascade"),
|
|
1401
|
+
foreignKey({
|
|
1402
|
+
columns: [
|
|
1403
|
+
table.tenantId,
|
|
1404
|
+
table.projectId,
|
|
1405
|
+
table.datasetId
|
|
1406
|
+
],
|
|
1407
|
+
foreignColumns: [
|
|
1408
|
+
dataset.tenantId,
|
|
1409
|
+
dataset.projectId,
|
|
1410
|
+
dataset.id
|
|
1411
|
+
],
|
|
1412
|
+
name: "agent_dataset_relations_dataset_fk"
|
|
1413
|
+
}).onDelete("cascade"),
|
|
1414
|
+
unique("agent_dataset_relations_unique").on(table.tenantId, table.projectId, table.agentId, table.datasetId)
|
|
1415
|
+
]);
|
|
1416
|
+
/**
|
|
1417
|
+
* Links agents to evaluators. Many-to-many relationship that scopes an evaluator
|
|
1418
|
+
* to specific agents. When an evaluator has agent relations, it is only associated
|
|
1419
|
+
* with those agents. When it has NO agent relations, it is treated as
|
|
1420
|
+
* project-wide and available to all agents.
|
|
1421
|
+
*
|
|
1422
|
+
* Includes: agentId, evaluatorId, and timestamps
|
|
1423
|
+
*/
|
|
1424
|
+
const agentEvaluatorRelations = pgTable("agent_evaluator_relations", {
|
|
1425
|
+
...projectScoped,
|
|
1426
|
+
agentId: varchar("agent_id", { length: 256 }).notNull(),
|
|
1427
|
+
evaluatorId: varchar("evaluator_id", { length: 256 }).notNull(),
|
|
1428
|
+
...timestamps
|
|
1429
|
+
}, (table) => [
|
|
1430
|
+
primaryKey({ columns: [
|
|
1431
|
+
table.tenantId,
|
|
1432
|
+
table.projectId,
|
|
1433
|
+
table.id
|
|
1434
|
+
] }),
|
|
1435
|
+
foreignKey({
|
|
1436
|
+
columns: [
|
|
1437
|
+
table.tenantId,
|
|
1438
|
+
table.projectId,
|
|
1439
|
+
table.agentId
|
|
1440
|
+
],
|
|
1441
|
+
foreignColumns: [
|
|
1442
|
+
agents.tenantId,
|
|
1443
|
+
agents.projectId,
|
|
1444
|
+
agents.id
|
|
1445
|
+
],
|
|
1446
|
+
name: "agent_evaluator_relations_agent_fk"
|
|
1447
|
+
}).onDelete("cascade"),
|
|
1448
|
+
foreignKey({
|
|
1449
|
+
columns: [
|
|
1450
|
+
table.tenantId,
|
|
1451
|
+
table.projectId,
|
|
1452
|
+
table.evaluatorId
|
|
1453
|
+
],
|
|
1454
|
+
foreignColumns: [
|
|
1455
|
+
evaluator.tenantId,
|
|
1456
|
+
evaluator.projectId,
|
|
1457
|
+
evaluator.id
|
|
1458
|
+
],
|
|
1459
|
+
name: "agent_evaluator_relations_evaluator_fk"
|
|
1460
|
+
}).onDelete("cascade"),
|
|
1461
|
+
unique("agent_evaluator_relations_unique").on(table.tenantId, table.projectId, table.agentId, table.evaluatorId)
|
|
1462
|
+
]);
|
|
1463
|
+
/**
|
|
1370
1464
|
* Links agents to dataset run configs. Many-to-many relationship that
|
|
1371
1465
|
* allows one dataset run config to use multiple agents, and one agent to be used
|
|
1372
1466
|
* by multiple dataset run configs.
|
|
@@ -1411,6 +1505,58 @@ const datasetRunConfigAgentRelations = pgTable("dataset_run_config_agent_relatio
|
|
|
1411
1505
|
name: "dataset_run_config_agent_relations_agent_fk"
|
|
1412
1506
|
}).onDelete("cascade")
|
|
1413
1507
|
]);
|
|
1508
|
+
const agentDatasetRelationsRelations = relations(agentDatasetRelations, ({ one }) => ({
|
|
1509
|
+
agent: one(agents, {
|
|
1510
|
+
fields: [
|
|
1511
|
+
agentDatasetRelations.tenantId,
|
|
1512
|
+
agentDatasetRelations.projectId,
|
|
1513
|
+
agentDatasetRelations.agentId
|
|
1514
|
+
],
|
|
1515
|
+
references: [
|
|
1516
|
+
agents.tenantId,
|
|
1517
|
+
agents.projectId,
|
|
1518
|
+
agents.id
|
|
1519
|
+
]
|
|
1520
|
+
}),
|
|
1521
|
+
dataset: one(dataset, {
|
|
1522
|
+
fields: [
|
|
1523
|
+
agentDatasetRelations.tenantId,
|
|
1524
|
+
agentDatasetRelations.projectId,
|
|
1525
|
+
agentDatasetRelations.datasetId
|
|
1526
|
+
],
|
|
1527
|
+
references: [
|
|
1528
|
+
dataset.tenantId,
|
|
1529
|
+
dataset.projectId,
|
|
1530
|
+
dataset.id
|
|
1531
|
+
]
|
|
1532
|
+
})
|
|
1533
|
+
}));
|
|
1534
|
+
const agentEvaluatorRelationsRelations = relations(agentEvaluatorRelations, ({ one }) => ({
|
|
1535
|
+
agent: one(agents, {
|
|
1536
|
+
fields: [
|
|
1537
|
+
agentEvaluatorRelations.tenantId,
|
|
1538
|
+
agentEvaluatorRelations.projectId,
|
|
1539
|
+
agentEvaluatorRelations.agentId
|
|
1540
|
+
],
|
|
1541
|
+
references: [
|
|
1542
|
+
agents.tenantId,
|
|
1543
|
+
agents.projectId,
|
|
1544
|
+
agents.id
|
|
1545
|
+
]
|
|
1546
|
+
}),
|
|
1547
|
+
evaluator: one(evaluator, {
|
|
1548
|
+
fields: [
|
|
1549
|
+
agentEvaluatorRelations.tenantId,
|
|
1550
|
+
agentEvaluatorRelations.projectId,
|
|
1551
|
+
agentEvaluatorRelations.evaluatorId
|
|
1552
|
+
],
|
|
1553
|
+
references: [
|
|
1554
|
+
evaluator.tenantId,
|
|
1555
|
+
evaluator.projectId,
|
|
1556
|
+
evaluator.id
|
|
1557
|
+
]
|
|
1558
|
+
})
|
|
1559
|
+
}));
|
|
1414
1560
|
|
|
1415
1561
|
//#endregion
|
|
1416
|
-
export { agentRelations, agentToolRelationsRelations, agents, artifactComponents, artifactComponentsRelations, contextConfigs, contextConfigsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, manage_schema_exports, projects, projectsRelations, skillFiles, skillFilesRelations, skills, skillsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentSkills, subAgentSkillsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, tools, toolsRelations, triggers };
|
|
1562
|
+
export { agentDatasetRelations, agentDatasetRelationsRelations, agentEvaluatorRelations, agentEvaluatorRelationsRelations, agentRelations, agentToolRelationsRelations, agents, artifactComponents, artifactComponentsRelations, contextConfigs, contextConfigsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, manage_schema_exports, projects, projectsRelations, skillFiles, skillFilesRelations, skills, skillsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentSkills, subAgentSkillsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, tools, toolsRelations, triggers };
|