@inkeep/agents-core 0.0.0-dev-20251021015427 → 0.0.0-dev-20251021125918

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,7 +1,7 @@
1
1
  export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-BO8bSpe4.cjs';
2
2
  import { z } from 'zod';
3
- import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-mGrlR4Ta.cjs';
4
- export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-mGrlR4Ta.cjs';
3
+ import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-DVhMoRLZ.cjs';
4
+ export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-DVhMoRLZ.cjs';
5
5
  export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
6
6
  import 'pino';
7
7
  import 'drizzle-zod';
@@ -129,8 +129,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
129
129
  props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
130
130
  }, z.core.$strip>;
131
131
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
132
- id: z.ZodString;
133
132
  name: z.ZodString;
133
+ id: z.ZodString;
134
134
  description: z.ZodString;
135
135
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
136
136
  }, {
@@ -165,12 +165,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
165
165
  description: z.ZodOptional<z.ZodString>;
166
166
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
167
167
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
168
- id: z.ZodString;
169
168
  name: z.ZodString;
170
- description: z.ZodString;
171
- prompt: z.ZodString;
169
+ id: z.ZodString;
172
170
  createdAt: z.ZodOptional<z.ZodString>;
173
171
  updatedAt: z.ZodOptional<z.ZodString>;
172
+ description: z.ZodString;
174
173
  models: z.ZodOptional<z.ZodObject<{
175
174
  base: z.ZodOptional<z.ZodObject<{
176
175
  model: z.ZodOptional<z.ZodString>;
@@ -194,6 +193,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
194
193
  }, {
195
194
  stepCountIs?: number | undefined;
196
195
  }>>>>;
196
+ prompt: z.ZodString;
197
197
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
198
198
  type: z.ZodLiteral<"internal">;
199
199
  canUse: z.ZodArray<z.ZodObject<{
@@ -1,7 +1,7 @@
1
1
  export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-BO8bSpe4.js';
2
2
  import { z } from 'zod';
3
- import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-mGrlR4Ta.js';
4
- export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-mGrlR4Ta.js';
3
+ import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-DVhMoRLZ.js';
4
+ export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-DVhMoRLZ.js';
5
5
  export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
6
6
  import 'pino';
7
7
  import 'drizzle-zod';
@@ -129,8 +129,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
129
129
  props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
130
130
  }, z.core.$strip>;
131
131
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
132
- id: z.ZodString;
133
132
  name: z.ZodString;
133
+ id: z.ZodString;
134
134
  description: z.ZodString;
135
135
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
136
136
  }, {
@@ -165,12 +165,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
165
165
  description: z.ZodOptional<z.ZodString>;
166
166
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
167
167
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
168
- id: z.ZodString;
169
168
  name: z.ZodString;
170
- description: z.ZodString;
171
- prompt: z.ZodString;
169
+ id: z.ZodString;
172
170
  createdAt: z.ZodOptional<z.ZodString>;
173
171
  updatedAt: z.ZodOptional<z.ZodString>;
172
+ description: z.ZodString;
174
173
  models: z.ZodOptional<z.ZodObject<{
175
174
  base: z.ZodOptional<z.ZodObject<{
176
175
  model: z.ZodOptional<z.ZodString>;
@@ -194,6 +193,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
194
193
  }, {
195
194
  stepCountIs?: number | undefined;
196
195
  }>>>>;
196
+ prompt: z.ZodString;
197
197
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
198
198
  type: z.ZodLiteral<"internal">;
199
199
  canUse: z.ZodArray<z.ZodObject<{
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/sqlite-core';
3
- import '../utility-mGrlR4Ta.cjs';
4
- export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-B8NMPwEM.cjs';
3
+ import '../utility-DVhMoRLZ.cjs';
4
+ export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-DygzZEj3.cjs';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/sqlite-core';
3
- import '../utility-mGrlR4Ta.js';
4
- export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-PgBNwsV-.js';
3
+ import '../utility-DVhMoRLZ.js';
4
+ export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-CxJkXzMM.js';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
package/dist/index.cjs CHANGED
@@ -215842,7 +215842,7 @@ var listContextConfigsPaginated = (db) => async (params) => {
215842
215842
  };
215843
215843
  };
215844
215844
  var createContextConfig = (db) => async (params) => {
215845
- const id = params.id || nanoid.nanoid();
215845
+ const id = params.id || generateId();
215846
215846
  const now = (/* @__PURE__ */ new Date()).toISOString();
215847
215847
  let contextVariables = params.contextVariables;
215848
215848
  if (contextVariables !== void 0 && contextVariables !== null && typeof contextVariables === "object" && Object.keys(contextVariables).length === 0) {
@@ -216402,7 +216402,7 @@ var addFunctionToolToSubAgent = (db) => {
216402
216402
  const { scopes, subAgentId, functionToolId } = params;
216403
216403
  const { tenantId, projectId, agentId } = scopes;
216404
216404
  try {
216405
- const relationId = nanoid.nanoid();
216405
+ const relationId = generateId();
216406
216406
  await db.insert(subAgentFunctionToolRelations).values({
216407
216407
  id: relationId,
216408
216408
  tenantId,
@@ -216705,7 +216705,7 @@ var deleteAgentRelationsByAgent = (db) => async (params) => {
216705
216705
  return (result.rowsAffected || 0) > 0;
216706
216706
  };
216707
216707
  var createAgentToolRelation = (db) => async (params) => {
216708
- const finalRelationId = params.relationId ?? nanoid.nanoid();
216708
+ const finalRelationId = params.relationId ?? generateId();
216709
216709
  const relation = await db.insert(subAgentToolRelations).values({
216710
216710
  id: finalRelationId,
216711
216711
  tenantId: params.scopes.tenantId,
@@ -217126,7 +217126,7 @@ async function generateApiKey() {
217126
217126
  const key = `sk_${publicId}.${secret}`;
217127
217127
  const keyPrefix = key.substring(0, 12);
217128
217128
  const keyHash = await hashApiKey(key);
217129
- const id = nanoid.nanoid();
217129
+ const id = generateId();
217130
217130
  return {
217131
217131
  id,
217132
217132
  publicId,
@@ -218259,7 +218259,7 @@ var deleteTool = (db) => async (params) => {
218259
218259
  return !!deleted;
218260
218260
  };
218261
218261
  var addToolToAgent = (db) => async (params) => {
218262
- const id = nanoid.nanoid();
218262
+ const id = generateId();
218263
218263
  const now = (/* @__PURE__ */ new Date()).toISOString();
218264
218264
  const [created] = await db.insert(subAgentToolRelations).values({
218265
218265
  id,
@@ -218838,7 +218838,7 @@ var getFullAgentDefinition = (db) => async ({
218838
218838
  return result;
218839
218839
  };
218840
218840
  var upsertAgent = (db) => async (params) => {
218841
- const agentId = params.data.id || nanoid.nanoid();
218841
+ const agentId = params.data.id || generateId();
218842
218842
  const scopes = { tenantId: params.data.tenantId, projectId: params.data.projectId, agentId };
218843
218843
  const existing = await getAgentById(db)({
218844
218844
  scopes
@@ -219242,7 +219242,7 @@ var getArtifactComponentsForAgent = (db) => async (params) => {
219242
219242
  };
219243
219243
  var associateArtifactComponentWithAgent = (db) => async (params) => {
219244
219244
  const [association] = await db.insert(subAgentArtifactComponents).values({
219245
- id: nanoid.nanoid(),
219245
+ id: generateId(),
219246
219246
  tenantId: params.scopes.tenantId,
219247
219247
  projectId: params.scopes.projectId,
219248
219248
  agentId: params.scopes.agentId,
@@ -219405,7 +219405,7 @@ var getCacheEntry = (db) => async (params) => {
219405
219405
  var setCacheEntry = (db) => async (entry) => {
219406
219406
  try {
219407
219407
  const cacheData = {
219408
- id: nanoid.nanoid(),
219408
+ id: generateId(),
219409
219409
  tenantId: entry.tenantId,
219410
219410
  projectId: entry.projectId,
219411
219411
  conversationId: entry.conversationId,
@@ -219962,7 +219962,7 @@ var getDataComponentsForAgent = (db) => async (params) => {
219962
219962
  };
219963
219963
  var associateDataComponentWithAgent = (db) => async (params) => {
219964
219964
  const association = await db.insert(subAgentDataComponents).values({
219965
- id: nanoid.nanoid(),
219965
+ id: generateId(),
219966
219966
  tenantId: params.scopes.tenantId,
219967
219967
  projectId: params.scopes.projectId,
219968
219968
  agentId: params.scopes.agentId,
@@ -220266,7 +220266,7 @@ var createFullAgentServerSide = (db, logger14 = defaultLogger) => async (scopes,
220266
220266
  logger14.info({}, "MCP Tools are project-scoped - skipping tool creation in agent");
220267
220267
  let finalAgentId;
220268
220268
  try {
220269
- const agentId = typed.id || nanoid.nanoid();
220269
+ const agentId = typed.id || generateId();
220270
220270
  logger14.info({ agentId }, "Creating agent metadata");
220271
220271
  const agent = await upsertAgent(db)({
220272
220272
  data: {
@@ -220652,7 +220652,7 @@ var createFullAgentServerSide = (db, logger14 = defaultLogger) => async (scopes,
220652
220652
  "Processing agent transfer relation"
220653
220653
  );
220654
220654
  await upsertSubAgentRelation(db)({
220655
- id: nanoid.nanoid(),
220655
+ id: generateId(),
220656
220656
  tenantId,
220657
220657
  projectId,
220658
220658
  agentId: finalAgentId,
@@ -220686,7 +220686,7 @@ var createFullAgentServerSide = (db, logger14 = defaultLogger) => async (scopes,
220686
220686
  "Processing agent delegation relation"
220687
220687
  );
220688
220688
  await upsertSubAgentRelation(db)({
220689
- id: nanoid.nanoid(),
220689
+ id: generateId(),
220690
220690
  tenantId,
220691
220691
  projectId,
220692
220692
  agentId: finalAgentId,
@@ -220769,7 +220769,7 @@ var updateFullAgentServerSide = (db, logger14 = defaultLogger) => async (scopes,
220769
220769
  logger14.info({}, "MCP Tools are project-scoped - skipping tool creation in agent update");
220770
220770
  let finalAgentId;
220771
220771
  try {
220772
- const agentId = typedAgentDefinition.id || nanoid.nanoid();
220772
+ const agentId = typedAgentDefinition.id || generateId();
220773
220773
  logger14.info({ agentId }, "Getting/creating agent metadata");
220774
220774
  const agent = await upsertAgent(db)({
220775
220775
  data: {
@@ -221292,7 +221292,7 @@ var updateFullAgentServerSide = (db, logger14 = defaultLogger) => async (scopes,
221292
221292
  const isTargetExternal = isExternalAgent(targetAgentData);
221293
221293
  const targetField = isTargetExternal ? "externalSubAgentId" : "targetSubAgentId";
221294
221294
  const relationData = {
221295
- id: nanoid.nanoid(),
221295
+ id: generateId(),
221296
221296
  agentId: typedAgentDefinition.id || "",
221297
221297
  sourceSubAgentId: subAgentId,
221298
221298
  relationType: "transfer",
@@ -221326,7 +221326,7 @@ var updateFullAgentServerSide = (db, logger14 = defaultLogger) => async (scopes,
221326
221326
  (async () => {
221327
221327
  try {
221328
221328
  const relationData = {
221329
- id: nanoid.nanoid(),
221329
+ id: generateId(),
221330
221330
  agentId: typedAgentDefinition.id || "",
221331
221331
  sourceSubAgentId: subAgentId,
221332
221332
  relationType: "delegate",
@@ -221541,7 +221541,7 @@ var upsertLedgerArtifact = (db) => async (params) => {
221541
221541
  const sanitizedArt = sanitizeArtifactForDatabase(artifact);
221542
221542
  const now = (/* @__PURE__ */ new Date()).toISOString();
221543
221543
  const artifactRow = {
221544
- id: sanitizedArt.artifactId ?? nanoid.nanoid(),
221544
+ id: sanitizedArt.artifactId ?? generateId(),
221545
221545
  tenantId: scopes.tenantId,
221546
221546
  projectId: scopes.projectId,
221547
221547
  taskId,
@@ -221591,7 +221591,7 @@ var addLedgerArtifacts = (db) => async (params) => {
221591
221591
  const sanitizedArt = sanitizeArtifactForDatabase(art);
221592
221592
  const resolvedTaskId = taskId ?? sanitizedArt.taskId ?? sanitizedArt.metadata?.taskId ?? null;
221593
221593
  return {
221594
- id: sanitizedArt.artifactId ?? nanoid.nanoid(),
221594
+ id: sanitizedArt.artifactId ?? generateId(),
221595
221595
  tenantId: scopes.tenantId,
221596
221596
  projectId: scopes.projectId,
221597
221597
  taskId: resolvedTaskId,
@@ -222981,6 +222981,8 @@ var createValidatedDataAccess = (db, dataAccessFunctions) => {
222981
222981
 
222982
222982
  // src/utils/tracer.ts
222983
222983
  var tracer = getTracer("agents-core");
222984
+
222985
+ // src/context/contextCache.ts
222984
222986
  var logger8 = getLogger("context-cache");
222985
222987
  var ContextCache = class {
222986
222988
  constructor(tenantId, projectId, dbClient) {
@@ -223043,7 +223045,7 @@ var ContextCache = class {
223043
223045
  async set(entry) {
223044
223046
  try {
223045
223047
  const cacheData = {
223046
- id: nanoid.nanoid(),
223048
+ id: generateId(),
223047
223049
  tenantId: this.tenantId,
223048
223050
  projectId: this.projectId,
223049
223051
  conversationId: entry.conversationId,