@inkeep/agents-core 0.8.5 → 0.8.7
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/client-exports.d.cts +7 -7
- package/dist/client-exports.d.ts +7 -7
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.cjs +4 -2
- package/dist/index.d.cts +176 -176
- package/dist/index.d.ts +176 -176
- package/dist/index.js +4 -2
- package/dist/{schema-CLlwzACy.d.ts → schema-BsLudkuV.d.cts} +1 -1
- package/dist/{schema-CfuN6Yh-.d.cts → schema-CjWNQuEl.d.ts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/{utility-DwuJfFDC.d.cts → utility-DP6lt8z3.d.cts} +110 -110
- package/dist/{utility-DwuJfFDC.d.ts → utility-DP6lt8z3.d.ts} +110 -110
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as ConversationHistoryConfig, A as ApiKeyApiUpdateSchema, F as FullGraphAgentInsertSchema } from './utility-
|
|
3
|
-
export { d as AgentStopWhen, a as AgentStopWhenSchema, e as CredentialStoreType, c as GraphStopWhen, G as GraphStopWhenSchema, M as MCPTransportType, b as StopWhen, S as StopWhenSchema } from './utility-
|
|
2
|
+
import { C as ConversationHistoryConfig, A as ApiKeyApiUpdateSchema, F as FullGraphAgentInsertSchema } from './utility-DP6lt8z3.cjs';
|
|
3
|
+
export { d as AgentStopWhen, a as AgentStopWhenSchema, e as CredentialStoreType, c as GraphStopWhen, G as GraphStopWhenSchema, M as MCPTransportType, b as StopWhen, S as StopWhenSchema } from './utility-DP6lt8z3.cjs';
|
|
4
4
|
import 'drizzle-zod';
|
|
5
5
|
import 'drizzle-orm/sqlite-core';
|
|
6
6
|
import '@hono/zod-openapi';
|
|
@@ -67,8 +67,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
|
|
|
67
67
|
canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
68
|
canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
69
|
type: z.ZodOptional<z.ZodEnum<{
|
|
70
|
-
internal: "internal";
|
|
71
70
|
external: "external";
|
|
71
|
+
internal: "internal";
|
|
72
72
|
}>>;
|
|
73
73
|
}, z.core.$strip>;
|
|
74
74
|
declare const ToolApiInsertSchema: z.ZodObject<{
|
|
@@ -171,10 +171,6 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
|
|
|
171
171
|
id: z.ZodString;
|
|
172
172
|
name: z.ZodString;
|
|
173
173
|
description: z.ZodString;
|
|
174
|
-
prompt: z.ZodString;
|
|
175
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
176
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
177
|
-
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
178
174
|
models: z.ZodOptional<z.ZodObject<{
|
|
179
175
|
base: z.ZodOptional<z.ZodObject<{
|
|
180
176
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -198,6 +194,10 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
|
|
|
198
194
|
}, {
|
|
199
195
|
stepCountIs?: number | undefined;
|
|
200
196
|
}>>>>;
|
|
197
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
198
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
199
|
+
prompt: z.ZodString;
|
|
200
|
+
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
201
201
|
type: z.ZodLiteral<"internal">;
|
|
202
202
|
canUse: z.ZodArray<z.ZodObject<{
|
|
203
203
|
toolId: z.ZodString;
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as ConversationHistoryConfig, A as ApiKeyApiUpdateSchema, F as FullGraphAgentInsertSchema } from './utility-
|
|
3
|
-
export { d as AgentStopWhen, a as AgentStopWhenSchema, e as CredentialStoreType, c as GraphStopWhen, G as GraphStopWhenSchema, M as MCPTransportType, b as StopWhen, S as StopWhenSchema } from './utility-
|
|
2
|
+
import { C as ConversationHistoryConfig, A as ApiKeyApiUpdateSchema, F as FullGraphAgentInsertSchema } from './utility-DP6lt8z3.js';
|
|
3
|
+
export { d as AgentStopWhen, a as AgentStopWhenSchema, e as CredentialStoreType, c as GraphStopWhen, G as GraphStopWhenSchema, M as MCPTransportType, b as StopWhen, S as StopWhenSchema } from './utility-DP6lt8z3.js';
|
|
4
4
|
import 'drizzle-zod';
|
|
5
5
|
import 'drizzle-orm/sqlite-core';
|
|
6
6
|
import '@hono/zod-openapi';
|
|
@@ -67,8 +67,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
|
|
|
67
67
|
canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
68
|
canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
69
|
type: z.ZodOptional<z.ZodEnum<{
|
|
70
|
-
internal: "internal";
|
|
71
70
|
external: "external";
|
|
71
|
+
internal: "internal";
|
|
72
72
|
}>>;
|
|
73
73
|
}, z.core.$strip>;
|
|
74
74
|
declare const ToolApiInsertSchema: z.ZodObject<{
|
|
@@ -171,10 +171,6 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
|
|
|
171
171
|
id: z.ZodString;
|
|
172
172
|
name: z.ZodString;
|
|
173
173
|
description: z.ZodString;
|
|
174
|
-
prompt: z.ZodString;
|
|
175
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
176
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
177
|
-
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
178
174
|
models: z.ZodOptional<z.ZodObject<{
|
|
179
175
|
base: z.ZodOptional<z.ZodObject<{
|
|
180
176
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -198,6 +194,10 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
|
|
|
198
194
|
}, {
|
|
199
195
|
stepCountIs?: number | undefined;
|
|
200
196
|
}>>>>;
|
|
197
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
198
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
199
|
+
prompt: z.ZodString;
|
|
200
|
+
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
201
201
|
type: z.ZodLiteral<"internal">;
|
|
202
202
|
canUse: z.ZodArray<z.ZodObject<{
|
|
203
203
|
toolId: z.ZodString;
|
package/dist/db/schema.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
|
-
import '../utility-
|
|
4
|
-
export { k as agentArtifactComponents, O as agentArtifactComponentsRelations, i as agentDataComponents, Q as agentDataComponentsRelations, a as agentGraph, F as agentGraphRelations, e as agentRelations, S as agentRelationsRelations, m as agentToolRelations, I as agentToolRelationsRelations, d as agents, E as agentsRelations, r as apiKeys, H as apiKeysRelations, j as artifactComponents, N as artifactComponentsRelations, b as contextCache, D as contextCacheRelations, c as contextConfigs, C as contextConfigsRelations, n as conversations, L as conversationsRelations, u as credentialReferences, J as credentialReferencesRelations, h as dataComponents, P as dataComponentsRelations, f as externalAgents, G as externalAgentsRelations, q as ledgerArtifacts, x as ledgerArtifactsContextIdIdx, R as ledgerArtifactsRelations, y as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, w as ledgerArtifactsToolCallIdIdx, o as messages, M as messagesRelations, p as projects, A as projectsRelations, g as taskRelations, B as taskRelationsRelations, t as tasks, z as tasksRelations, l as tools, K as toolsRelations } from '../schema-
|
|
3
|
+
import '../utility-DP6lt8z3.cjs';
|
|
4
|
+
export { k as agentArtifactComponents, O as agentArtifactComponentsRelations, i as agentDataComponents, Q as agentDataComponentsRelations, a as agentGraph, F as agentGraphRelations, e as agentRelations, S as agentRelationsRelations, m as agentToolRelations, I as agentToolRelationsRelations, d as agents, E as agentsRelations, r as apiKeys, H as apiKeysRelations, j as artifactComponents, N as artifactComponentsRelations, b as contextCache, D as contextCacheRelations, c as contextConfigs, C as contextConfigsRelations, n as conversations, L as conversationsRelations, u as credentialReferences, J as credentialReferencesRelations, h as dataComponents, P as dataComponentsRelations, f as externalAgents, G as externalAgentsRelations, q as ledgerArtifacts, x as ledgerArtifactsContextIdIdx, R as ledgerArtifactsRelations, y as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, w as ledgerArtifactsToolCallIdIdx, o as messages, M as messagesRelations, p as projects, A as projectsRelations, g as taskRelations, B as taskRelationsRelations, t as tasks, z as tasksRelations, l as tools, K as toolsRelations } from '../schema-BsLudkuV.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
|
-
import '../utility-
|
|
4
|
-
export { k as agentArtifactComponents, O as agentArtifactComponentsRelations, i as agentDataComponents, Q as agentDataComponentsRelations, a as agentGraph, F as agentGraphRelations, e as agentRelations, S as agentRelationsRelations, m as agentToolRelations, I as agentToolRelationsRelations, d as agents, E as agentsRelations, r as apiKeys, H as apiKeysRelations, j as artifactComponents, N as artifactComponentsRelations, b as contextCache, D as contextCacheRelations, c as contextConfigs, C as contextConfigsRelations, n as conversations, L as conversationsRelations, u as credentialReferences, J as credentialReferencesRelations, h as dataComponents, P as dataComponentsRelations, f as externalAgents, G as externalAgentsRelations, q as ledgerArtifacts, x as ledgerArtifactsContextIdIdx, R as ledgerArtifactsRelations, y as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, w as ledgerArtifactsToolCallIdIdx, o as messages, M as messagesRelations, p as projects, A as projectsRelations, g as taskRelations, B as taskRelationsRelations, t as tasks, z as tasksRelations, l as tools, K as toolsRelations } from '../schema-
|
|
3
|
+
import '../utility-DP6lt8z3.js';
|
|
4
|
+
export { k as agentArtifactComponents, O as agentArtifactComponentsRelations, i as agentDataComponents, Q as agentDataComponentsRelations, a as agentGraph, F as agentGraphRelations, e as agentRelations, S as agentRelationsRelations, m as agentToolRelations, I as agentToolRelationsRelations, d as agents, E as agentsRelations, r as apiKeys, H as apiKeysRelations, j as artifactComponents, N as artifactComponentsRelations, b as contextCache, D as contextCacheRelations, c as contextConfigs, C as contextConfigsRelations, n as conversations, L as conversationsRelations, u as credentialReferences, J as credentialReferencesRelations, h as dataComponents, P as dataComponentsRelations, f as externalAgents, G as externalAgentsRelations, q as ledgerArtifacts, x as ledgerArtifactsContextIdIdx, R as ledgerArtifactsRelations, y as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, w as ledgerArtifactsToolCallIdIdx, o as messages, M as messagesRelations, p as projects, A as projectsRelations, g as taskRelations, B as taskRelationsRelations, t as tasks, z as tasksRelations, l as tools, K as toolsRelations } from '../schema-CjWNQuEl.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/index.cjs
CHANGED
|
@@ -1861,15 +1861,17 @@ var ContextConfigBuilder = class {
|
|
|
1861
1861
|
if (options.contextVariables) {
|
|
1862
1862
|
for (const [key, definition] of Object.entries(options.contextVariables)) {
|
|
1863
1863
|
const { credentialReference, ...rest } = definition;
|
|
1864
|
+
const credentialReferenceId = credentialReference?.id || rest.credentialReferenceId;
|
|
1864
1865
|
processedContextVariables[key] = {
|
|
1865
1866
|
...rest,
|
|
1866
1867
|
responseSchema: convertZodToJsonSchema(definition.responseSchema),
|
|
1867
|
-
credentialReferenceId
|
|
1868
|
+
credentialReferenceId
|
|
1868
1869
|
};
|
|
1869
1870
|
logger.debug(
|
|
1870
1871
|
{
|
|
1871
1872
|
contextVariableKey: key,
|
|
1872
|
-
originalSchema: definition.responseSchema
|
|
1873
|
+
originalSchema: definition.responseSchema,
|
|
1874
|
+
credentialReferenceId
|
|
1873
1875
|
},
|
|
1874
1876
|
"Converting contextVariable responseSchema to JSON Schema for database storage"
|
|
1875
1877
|
);
|