@inkeep/agents-core 0.1.3 → 0.1.6
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/SUPPLEMENTAL_TERMS.md +40 -0
- package/dist/chunk-H2F72PDA.js +15 -0
- package/dist/chunk-M4JXMAG7.js +822 -0
- package/dist/chunk-MKBO26DX.js +9 -0
- package/dist/chunk-RZPLS4MU.js +676 -0
- package/dist/chunk-SVGQSPW4.js +24 -0
- package/dist/client-exports.cjs +246 -0
- package/dist/client-exports.d.cts +315 -0
- package/dist/client-exports.d.ts +64 -49
- package/dist/client-exports.js +201 -246
- package/dist/db/schema.cjs +819 -0
- package/dist/db/schema.d.cts +8 -0
- package/dist/db/schema.d.ts +8 -4337
- package/dist/db/schema.js +1 -696
- package/dist/entities-CNJaf-rG.d.cts +7849 -0
- package/dist/entities-CNJaf-rG.d.ts +7849 -0
- package/dist/index.cjs +9647 -0
- package/dist/index.d.cts +3991 -0
- package/dist/index.d.ts +3991 -12
- package/dist/index.js +7646 -13
- package/dist/schema-DFDqtBpV.d.ts +4401 -0
- package/dist/schema-Dbc3UMpd.d.cts +4401 -0
- package/dist/types/index.cjs +45 -0
- package/dist/types/index.d.cts +125 -0
- package/dist/types/index.d.ts +125 -5
- package/dist/types/index.js +2 -6
- package/dist/validation/index.cjs +1642 -0
- package/dist/validation/index.d.cts +64 -0
- package/dist/validation/index.d.ts +64 -4
- package/dist/validation/index.js +1 -5
- package/package.json +6 -4
- package/dist/__tests__/integration/helpers.d.ts +0 -5
- package/dist/__tests__/integration/helpers.d.ts.map +0 -1
- package/dist/__tests__/integration/helpers.js +0 -37
- package/dist/__tests__/integration/helpers.js.map +0 -1
- package/dist/__tests__/setup.d.ts +0 -3
- package/dist/__tests__/setup.d.ts.map +0 -1
- package/dist/__tests__/setup.js +0 -29
- package/dist/__tests__/setup.js.map +0 -1
- package/dist/client-exports.d.ts.map +0 -1
- package/dist/client-exports.js.map +0 -1
- package/dist/context/ContextConfig.d.ts +0 -54
- package/dist/context/ContextConfig.d.ts.map +0 -1
- package/dist/context/ContextConfig.js +0 -302
- package/dist/context/ContextConfig.js.map +0 -1
- package/dist/context/ContextFetcher.d.ts +0 -64
- package/dist/context/ContextFetcher.d.ts.map +0 -1
- package/dist/context/ContextFetcher.js +0 -325
- package/dist/context/ContextFetcher.js.map +0 -1
- package/dist/context/ContextResolver.d.ts +0 -52
- package/dist/context/ContextResolver.d.ts.map +0 -1
- package/dist/context/ContextResolver.js +0 -298
- package/dist/context/ContextResolver.js.map +0 -1
- package/dist/context/TemplateEngine.d.ts +0 -46
- package/dist/context/TemplateEngine.d.ts.map +0 -1
- package/dist/context/TemplateEngine.js +0 -175
- package/dist/context/TemplateEngine.js.map +0 -1
- package/dist/context/context.d.ts +0 -8
- package/dist/context/context.d.ts.map +0 -1
- package/dist/context/context.js +0 -157
- package/dist/context/context.js.map +0 -1
- package/dist/context/contextCache.d.ts +0 -50
- package/dist/context/contextCache.d.ts.map +0 -1
- package/dist/context/contextCache.js +0 -175
- package/dist/context/contextCache.js.map +0 -1
- package/dist/context/index.d.ts +0 -11
- package/dist/context/index.d.ts.map +0 -1
- package/dist/context/index.js +0 -8
- package/dist/context/index.js.map +0 -1
- package/dist/credential-stores/CredentialStoreRegistry.d.ts +0 -39
- package/dist/credential-stores/CredentialStoreRegistry.d.ts.map +0 -1
- package/dist/credential-stores/CredentialStoreRegistry.js +0 -65
- package/dist/credential-stores/CredentialStoreRegistry.js.map +0 -1
- package/dist/credential-stores/defaults.d.ts +0 -6
- package/dist/credential-stores/defaults.d.ts.map +0 -1
- package/dist/credential-stores/defaults.js +0 -22
- package/dist/credential-stores/defaults.js.map +0 -1
- package/dist/credential-stores/index.d.ts +0 -6
- package/dist/credential-stores/index.d.ts.map +0 -1
- package/dist/credential-stores/index.js +0 -6
- package/dist/credential-stores/index.js.map +0 -1
- package/dist/credential-stores/keychain-store.d.ts +0 -100
- package/dist/credential-stores/keychain-store.d.ts.map +0 -1
- package/dist/credential-stores/keychain-store.js +0 -225
- package/dist/credential-stores/keychain-store.js.map +0 -1
- package/dist/credential-stores/memory-store.d.ts +0 -39
- package/dist/credential-stores/memory-store.d.ts.map +0 -1
- package/dist/credential-stores/memory-store.js +0 -58
- package/dist/credential-stores/memory-store.js.map +0 -1
- package/dist/credential-stores/nango-store.d.ts +0 -59
- package/dist/credential-stores/nango-store.d.ts.map +0 -1
- package/dist/credential-stores/nango-store.js +0 -264
- package/dist/credential-stores/nango-store.js.map +0 -1
- package/dist/credential-stuffer/CredentialStuffer.d.ts +0 -80
- package/dist/credential-stuffer/CredentialStuffer.d.ts.map +0 -1
- package/dist/credential-stuffer/CredentialStuffer.js +0 -186
- package/dist/credential-stuffer/CredentialStuffer.js.map +0 -1
- package/dist/credential-stuffer/index.d.ts +0 -2
- package/dist/credential-stuffer/index.d.ts.map +0 -1
- package/dist/credential-stuffer/index.js +0 -2
- package/dist/credential-stuffer/index.js.map +0 -1
- package/dist/data-access/agentDataComponents.d.ts +0 -1
- package/dist/data-access/agentDataComponents.d.ts.map +0 -1
- package/dist/data-access/agentDataComponents.js +0 -2
- package/dist/data-access/agentDataComponents.js.map +0 -1
- package/dist/data-access/agentGraphs.d.ts +0 -406
- package/dist/data-access/agentGraphs.d.ts.map +0 -1
- package/dist/data-access/agentGraphs.js +0 -551
- package/dist/data-access/agentGraphs.js.map +0 -1
- package/dist/data-access/agentRelations.d.ts +0 -456
- package/dist/data-access/agentRelations.d.ts.map +0 -1
- package/dist/data-access/agentRelations.js +0 -471
- package/dist/data-access/agentRelations.js.map +0 -1
- package/dist/data-access/agents.d.ts +0 -218
- package/dist/data-access/agents.d.ts.map +0 -1
- package/dist/data-access/agents.js +0 -130
- package/dist/data-access/agents.js.map +0 -1
- package/dist/data-access/apiKeys.d.ts +0 -114
- package/dist/data-access/apiKeys.d.ts.map +0 -1
- package/dist/data-access/apiKeys.js +0 -185
- package/dist/data-access/apiKeys.js.map +0 -1
- package/dist/data-access/artifactComponents.d.ts +0 -152
- package/dist/data-access/artifactComponents.d.ts.map +0 -1
- package/dist/data-access/artifactComponents.js +0 -214
- package/dist/data-access/artifactComponents.js.map +0 -1
- package/dist/data-access/contextCache.d.ts +0 -68
- package/dist/data-access/contextCache.d.ts.map +0 -1
- package/dist/data-access/contextCache.js +0 -160
- package/dist/data-access/contextCache.js.map +0 -1
- package/dist/data-access/contextConfigs.d.ts +0 -110
- package/dist/data-access/contextConfigs.d.ts.map +0 -1
- package/dist/data-access/contextConfigs.js +0 -156
- package/dist/data-access/contextConfigs.js.map +0 -1
- package/dist/data-access/conversations.d.ts +0 -125
- package/dist/data-access/conversations.d.ts.map +0 -1
- package/dist/data-access/conversations.js +0 -244
- package/dist/data-access/conversations.js.map +0 -1
- package/dist/data-access/credentialReferences.d.ts +0 -86
- package/dist/data-access/credentialReferences.d.ts.map +0 -1
- package/dist/data-access/credentialReferences.js +0 -175
- package/dist/data-access/credentialReferences.js.map +0 -1
- package/dist/data-access/dataComponents.d.ts +0 -129
- package/dist/data-access/dataComponents.d.ts.map +0 -1
- package/dist/data-access/dataComponents.js +0 -213
- package/dist/data-access/dataComponents.js.map +0 -1
- package/dist/data-access/externalAgents.d.ts +0 -83
- package/dist/data-access/externalAgents.d.ts.map +0 -1
- package/dist/data-access/externalAgents.js +0 -163
- package/dist/data-access/externalAgents.js.map +0 -1
- package/dist/data-access/graphFull.d.ts +0 -32
- package/dist/data-access/graphFull.d.ts.map +0 -1
- package/dist/data-access/graphFull.js +0 -996
- package/dist/data-access/graphFull.js.map +0 -1
- package/dist/data-access/index.d.ts +0 -21
- package/dist/data-access/index.d.ts.map +0 -1
- package/dist/data-access/index.js +0 -22
- package/dist/data-access/index.js.map +0 -1
- package/dist/data-access/ledgerArtifacts.d.ts +0 -49
- package/dist/data-access/ledgerArtifacts.d.ts.map +0 -1
- package/dist/data-access/ledgerArtifacts.js +0 -112
- package/dist/data-access/ledgerArtifacts.js.map +0 -1
- package/dist/data-access/messages.d.ts +0 -209
- package/dist/data-access/messages.d.ts.map +0 -1
- package/dist/data-access/messages.js +0 -100
- package/dist/data-access/messages.js.map +0 -1
- package/dist/data-access/projects.d.ts +0 -67
- package/dist/data-access/projects.d.ts.map +0 -1
- package/dist/data-access/projects.js +0 -337
- package/dist/data-access/projects.js.map +0 -1
- package/dist/data-access/tasks.d.ts +0 -37
- package/dist/data-access/tasks.d.ts.map +0 -1
- package/dist/data-access/tasks.js +0 -40
- package/dist/data-access/tasks.js.map +0 -1
- package/dist/data-access/tools.d.ts +0 -277
- package/dist/data-access/tools.d.ts.map +0 -1
- package/dist/data-access/tools.js +0 -183
- package/dist/data-access/tools.js.map +0 -1
- package/dist/data-access/validation.d.ts +0 -17
- package/dist/data-access/validation.d.ts.map +0 -1
- package/dist/data-access/validation.js +0 -52
- package/dist/data-access/validation.js.map +0 -1
- package/dist/db/clean.d.ts +0 -6
- package/dist/db/clean.d.ts.map +0 -1
- package/dist/db/clean.js +0 -81
- package/dist/db/clean.js.map +0 -1
- package/dist/db/client.d.ts +0 -19
- package/dist/db/client.d.ts.map +0 -1
- package/dist/db/client.js +0 -24
- package/dist/db/client.js.map +0 -1
- package/dist/db/schema.d.ts.map +0 -1
- package/dist/db/schema.js.map +0 -1
- package/dist/db/test-client.d.ts +0 -25
- package/dist/db/test-client.d.ts.map +0 -1
- package/dist/db/test-client.js +0 -136
- package/dist/db/test-client.js.map +0 -1
- package/dist/env.d.ts +0 -19
- package/dist/env.d.ts.map +0 -1
- package/dist/env.js +0 -49
- package/dist/env.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/middleware/contextValidation.d.ts +0 -49
- package/dist/middleware/contextValidation.d.ts.map +0 -1
- package/dist/middleware/contextValidation.js +0 -473
- package/dist/middleware/contextValidation.js.map +0 -1
- package/dist/middleware/index.d.ts +0 -2
- package/dist/middleware/index.d.ts.map +0 -1
- package/dist/middleware/index.js +0 -2
- package/dist/middleware/index.js.map +0 -1
- package/dist/server/BaseServer.d.ts +0 -83
- package/dist/server/BaseServer.d.ts.map +0 -1
- package/dist/server/BaseServer.js +0 -218
- package/dist/server/BaseServer.js.map +0 -1
- package/dist/types/a2a.d.ts +0 -373
- package/dist/types/a2a.d.ts.map +0 -1
- package/dist/types/a2a.js +0 -14
- package/dist/types/a2a.js.map +0 -1
- package/dist/types/entities.d.ts +0 -147
- package/dist/types/entities.d.ts.map +0 -1
- package/dist/types/entities.js +0 -2
- package/dist/types/entities.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/server.d.ts +0 -116
- package/dist/types/server.d.ts.map +0 -1
- package/dist/types/server.js +0 -2
- package/dist/types/server.js.map +0 -1
- package/dist/types/utility.d.ts +0 -213
- package/dist/types/utility.d.ts.map +0 -1
- package/dist/types/utility.js +0 -9
- package/dist/types/utility.js.map +0 -1
- package/dist/utils/apiKeys.d.ts +0 -32
- package/dist/utils/apiKeys.d.ts.map +0 -1
- package/dist/utils/apiKeys.js +0 -117
- package/dist/utils/apiKeys.js.map +0 -1
- package/dist/utils/auth-detection.d.ts +0 -23
- package/dist/utils/auth-detection.d.ts.map +0 -1
- package/dist/utils/auth-detection.js +0 -148
- package/dist/utils/auth-detection.js.map +0 -1
- package/dist/utils/credential-store-utils.d.ts +0 -11
- package/dist/utils/credential-store-utils.d.ts.map +0 -1
- package/dist/utils/credential-store-utils.js +0 -19
- package/dist/utils/credential-store-utils.js.map +0 -1
- package/dist/utils/error.d.ts +0 -526
- package/dist/utils/error.d.ts.map +0 -1
- package/dist/utils/error.js +0 -282
- package/dist/utils/error.js.map +0 -1
- package/dist/utils/execution.d.ts +0 -18
- package/dist/utils/execution.d.ts.map +0 -1
- package/dist/utils/execution.js +0 -25
- package/dist/utils/execution.js.map +0 -1
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -9
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -79
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -102
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/logging.d.ts +0 -11
- package/dist/utils/logging.d.ts.map +0 -1
- package/dist/utils/logging.js +0 -6
- package/dist/utils/logging.js.map +0 -1
- package/dist/utils/mcp-client.d.ts +0 -48
- package/dist/utils/mcp-client.d.ts.map +0 -1
- package/dist/utils/mcp-client.js +0 -171
- package/dist/utils/mcp-client.js.map +0 -1
- package/dist/utils/tracer.d.ts +0 -24
- package/dist/utils/tracer.d.ts.map +0 -1
- package/dist/utils/tracer.js +0 -110
- package/dist/utils/tracer.js.map +0 -1
- package/dist/validation/graphFull.d.ts +0 -36
- package/dist/validation/graphFull.d.ts.map +0 -1
- package/dist/validation/graphFull.js +0 -128
- package/dist/validation/graphFull.js.map +0 -1
- package/dist/validation/id-validation.d.ts +0 -38
- package/dist/validation/id-validation.d.ts.map +0 -1
- package/dist/validation/id-validation.js +0 -60
- package/dist/validation/id-validation.js.map +0 -1
- package/dist/validation/index.d.ts.map +0 -1
- package/dist/validation/index.js.map +0 -1
- package/dist/validation/schemas.d.ts +0 -7238
- package/dist/validation/schemas.d.ts.map +0 -1
- package/dist/validation/schemas.js +0 -575
- package/dist/validation/schemas.js.map +0 -1
|
@@ -1,406 +0,0 @@
|
|
|
1
|
-
import type { DatabaseClient } from '../db/client';
|
|
2
|
-
import type { AgentGraphInsert, AgentGraphUpdate, FullGraphDefinition } from '../types/entities';
|
|
3
|
-
import type { PaginationConfig, ScopeConfig } from '../types/utility';
|
|
4
|
-
export declare const getAgentGraph: (db: DatabaseClient) => (params: {
|
|
5
|
-
scopes: ScopeConfig;
|
|
6
|
-
graphId: string;
|
|
7
|
-
}) => Promise<{
|
|
8
|
-
tenantId: string;
|
|
9
|
-
projectId: string;
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
description: string | null;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
defaultAgentId: string;
|
|
16
|
-
models: {
|
|
17
|
-
base?: {
|
|
18
|
-
model?: string | undefined;
|
|
19
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
20
|
-
} | undefined;
|
|
21
|
-
structuredOutput?: {
|
|
22
|
-
model?: string | undefined;
|
|
23
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
24
|
-
} | undefined;
|
|
25
|
-
summarizer?: {
|
|
26
|
-
model?: string | undefined;
|
|
27
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
28
|
-
} | undefined;
|
|
29
|
-
} | null;
|
|
30
|
-
stopWhen: {
|
|
31
|
-
transferCountIs?: number;
|
|
32
|
-
} | null;
|
|
33
|
-
graphPrompt: string | null;
|
|
34
|
-
statusUpdates: {
|
|
35
|
-
enabled?: boolean | undefined;
|
|
36
|
-
numEvents?: number | undefined;
|
|
37
|
-
timeInSeconds?: number | undefined;
|
|
38
|
-
prompt?: string | undefined;
|
|
39
|
-
statusComponents?: {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
schema: {
|
|
43
|
-
type: "object";
|
|
44
|
-
properties: Record<string, any>;
|
|
45
|
-
required?: string[] | undefined;
|
|
46
|
-
};
|
|
47
|
-
description?: string | undefined;
|
|
48
|
-
}[] | undefined;
|
|
49
|
-
} | null;
|
|
50
|
-
contextConfigId: string | null;
|
|
51
|
-
} | undefined>;
|
|
52
|
-
export declare const getAgentGraphById: (db: DatabaseClient) => (params: {
|
|
53
|
-
scopes: ScopeConfig;
|
|
54
|
-
graphId: string;
|
|
55
|
-
}) => Promise<{
|
|
56
|
-
tenantId: string;
|
|
57
|
-
projectId: string;
|
|
58
|
-
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
description: string | null;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
updatedAt: string;
|
|
63
|
-
defaultAgentId: string;
|
|
64
|
-
models: {
|
|
65
|
-
base?: {
|
|
66
|
-
model?: string | undefined;
|
|
67
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
-
structuredOutput?: {
|
|
70
|
-
model?: string | undefined;
|
|
71
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
72
|
-
} | undefined;
|
|
73
|
-
summarizer?: {
|
|
74
|
-
model?: string | undefined;
|
|
75
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
76
|
-
} | undefined;
|
|
77
|
-
} | null;
|
|
78
|
-
stopWhen: {
|
|
79
|
-
transferCountIs?: number;
|
|
80
|
-
} | null;
|
|
81
|
-
graphPrompt: string | null;
|
|
82
|
-
statusUpdates: {
|
|
83
|
-
enabled?: boolean | undefined;
|
|
84
|
-
numEvents?: number | undefined;
|
|
85
|
-
timeInSeconds?: number | undefined;
|
|
86
|
-
prompt?: string | undefined;
|
|
87
|
-
statusComponents?: {
|
|
88
|
-
id: string;
|
|
89
|
-
name: string;
|
|
90
|
-
schema: {
|
|
91
|
-
type: "object";
|
|
92
|
-
properties: Record<string, any>;
|
|
93
|
-
required?: string[] | undefined;
|
|
94
|
-
};
|
|
95
|
-
description?: string | undefined;
|
|
96
|
-
}[] | undefined;
|
|
97
|
-
} | null;
|
|
98
|
-
contextConfigId: string | null;
|
|
99
|
-
} | null>;
|
|
100
|
-
export declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
101
|
-
scopes: ScopeConfig;
|
|
102
|
-
graphId: string;
|
|
103
|
-
}) => Promise<{
|
|
104
|
-
tenantId: string;
|
|
105
|
-
projectId: string;
|
|
106
|
-
id: string;
|
|
107
|
-
name: string;
|
|
108
|
-
description: string | null;
|
|
109
|
-
createdAt: string;
|
|
110
|
-
updatedAt: string;
|
|
111
|
-
defaultAgentId: string;
|
|
112
|
-
models: {
|
|
113
|
-
base?: {
|
|
114
|
-
model?: string | undefined;
|
|
115
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
116
|
-
} | undefined;
|
|
117
|
-
structuredOutput?: {
|
|
118
|
-
model?: string | undefined;
|
|
119
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
120
|
-
} | undefined;
|
|
121
|
-
summarizer?: {
|
|
122
|
-
model?: string | undefined;
|
|
123
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
124
|
-
} | undefined;
|
|
125
|
-
} | null;
|
|
126
|
-
stopWhen: {
|
|
127
|
-
transferCountIs?: number;
|
|
128
|
-
} | null;
|
|
129
|
-
graphPrompt: string | null;
|
|
130
|
-
statusUpdates: {
|
|
131
|
-
enabled?: boolean | undefined;
|
|
132
|
-
numEvents?: number | undefined;
|
|
133
|
-
timeInSeconds?: number | undefined;
|
|
134
|
-
prompt?: string | undefined;
|
|
135
|
-
statusComponents?: {
|
|
136
|
-
id: string;
|
|
137
|
-
name: string;
|
|
138
|
-
schema: {
|
|
139
|
-
type: "object";
|
|
140
|
-
properties: Record<string, any>;
|
|
141
|
-
required?: string[] | undefined;
|
|
142
|
-
};
|
|
143
|
-
description?: string | undefined;
|
|
144
|
-
}[] | undefined;
|
|
145
|
-
} | null;
|
|
146
|
-
contextConfigId: string | null;
|
|
147
|
-
defaultAgent: {
|
|
148
|
-
tenantId: string;
|
|
149
|
-
projectId: string;
|
|
150
|
-
id: string;
|
|
151
|
-
name: string;
|
|
152
|
-
description: string;
|
|
153
|
-
prompt: string;
|
|
154
|
-
createdAt: string;
|
|
155
|
-
updatedAt: string;
|
|
156
|
-
models: {
|
|
157
|
-
base?: {
|
|
158
|
-
model?: string | undefined;
|
|
159
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
160
|
-
} | undefined;
|
|
161
|
-
structuredOutput?: {
|
|
162
|
-
model?: string | undefined;
|
|
163
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
164
|
-
} | undefined;
|
|
165
|
-
summarizer?: {
|
|
166
|
-
model?: string | undefined;
|
|
167
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
168
|
-
} | undefined;
|
|
169
|
-
} | null;
|
|
170
|
-
stopWhen: {
|
|
171
|
-
stepCountIs?: number;
|
|
172
|
-
} | null;
|
|
173
|
-
conversationHistoryConfig: import("..").ConversationHistoryConfig | null;
|
|
174
|
-
};
|
|
175
|
-
} | null>;
|
|
176
|
-
export declare const listAgentGraphs: (db: DatabaseClient) => (params: {
|
|
177
|
-
scopes: ScopeConfig;
|
|
178
|
-
}) => Promise<{
|
|
179
|
-
tenantId: string;
|
|
180
|
-
projectId: string;
|
|
181
|
-
id: string;
|
|
182
|
-
name: string;
|
|
183
|
-
description: string | null;
|
|
184
|
-
createdAt: string;
|
|
185
|
-
updatedAt: string;
|
|
186
|
-
defaultAgentId: string;
|
|
187
|
-
models: {
|
|
188
|
-
base?: {
|
|
189
|
-
model?: string | undefined;
|
|
190
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
191
|
-
} | undefined;
|
|
192
|
-
structuredOutput?: {
|
|
193
|
-
model?: string | undefined;
|
|
194
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
195
|
-
} | undefined;
|
|
196
|
-
summarizer?: {
|
|
197
|
-
model?: string | undefined;
|
|
198
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
199
|
-
} | undefined;
|
|
200
|
-
} | null;
|
|
201
|
-
stopWhen: {
|
|
202
|
-
transferCountIs?: number;
|
|
203
|
-
} | null;
|
|
204
|
-
graphPrompt: string | null;
|
|
205
|
-
statusUpdates: {
|
|
206
|
-
enabled?: boolean | undefined;
|
|
207
|
-
numEvents?: number | undefined;
|
|
208
|
-
timeInSeconds?: number | undefined;
|
|
209
|
-
prompt?: string | undefined;
|
|
210
|
-
statusComponents?: {
|
|
211
|
-
id: string;
|
|
212
|
-
name: string;
|
|
213
|
-
schema: {
|
|
214
|
-
type: "object";
|
|
215
|
-
properties: Record<string, any>;
|
|
216
|
-
required?: string[] | undefined;
|
|
217
|
-
};
|
|
218
|
-
description?: string | undefined;
|
|
219
|
-
}[] | undefined;
|
|
220
|
-
} | null;
|
|
221
|
-
contextConfigId: string | null;
|
|
222
|
-
}[]>;
|
|
223
|
-
export declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
|
|
224
|
-
scopes: ScopeConfig;
|
|
225
|
-
pagination?: PaginationConfig;
|
|
226
|
-
}) => Promise<{
|
|
227
|
-
data: {
|
|
228
|
-
tenantId: string;
|
|
229
|
-
projectId: string;
|
|
230
|
-
id: string;
|
|
231
|
-
name: string;
|
|
232
|
-
description: string | null;
|
|
233
|
-
defaultAgentId: string;
|
|
234
|
-
contextConfigId: string | null;
|
|
235
|
-
models: {
|
|
236
|
-
base?: {
|
|
237
|
-
model?: string | undefined;
|
|
238
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
239
|
-
} | undefined;
|
|
240
|
-
structuredOutput?: {
|
|
241
|
-
model?: string | undefined;
|
|
242
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
243
|
-
} | undefined;
|
|
244
|
-
summarizer?: {
|
|
245
|
-
model?: string | undefined;
|
|
246
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
247
|
-
} | undefined;
|
|
248
|
-
} | null;
|
|
249
|
-
statusUpdates: {
|
|
250
|
-
enabled?: boolean | undefined;
|
|
251
|
-
numEvents?: number | undefined;
|
|
252
|
-
timeInSeconds?: number | undefined;
|
|
253
|
-
prompt?: string | undefined;
|
|
254
|
-
statusComponents?: {
|
|
255
|
-
id: string;
|
|
256
|
-
name: string;
|
|
257
|
-
schema: {
|
|
258
|
-
type: "object";
|
|
259
|
-
properties: Record<string, any>;
|
|
260
|
-
required?: string[] | undefined;
|
|
261
|
-
};
|
|
262
|
-
description?: string | undefined;
|
|
263
|
-
}[] | undefined;
|
|
264
|
-
} | null;
|
|
265
|
-
graphPrompt: string | null;
|
|
266
|
-
stopWhen: {
|
|
267
|
-
transferCountIs?: number;
|
|
268
|
-
} | null;
|
|
269
|
-
createdAt: string;
|
|
270
|
-
updatedAt: string;
|
|
271
|
-
}[];
|
|
272
|
-
pagination: {
|
|
273
|
-
page: number;
|
|
274
|
-
limit: number;
|
|
275
|
-
total: number;
|
|
276
|
-
pages: number;
|
|
277
|
-
};
|
|
278
|
-
}>;
|
|
279
|
-
export declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert) => Promise<{
|
|
280
|
-
tenantId: string;
|
|
281
|
-
projectId: string;
|
|
282
|
-
id: string;
|
|
283
|
-
name: string;
|
|
284
|
-
description: string | null;
|
|
285
|
-
createdAt: string;
|
|
286
|
-
updatedAt: string;
|
|
287
|
-
defaultAgentId: string;
|
|
288
|
-
models: {
|
|
289
|
-
base?: {
|
|
290
|
-
model?: string | undefined;
|
|
291
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
292
|
-
} | undefined;
|
|
293
|
-
structuredOutput?: {
|
|
294
|
-
model?: string | undefined;
|
|
295
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
296
|
-
} | undefined;
|
|
297
|
-
summarizer?: {
|
|
298
|
-
model?: string | undefined;
|
|
299
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
300
|
-
} | undefined;
|
|
301
|
-
} | null;
|
|
302
|
-
stopWhen: {
|
|
303
|
-
transferCountIs?: number;
|
|
304
|
-
} | null;
|
|
305
|
-
graphPrompt: string | null;
|
|
306
|
-
statusUpdates: {
|
|
307
|
-
enabled?: boolean | undefined;
|
|
308
|
-
numEvents?: number | undefined;
|
|
309
|
-
timeInSeconds?: number | undefined;
|
|
310
|
-
prompt?: string | undefined;
|
|
311
|
-
statusComponents?: {
|
|
312
|
-
id: string;
|
|
313
|
-
name: string;
|
|
314
|
-
schema: {
|
|
315
|
-
type: "object";
|
|
316
|
-
properties: Record<string, any>;
|
|
317
|
-
required?: string[] | undefined;
|
|
318
|
-
};
|
|
319
|
-
description?: string | undefined;
|
|
320
|
-
}[] | undefined;
|
|
321
|
-
} | null;
|
|
322
|
-
contextConfigId: string | null;
|
|
323
|
-
}>;
|
|
324
|
-
export declare const updateAgentGraph: (db: DatabaseClient) => (params: {
|
|
325
|
-
scopes: ScopeConfig;
|
|
326
|
-
graphId: string;
|
|
327
|
-
data: AgentGraphUpdate;
|
|
328
|
-
}) => Promise<{
|
|
329
|
-
tenantId: string;
|
|
330
|
-
projectId: string;
|
|
331
|
-
id: string;
|
|
332
|
-
name: string;
|
|
333
|
-
description: string | null;
|
|
334
|
-
createdAt: string;
|
|
335
|
-
updatedAt: string;
|
|
336
|
-
defaultAgentId: string;
|
|
337
|
-
models: {
|
|
338
|
-
base?: {
|
|
339
|
-
model?: string | undefined;
|
|
340
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
341
|
-
} | undefined;
|
|
342
|
-
structuredOutput?: {
|
|
343
|
-
model?: string | undefined;
|
|
344
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
345
|
-
} | undefined;
|
|
346
|
-
summarizer?: {
|
|
347
|
-
model?: string | undefined;
|
|
348
|
-
providerOptions?: Record<string, Record<string, unknown>> | undefined;
|
|
349
|
-
} | undefined;
|
|
350
|
-
} | null;
|
|
351
|
-
stopWhen: {
|
|
352
|
-
transferCountIs?: number;
|
|
353
|
-
} | null;
|
|
354
|
-
graphPrompt: string | null;
|
|
355
|
-
statusUpdates: {
|
|
356
|
-
enabled?: boolean | undefined;
|
|
357
|
-
numEvents?: number | undefined;
|
|
358
|
-
timeInSeconds?: number | undefined;
|
|
359
|
-
prompt?: string | undefined;
|
|
360
|
-
statusComponents?: {
|
|
361
|
-
id: string;
|
|
362
|
-
name: string;
|
|
363
|
-
schema: {
|
|
364
|
-
type: "object";
|
|
365
|
-
properties: Record<string, any>;
|
|
366
|
-
required?: string[] | undefined;
|
|
367
|
-
};
|
|
368
|
-
description?: string | undefined;
|
|
369
|
-
}[] | undefined;
|
|
370
|
-
} | null;
|
|
371
|
-
contextConfigId: string | null;
|
|
372
|
-
}>;
|
|
373
|
-
export declare const deleteAgentGraph: (db: DatabaseClient) => (params: {
|
|
374
|
-
scopes: ScopeConfig;
|
|
375
|
-
graphId: string;
|
|
376
|
-
}) => Promise<boolean>;
|
|
377
|
-
/**
|
|
378
|
-
* Helper function to fetch component relationships using efficient joins
|
|
379
|
-
*/
|
|
380
|
-
export declare const fetchComponentRelationships: (db: DatabaseClient) => <T extends Record<string, any>>(scopes: ScopeConfig, agentIds: string[], config: {
|
|
381
|
-
relationTable: any;
|
|
382
|
-
componentTable: any;
|
|
383
|
-
relationIdField: any;
|
|
384
|
-
componentIdField: any;
|
|
385
|
-
selectFields: Record<string, any>;
|
|
386
|
-
}) => Promise<Record<string, T>>;
|
|
387
|
-
export declare const getGraphAgentInfos: (db: DatabaseClient) => ({ scopes, graphId, agentId, }: {
|
|
388
|
-
scopes: ScopeConfig;
|
|
389
|
-
graphId: string;
|
|
390
|
-
agentId: string;
|
|
391
|
-
}) => Promise<{
|
|
392
|
-
id: string;
|
|
393
|
-
name: string;
|
|
394
|
-
description: string;
|
|
395
|
-
}[]>;
|
|
396
|
-
export declare const getFullGraphDefinition: (db: DatabaseClient) => ({ scopes: { tenantId, projectId }, graphId, }: {
|
|
397
|
-
scopes: ScopeConfig;
|
|
398
|
-
graphId: string;
|
|
399
|
-
}) => Promise<FullGraphDefinition | null>;
|
|
400
|
-
/**
|
|
401
|
-
* Upsert an agent graph (create if it doesn't exist, update if it does)
|
|
402
|
-
*/
|
|
403
|
-
export declare const upsertAgentGraph: (db: DatabaseClient) => (params: {
|
|
404
|
-
data: AgentGraphInsert;
|
|
405
|
-
}) => Promise<any>;
|
|
406
|
-
//# sourceMappingURL=agentGraphs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agentGraphs.d.ts","sourceRoot":"","sources":["../../src/data-access/agentGraphs.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CA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