@inkeep/agents-core 0.0.0-dev-20251012022558 → 0.0.0-dev-20251012045242
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/README.md +1 -1
- package/dist/{chunk-ASA7FU3H.js → chunk-3GZBRBXP.js} +84 -87
- package/dist/{chunk-JK3LPVOW.js → chunk-3XUV5Q4D.js} +34 -34
- package/dist/{chunk-OEKS3RQI.js → chunk-B6F3RF4T.js} +86 -119
- package/dist/{chunk-H6PMWHNV.js → chunk-SLL6V3AE.js} +12 -12
- package/dist/client-exports.cjs +189 -225
- package/dist/client-exports.d.cts +13 -14
- package/dist/client-exports.d.ts +13 -14
- package/dist/client-exports.js +10 -10
- package/dist/db/schema.cjs +85 -118
- package/dist/db/schema.d.cts +2 -3
- package/dist/db/schema.d.ts +2 -3
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +983 -1038
- package/dist/index.d.cts +208 -208
- package/dist/index.d.ts +208 -208
- package/dist/index.js +744 -762
- package/dist/{schema-ULFEZCOL.d.cts → schema-Dp-qgdBT.d.ts} +54 -52
- package/dist/{schema-wbZXiVWb.d.ts → schema-DrDaCn6H.d.cts} +54 -52
- package/dist/{signoz-queries-BuiipZTk.d.cts → signoz-queries-CuWMQh1H.d.cts} +10 -10
- package/dist/{signoz-queries-BuiipZTk.d.ts → signoz-queries-CuWMQh1H.d.ts} +10 -10
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.ts +2 -3
- package/dist/{utility-CyPQ1tC_.d.cts → utility-BxbySenH.d.cts} +152 -301
- package/dist/{utility-CyPQ1tC_.d.ts → utility-BxbySenH.d.ts} +152 -301
- package/dist/validation/index.cjs +212 -249
- package/dist/validation/index.d.cts +12 -13
- package/dist/validation/index.d.ts +12 -13
- package/dist/validation/index.js +2 -2
- package/drizzle/0007_mighty_typhoid_mary.sql +227 -0
- package/drizzle/meta/0007_snapshot.json +2766 -0
- package/drizzle/meta/_journal.json +7 -0
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from './constants/models.cjs';
|
|
2
|
-
export { h as ACTIVITY_NAMES, f as ACTIVITY_STATUS, e as ACTIVITY_TYPES, g as AGENT_IDS, o as AGGREGATE_OPERATORS, A as AI_OPERATIONS, i as AI_TOOL_TYPES, n as DATA_SOURCES, j 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, l as ORDER_DIRECTIONS, P as PANEL_TYPES, p as QUERY_DEFAULTS, k as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, m as QUERY_TYPES, R as REDUCE_OPERATIONS, d 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 } from './signoz-queries-
|
|
2
|
+
export { h as ACTIVITY_NAMES, f as ACTIVITY_STATUS, e as ACTIVITY_TYPES, g as AGENT_IDS, o as AGGREGATE_OPERATORS, A as AI_OPERATIONS, i as AI_TOOL_TYPES, n as DATA_SOURCES, j 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, l as ORDER_DIRECTIONS, P as PANEL_TYPES, p as QUERY_DEFAULTS, k as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, m as QUERY_TYPES, R as REDUCE_OPERATIONS, d 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 } from './signoz-queries-CuWMQh1H.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import {
|
|
5
|
-
export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, aG as AgentCapabilities, aU as AgentCard, dl as AgentConversationHistoryConfig, d6 as AgentDefinition, bU as AgentGraphApiInsert, dY as AgentGraphApiInsertSchema, bT as AgentGraphApiSelect, dX as AgentGraphApiSelectSchema, bV as AgentGraphApiUpdate, dZ as AgentGraphApiUpdateSchema, dV as AgentGraphInsertSchema, bS as AgentGraphSelect, dU as AgentGraphSelectSchema, dW as AgentGraphUpdateSchema, aH as AgentProvider, aI as AgentSkill, f0 as AllAgentSchema, cO as AllAgentSelect, cS as ApiKeyApiCreationResponse, f5 as ApiKeyApiCreationResponseSchema, cQ as ApiKeyApiInsert, f6 as ApiKeyApiInsertSchema, cP as ApiKeyApiSelect, f4 as ApiKeyApiSelectSchema, cR as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f2 as ApiKeyInsertSchema, f1 as ApiKeySelectSchema, f3 as ApiKeyUpdateSchema, cD as ArtifactComponentApiInsert, eO as ArtifactComponentApiInsertSchema, cC as ArtifactComponentApiSelect, eN as ArtifactComponentApiSelectSchema, cE as ArtifactComponentApiUpdate, eP as ArtifactComponentApiUpdateSchema, eL as ArtifactComponentInsertSchema, eK as ArtifactComponentSelectSchema, eM as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, d4 as CanUseItem, fO as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cr as ContextCacheApiInsert, ev as ContextCacheApiInsertSchema, cq as ContextCacheApiSelect, eu as ContextCacheApiSelectSchema, cs as ContextCacheApiUpdate, ew as ContextCacheApiUpdateSchema, dm as ContextCacheEntry, es as ContextCacheInsertSchema, er as ContextCacheSelectSchema, cp as ContextCacheUpdate, et as ContextCacheUpdateSchema, cl as ContextConfigApiInsert, fy as ContextConfigApiInsertSchema, ck as ContextConfigApiSelect, fx as ContextConfigApiSelectSchema, cm as ContextConfigApiUpdate, fz as ContextConfigApiUpdateSchema, fv as ContextConfigInsertSchema, fu as ContextConfigSelectSchema, fw as ContextConfigUpdateSchema, ce as ConversationApiInsert, ej as ConversationApiInsertSchema, cd as ConversationApiSelect, ei as ConversationApiSelectSchema, cf as ConversationApiUpdate, ek as ConversationApiUpdateSchema, eg as ConversationInsertSchema, dk as ConversationScopeOptions, ef as ConversationSelectSchema, eh as ConversationUpdateSchema, fb as CredentialReferenceApiInsertSchema, cT as CredentialReferenceApiSelect, fa as CredentialReferenceApiSelectSchema, cU as CredentialReferenceApiUpdate, fc as CredentialReferenceApiUpdateSchema, f8 as CredentialReferenceInsertSchema, f7 as CredentialReferenceSelectSchema, f9 as CredentialReferenceUpdateSchema, cu as DataComponentApiInsert, eC as DataComponentApiInsertSchema, ct as DataComponentApiSelect, eB as DataComponentApiSelectSchema, cv as DataComponentApiUpdate, eD as DataComponentApiUpdateSchema, ez as DataComponentBaseSchema, ey as DataComponentInsertSchema, ex as DataComponentSelectSchema, eA as DataComponentUpdateSchema, aE as DataPart, fU as ErrorResponseSchema, fV as ExistsResponseSchema, cM as ExternalAgentApiInsert, e_ as ExternalAgentApiInsertSchema, cL as ExternalAgentApiSelect, eZ as ExternalAgentApiSelectSchema, cN as ExternalAgentApiUpdate, e$ as ExternalAgentApiUpdateSchema, eX as ExternalAgentInsertSchema, eW as ExternalAgentSelectSchema, eY as ExternalAgentUpdateSchema, bR as ExternalSubAgentRelationApiInsert, dT as ExternalSubAgentRelationApiInsertSchema, dS as ExternalSubAgentRelationInsertSchema, co as FetchConfig, fs as FetchConfigSchema, cn as FetchDefinition, ft as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d3 as FullGraphAgentInsert, a as FullGraphAgentInsertSchema, fP as FullGraphDefinitionSchema, g1 as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, ca as FunctionApiSelect, i as FunctionApiSelectSchema, cb as FunctionApiUpdate, j as FunctionApiUpdateSchema, c8 as FunctionInsert, fq as FunctionInsertSchema, c7 as FunctionSelect, fp as FunctionSelectSchema, fn as FunctionToolApiInsertSchema, cc as FunctionToolApiSelect, fm as FunctionToolApiSelectSchema, fo as FunctionToolApiUpdateSchema, dE as FunctionToolConfig, dD as FunctionToolConfigSchema, fk as FunctionToolInsertSchema, fj as FunctionToolSelectSchema, fl as FunctionToolUpdateSchema, c9 as FunctionUpdate, fr as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, d as GraphStopWhen, G as GraphStopWhenSchema, fQ as GraphWithinContextOfProjectSchema, aL as HTTPAuthSecurityScheme, g2 as HeadersScopeSchema, aP as ImplicitOAuthFlow, d5 as InternalAgentDefinition, b2 as InternalError, b8 as InvalidAgentResponseError, b1 as InvalidParamsError, a$ as InvalidRequestError, a_ as JSONParseError, bj as JSONRPCError, bl as JSONRPCErrorResponse, bh as JSONRPCMessage, bi as JSONRPCRequest, bk as JSONRPCResult, d1 as LedgerArtifactApiInsert, fK as LedgerArtifactApiInsertSchema, d0 as LedgerArtifactApiSelect, fJ as LedgerArtifactApiSelectSchema, d2 as LedgerArtifactApiUpdate, fL as LedgerArtifactApiUpdateSchema, c_ as LedgerArtifactInsert, fH as LedgerArtifactInsertSchema, fG as LedgerArtifactSelectSchema, c$ as LedgerArtifactUpdate, fI as LedgerArtifactUpdateSchema, fS as ListResponseSchema, dx as MAX_ID_LENGTH, dv as MCPServerType, fe as MCPToolConfigSchema, dw as MIN_ID_LENGTH, dn as McpAuthType, dp as McpServerAuth, dr as McpServerCapabilities, ds as McpToolDefinition, ec as McpToolDefinitionSchema, fd as McpToolSchema, dq as McpTransportConfig, ea as McpTransportConfigSchema, aV as Message, ci as MessageApiInsert, ep as MessageApiInsertSchema, ch as MessageApiSelect, eo as MessageApiSelectSchema, cj as MessageApiUpdate, eq as MessageApiUpdateSchema, em as MessageInsertSchema, df as MessageMode, bH as MessagePart, de as MessageRole, cg as MessageSelect, el as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, dd as MessageType, en as MessageUpdateSchema, b0 as MethodNotFoundError, dA as ModelSchema, f as ModelSettings, M as ModelSettingsSchema, dg as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, db as Pagination, gb as PaginationQueryParamsSchema, fR as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, d9 as ProjectApiInsert, f$ as ProjectApiInsertSchema, d8 as ProjectApiSelect, f_ as ProjectApiSelectSchema, da as ProjectApiUpdate, g0 as ProjectApiUpdateSchema, fY as ProjectInsertSchema, dB as ProjectModelSchema, dh as ProjectModels, fX as ProjectSelectSchema, fZ as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, fW as RemovedResponseSchema, dC as SandboxConfig, k as SandboxConfigSchema, aT as SecurityScheme, aJ as SecuritySchemeBase, bm as SendMessageRequest, bu as SendMessageResponse, bt as SendMessageSuccessResponse, bn as SendStreamingMessageRequest, bw as SendStreamingMessageResponse, bv as SendStreamingMessageSuccessResponse, bq as SetTaskPushNotificationConfigRequest, bC as SetTaskPushNotificationConfigResponse, bB as SetTaskPushNotificationConfigSuccessResponse, fT as SingleResponseSchema, dj as StatusComponent, fM as StatusComponentSchema, fN as StatusUpdateSchema, di as StatusUpdateSettings, c as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dJ as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dI as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dK as SubAgentApiUpdateSchema, cJ as SubAgentArtifactComponentApiInsert, eU as SubAgentArtifactComponentApiInsertSchema, cI as SubAgentArtifactComponentApiSelect, eT as SubAgentArtifactComponentApiSelectSchema, cK as SubAgentArtifactComponentApiUpdate, eV as SubAgentArtifactComponentApiUpdateSchema, cG as SubAgentArtifactComponentInsert, eR as SubAgentArtifactComponentInsertSchema, cF as SubAgentArtifactComponentSelect, eQ as SubAgentArtifactComponentSelectSchema, cH as SubAgentArtifactComponentUpdate, eS as SubAgentArtifactComponentUpdateSchema, cA as SubAgentDataComponentApiInsert, eI as SubAgentDataComponentApiInsertSchema, cz as SubAgentDataComponentApiSelect, eH as SubAgentDataComponentApiSelectSchema, cB as SubAgentDataComponentApiUpdate, eJ as SubAgentDataComponentApiUpdateSchema, cx as SubAgentDataComponentInsert, eF as SubAgentDataComponentInsertSchema, cw as SubAgentDataComponentSelect, eE as SubAgentDataComponentSelectSchema, cy as SubAgentDataComponentUpdate, eG as SubAgentDataComponentUpdateSchema, dG as SubAgentInsertSchema, bO as SubAgentRelationApiInsert, dP as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dO as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dQ as SubAgentRelationApiUpdateSchema, dM as SubAgentRelationInsertSchema, bQ as SubAgentRelationQuery, dR as SubAgentRelationQuerySchema, bM as SubAgentRelationSelect, dL as SubAgentRelationSelectSchema, dN as SubAgentRelationUpdateSchema, dF as SubAgentSelectSchema, e as SubAgentStopWhen, b as SubAgentStopWhenSchema, cY as SubAgentToolRelationApiInsert, fE as SubAgentToolRelationApiInsertSchema, cX as SubAgentToolRelationApiSelect, fD as SubAgentToolRelationApiSelectSchema, cZ as SubAgentToolRelationApiUpdate, fF as SubAgentToolRelationApiUpdateSchema, cW as SubAgentToolRelationInsert, fB as SubAgentToolRelationInsertSchema, cV as SubAgentToolRelationSelect, fA as SubAgentToolRelationSelectSchema, fC as SubAgentToolRelationUpdateSchema, dH as SubAgentUpdateSchema, dc as SummaryEvent, dt as TOOL_STATUS_VALUES, aX as Task, bY as TaskApiInsert, e2 as TaskApiInsertSchema, bX as TaskApiSelect, e1 as TaskApiSelectSchema, bZ as TaskApiUpdate, e3 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, d$ as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c2 as TaskRelationApiInsert, e8 as TaskRelationApiInsertSchema, c1 as TaskRelationApiSelect, e7 as TaskRelationApiSelectSchema, c3 as TaskRelationApiUpdate, e9 as TaskRelationApiUpdateSchema, b$ as TaskRelationInsert, e5 as TaskRelationInsertSchema, b_ as TaskRelationSelect, e4 as TaskRelationSelectSchema, c0 as TaskRelationUpdate, e6 as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, d_ as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bW as TaskUpdate, e0 as TaskUpdateSchema, g4 as TenantIdParamsSchema, g3 as TenantParamsSchema, g8 as TenantProjectGraphIdParamsSchema, g7 as TenantProjectGraphParamsSchema, ga as TenantProjectGraphSubAgentIdParamsSchema, g9 as TenantProjectGraphSubAgentParamsSchema, g6 as TenantProjectIdParamsSchema, g5 as TenantProjectParamsSchema, az as TextPart, c5 as ToolApiInsert, fh as ToolApiInsertSchema, c4 as ToolApiSelect, fg as ToolApiSelectSchema, c6 as ToolApiUpdate, fi as ToolApiUpdateSchema, d7 as ToolDefinition, ee as ToolInsertSchema, ed as ToolSelectSchema, eb as ToolStatusSchema, ff as ToolUpdateSchema, dy as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, du as VALID_RELATION_TYPES, dz as resourceIdSchema } from './utility-CyPQ1tC_.cjs';
|
|
4
|
+
import { s as CredentialReferenceApiInsert, t as ContextConfigSelect, m as ContextFetchDefinition, i as MCPTransportType, u as MCPToolConfig, v as AgentScopeConfig, C as ConversationHistoryConfig, w as ProjectScopeConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as FullAgentDefinition, D as AgentSelect, E as ApiKeySelect, G as ApiKeyInsert, H as ApiKeyUpdate, I as CreateApiKeyParams, J as ApiKeyCreateResult, K as ArtifactComponentSelect, L as ArtifactComponentInsert, N as ArtifactComponentUpdate, O as SubAgentScopeConfig, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, p as ConversationMetadata, Y as ConversationUpdate, Z as CredentialReferenceSelect, _ as ToolSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, a7 as FunctionApiInsert, a8 as FunctionToolApiInsert, a9 as FunctionToolApiUpdate, aa as Artifact, ab as LedgerArtifactSelect, r as MessageMetadata, q as MessageContent, ac as MessageVisibility, ad as MessageInsert, ae as MessageUpdate, af as FullProjectDefinition, ag as ProjectInfo, ah as ProjectSelect, ai as PaginationResult, aj as ProjectResourceCounts, ak as ProjectInsert, al as ProjectUpdate, am as SubAgentRelationInsert, an as ExternalSubAgentRelationInsert, ao as SubAgentRelationUpdate, ap as SubAgentToolRelationUpdate, n as ToolMcpConfig, o as ToolServerCapabilities, aq as SubAgentInsert, ar as SubAgentUpdate, as as SubAgentSelect, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-BxbySenH.cjs';
|
|
5
|
+
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bU as AgentApiInsert, dY as AgentApiInsertSchema, bT as AgentApiSelect, dX as AgentApiSelectSchema, bV as AgentApiUpdate, dZ as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dl as AgentConversationHistoryConfig, dV as AgentInsertSchema, aI as AgentProvider, dU as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dW as AgentUpdateSchema, fP as AgentWithinContextOfProjectSchema, f0 as AllAgentSchema, cO as AllAgentSelect, cS as ApiKeyApiCreationResponse, f5 as ApiKeyApiCreationResponseSchema, cQ as ApiKeyApiInsert, f6 as ApiKeyApiInsertSchema, cP as ApiKeyApiSelect, f4 as ApiKeyApiSelectSchema, cR as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f2 as ApiKeyInsertSchema, f1 as ApiKeySelectSchema, f3 as ApiKeyUpdateSchema, cD as ArtifactComponentApiInsert, eO as ArtifactComponentApiInsertSchema, cC as ArtifactComponentApiSelect, eN as ArtifactComponentApiSelectSchema, cE as ArtifactComponentApiUpdate, eP as ArtifactComponentApiUpdateSchema, eL as ArtifactComponentInsertSchema, eK as ArtifactComponentSelectSchema, eM as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, d4 as CanUseItem, fO as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cr as ContextCacheApiInsert, ev as ContextCacheApiInsertSchema, cq as ContextCacheApiSelect, eu as ContextCacheApiSelectSchema, cs as ContextCacheApiUpdate, ew as ContextCacheApiUpdateSchema, dm as ContextCacheEntry, es as ContextCacheInsertSchema, er as ContextCacheSelectSchema, cp as ContextCacheUpdate, et as ContextCacheUpdateSchema, cl as ContextConfigApiInsert, fy as ContextConfigApiInsertSchema, ck as ContextConfigApiSelect, fx as ContextConfigApiSelectSchema, cm as ContextConfigApiUpdate, fz as ContextConfigApiUpdateSchema, fv as ContextConfigInsertSchema, fu as ContextConfigSelectSchema, fw as ContextConfigUpdateSchema, ce as ConversationApiInsert, ej as ConversationApiInsertSchema, cd as ConversationApiSelect, ei as ConversationApiSelectSchema, cf as ConversationApiUpdate, ek as ConversationApiUpdateSchema, eg as ConversationInsertSchema, dk as ConversationScopeOptions, ef as ConversationSelectSchema, eh as ConversationUpdateSchema, fb as CredentialReferenceApiInsertSchema, cT as CredentialReferenceApiSelect, fa as CredentialReferenceApiSelectSchema, cU as CredentialReferenceApiUpdate, fc as CredentialReferenceApiUpdateSchema, f8 as CredentialReferenceInsertSchema, f7 as CredentialReferenceSelectSchema, f9 as CredentialReferenceUpdateSchema, cu as DataComponentApiInsert, eC as DataComponentApiInsertSchema, ct as DataComponentApiSelect, eB as DataComponentApiSelectSchema, cv as DataComponentApiUpdate, eD as DataComponentApiUpdateSchema, ez as DataComponentBaseSchema, ey as DataComponentInsertSchema, ex as DataComponentSelectSchema, eA as DataComponentUpdateSchema, aF as DataPart, fT as ErrorResponseSchema, fU as ExistsResponseSchema, e_ as ExternalAgentApiInsertSchema, cL as ExternalAgentApiSelect, eZ as ExternalAgentApiSelectSchema, cN as ExternalAgentApiUpdate, e$ as ExternalAgentApiUpdateSchema, eX as ExternalAgentInsertSchema, eW as ExternalAgentSelectSchema, eY as ExternalAgentUpdateSchema, cM as ExternalSubAgentApiInsert, bS as ExternalSubAgentRelationApiInsert, dT as ExternalSubAgentRelationApiInsertSchema, dS as ExternalSubAgentRelationInsertSchema, co as FetchConfig, fs as FetchConfigSchema, cn as FetchDefinition, ft as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, d3 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, g0 as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, ca as FunctionApiSelect, j as FunctionApiSelectSchema, cb as FunctionApiUpdate, k as FunctionApiUpdateSchema, c8 as FunctionInsert, fq as FunctionInsertSchema, c7 as FunctionSelect, fp as FunctionSelectSchema, fn as FunctionToolApiInsertSchema, cc as FunctionToolApiSelect, fm as FunctionToolApiSelectSchema, fo as FunctionToolApiUpdateSchema, dE as FunctionToolConfig, dD as FunctionToolConfigSchema, fk as FunctionToolInsertSchema, fj as FunctionToolSelectSchema, fl as FunctionToolUpdateSchema, c9 as FunctionUpdate, fr as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, g1 as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, d5 as InternalSubAgentDefinition, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, d1 as LedgerArtifactApiInsert, fK as LedgerArtifactApiInsertSchema, d0 as LedgerArtifactApiSelect, fJ as LedgerArtifactApiSelectSchema, d2 as LedgerArtifactApiUpdate, fL as LedgerArtifactApiUpdateSchema, c_ as LedgerArtifactInsert, fH as LedgerArtifactInsertSchema, fG as LedgerArtifactSelectSchema, c$ as LedgerArtifactUpdate, fI as LedgerArtifactUpdateSchema, fR as ListResponseSchema, dx as MAX_ID_LENGTH, dv as MCPServerType, fe as MCPToolConfigSchema, dw as MIN_ID_LENGTH, dn as McpAuthType, dp as McpServerAuth, dr as McpServerCapabilities, ds as McpToolDefinition, ec as McpToolDefinitionSchema, fd as McpToolSchema, dq as McpTransportConfig, ea as McpTransportConfigSchema, aW as Message, ci as MessageApiInsert, ep as MessageApiInsertSchema, ch as MessageApiSelect, eo as MessageApiSelectSchema, cj as MessageApiUpdate, eq as MessageApiUpdateSchema, em as MessageInsertSchema, df as MessageMode, bI as MessagePart, de as MessageRole, cg as MessageSelect, el as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dd as MessageType, en as MessageUpdateSchema, b1 as MethodNotFoundError, dA as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dg as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, db as Pagination, ga as PaginationQueryParamsSchema, fQ as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, d9 as ProjectApiInsert, f_ as ProjectApiInsertSchema, d8 as ProjectApiSelect, fZ as ProjectApiSelectSchema, da as ProjectApiUpdate, f$ as ProjectApiUpdateSchema, fX as ProjectInsertSchema, dB as ProjectModelSchema, dh as ProjectModels, fW as ProjectSelectSchema, fY as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fV as RemovedResponseSchema, dC as SandboxConfig, l as SandboxConfigSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, fS as SingleResponseSchema, dj as StatusComponent, fM as StatusComponentSchema, fN as StatusUpdateSchema, di as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dJ as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dI as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dK as SubAgentApiUpdateSchema, cJ as SubAgentArtifactComponentApiInsert, eU as SubAgentArtifactComponentApiInsertSchema, cI as SubAgentArtifactComponentApiSelect, eT as SubAgentArtifactComponentApiSelectSchema, cK as SubAgentArtifactComponentApiUpdate, eV as SubAgentArtifactComponentApiUpdateSchema, cG as SubAgentArtifactComponentInsert, eR as SubAgentArtifactComponentInsertSchema, cF as SubAgentArtifactComponentSelect, eQ as SubAgentArtifactComponentSelectSchema, cH as SubAgentArtifactComponentUpdate, eS as SubAgentArtifactComponentUpdateSchema, cA as SubAgentDataComponentApiInsert, eI as SubAgentDataComponentApiInsertSchema, cz as SubAgentDataComponentApiSelect, eH as SubAgentDataComponentApiSelectSchema, cB as SubAgentDataComponentApiUpdate, eJ as SubAgentDataComponentApiUpdateSchema, cx as SubAgentDataComponentInsert, eF as SubAgentDataComponentInsertSchema, cw as SubAgentDataComponentSelect, eE as SubAgentDataComponentSelectSchema, cy as SubAgentDataComponentUpdate, eG as SubAgentDataComponentUpdateSchema, d6 as SubAgentDefinition, dG as SubAgentInsertSchema, bP as SubAgentRelationApiInsert, dP as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dO as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dQ as SubAgentRelationApiUpdateSchema, dM as SubAgentRelationInsertSchema, bR as SubAgentRelationQuery, dR as SubAgentRelationQuerySchema, bN as SubAgentRelationSelect, dL as SubAgentRelationSelectSchema, dN as SubAgentRelationUpdateSchema, dF as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cY as SubAgentToolRelationApiInsert, fE as SubAgentToolRelationApiInsertSchema, cX as SubAgentToolRelationApiSelect, fD as SubAgentToolRelationApiSelectSchema, cZ as SubAgentToolRelationApiUpdate, fF as SubAgentToolRelationApiUpdateSchema, cW as SubAgentToolRelationInsert, fB as SubAgentToolRelationInsertSchema, cV as SubAgentToolRelationSelect, fA as SubAgentToolRelationSelectSchema, fC as SubAgentToolRelationUpdateSchema, dH as SubAgentUpdateSchema, dc as SummaryEvent, dt as TOOL_STATUS_VALUES, aY as Task, bY as TaskApiInsert, e2 as TaskApiInsertSchema, bX as TaskApiSelect, e1 as TaskApiSelectSchema, bZ as TaskApiUpdate, e3 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, d$ as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c2 as TaskRelationApiInsert, e8 as TaskRelationApiInsertSchema, c1 as TaskRelationApiSelect, e7 as TaskRelationApiSelectSchema, c3 as TaskRelationApiUpdate, e9 as TaskRelationApiUpdateSchema, b$ as TaskRelationInsert, e5 as TaskRelationInsertSchema, b_ as TaskRelationSelect, e4 as TaskRelationSelectSchema, c0 as TaskRelationUpdate, e6 as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, d_ as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bW as TaskUpdate, e0 as TaskUpdateSchema, g3 as TenantIdParamsSchema, g2 as TenantParamsSchema, g7 as TenantProjectAgentIdParamsSchema, g6 as TenantProjectAgentParamsSchema, g9 as TenantProjectAgentSubAgentIdParamsSchema, g8 as TenantProjectAgentSubAgentParamsSchema, g5 as TenantProjectIdParamsSchema, g4 as TenantProjectParamsSchema, aA as TextPart, c5 as ToolApiInsert, fh as ToolApiInsertSchema, c4 as ToolApiSelect, fg as ToolApiSelectSchema, c6 as ToolApiUpdate, fi as ToolApiUpdateSchema, d7 as ToolDefinition, ee as ToolInsertSchema, ed as ToolSelectSchema, eb as ToolStatusSchema, ff as ToolUpdateSchema, dy as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, du as VALID_RELATION_TYPES, dz as resourceIdSchema } from './utility-BxbySenH.cjs';
|
|
6
6
|
import { CredentialStore } from './types/index.cjs';
|
|
7
7
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
|
|
8
8
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
9
|
-
import { s as schema } from './schema-
|
|
10
|
-
export { q as agentFunctionToolRelations, U as agentFunctionToolRelationsRelations,
|
|
9
|
+
import { s as schema } from './schema-DrDaCn6H.cjs';
|
|
10
|
+
export { q as agentFunctionToolRelations, U as agentFunctionToolRelationsRelations, 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, 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-DrDaCn6H.cjs';
|
|
11
11
|
import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
|
|
12
12
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
13
13
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
14
14
|
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
15
|
+
import { SQLiteTable } from 'drizzle-orm/sqlite-core';
|
|
15
16
|
import { ValidateFunction } from 'ajv';
|
|
16
17
|
import { Context, Next } from 'hono';
|
|
17
18
|
import { z as z$1 } from '@hono/zod-openapi';
|
|
18
19
|
import { HTTPException } from 'hono/http-exception';
|
|
19
20
|
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './utils/schema-conversion.cjs';
|
|
20
21
|
import { Span, Tracer } from '@opentelemetry/api';
|
|
21
|
-
export { A2AMessageMetadata, A2AMessageMetadataSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, TransferData, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships,
|
|
22
|
+
export { A2AMessageMetadata, A2AMessageMetadataSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, TransferData, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateToolReferences } from './validation/index.cjs';
|
|
22
23
|
export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
|
|
23
24
|
import 'drizzle-zod';
|
|
24
|
-
import 'drizzle-orm/sqlite-core';
|
|
25
25
|
import 'drizzle-orm';
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -104,7 +104,7 @@ interface ContextConfigBuilderOptions<R extends z.ZodTypeAny | undefined = undef
|
|
|
104
104
|
contextVariables?: CV;
|
|
105
105
|
tenantId?: string;
|
|
106
106
|
projectId?: string;
|
|
107
|
-
|
|
107
|
+
agentId?: string;
|
|
108
108
|
baseURL?: string;
|
|
109
109
|
}
|
|
110
110
|
declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extends Record<string, builderFetchDefinition<z.ZodTypeAny>>> {
|
|
@@ -112,19 +112,19 @@ declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extend
|
|
|
112
112
|
private baseURL;
|
|
113
113
|
private tenantId;
|
|
114
114
|
private projectId;
|
|
115
|
-
private
|
|
115
|
+
private agentId;
|
|
116
116
|
constructor(options: ContextConfigBuilderOptions<R, CV>);
|
|
117
117
|
/**
|
|
118
|
-
* Set the context (tenantId, projectId,
|
|
119
|
-
* Called by
|
|
118
|
+
* Set the context (tenantId, projectId, agentId) for this context config
|
|
119
|
+
* Called by agent.setConfig() when the agent is configured
|
|
120
120
|
*/
|
|
121
|
-
setContext(tenantId: string, projectId: string,
|
|
121
|
+
setContext(tenantId: string, projectId: string, agentId: string, baseURL: string): void;
|
|
122
122
|
/**
|
|
123
123
|
* Convert the builder to a plain object for database operations
|
|
124
124
|
*/
|
|
125
125
|
toObject(): ContextConfigSelect;
|
|
126
126
|
getId(): string;
|
|
127
|
-
getHeadersSchema():
|
|
127
|
+
getHeadersSchema(): any;
|
|
128
128
|
getContextVariables(): Record<string, ContextFetchDefinition>;
|
|
129
129
|
withHeadersSchema(schema: any): this;
|
|
130
130
|
/** 4) The function you ship: path autocomplete + validation, returns {{path}} */
|
|
@@ -355,11 +355,11 @@ declare class ContextResolver {
|
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
declare function determineContextTrigger(tenantId: string, projectId: string, conversationId: string, dbClient: DatabaseClient): Promise<'initialization' | 'invocation'>;
|
|
358
|
-
declare function handleContextConfigChange(tenantId: string, projectId: string, conversationId: string,
|
|
359
|
-
declare function handleContextResolution({ tenantId, projectId,
|
|
358
|
+
declare function handleContextConfigChange(tenantId: string, projectId: string, conversationId: string, agentId: string, newContextConfigId: string, dbClient: DatabaseClient, credentialStores?: CredentialStoreRegistry): Promise<void>;
|
|
359
|
+
declare function handleContextResolution({ tenantId, projectId, agentId, conversationId, headers, dbClient, credentialStores, }: {
|
|
360
360
|
tenantId: string;
|
|
361
361
|
projectId: string;
|
|
362
|
-
|
|
362
|
+
agentId: string;
|
|
363
363
|
conversationId: string;
|
|
364
364
|
headers: Record<string, unknown>;
|
|
365
365
|
dbClient: DatabaseClient;
|
|
@@ -820,14 +820,15 @@ declare class CredentialStuffer {
|
|
|
820
820
|
buildMcpServerConfig(context: CredentialContext, tool: MCPToolConfig, storeReference?: CredentialStoreReference, selectedTools?: string[]): Promise<McpServerConfig>;
|
|
821
821
|
}
|
|
822
822
|
|
|
823
|
-
declare const
|
|
824
|
-
scopes:
|
|
823
|
+
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
824
|
+
scopes: AgentScopeConfig;
|
|
825
825
|
}) => Promise<{
|
|
826
826
|
tenantId: string;
|
|
827
827
|
projectId: string;
|
|
828
828
|
id: string;
|
|
829
829
|
name: string;
|
|
830
830
|
description: string | null;
|
|
831
|
+
prompt: string | null;
|
|
831
832
|
createdAt: string;
|
|
832
833
|
updatedAt: string;
|
|
833
834
|
models: {
|
|
@@ -864,16 +865,16 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
|
|
|
864
865
|
} | undefined;
|
|
865
866
|
}[] | undefined;
|
|
866
867
|
} | null;
|
|
867
|
-
graphPrompt: string | null;
|
|
868
868
|
} | null>;
|
|
869
|
-
declare const
|
|
870
|
-
scopes:
|
|
869
|
+
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
870
|
+
scopes: AgentScopeConfig;
|
|
871
871
|
}) => Promise<{
|
|
872
872
|
tenantId: string;
|
|
873
873
|
projectId: string;
|
|
874
874
|
id: string;
|
|
875
875
|
name: string;
|
|
876
876
|
description: string | null;
|
|
877
|
+
prompt: string | null;
|
|
877
878
|
createdAt: string;
|
|
878
879
|
updatedAt: string;
|
|
879
880
|
models: {
|
|
@@ -910,7 +911,6 @@ declare const getAgentGraphWithDefaultSubAgent: (db: DatabaseClient) => (params:
|
|
|
910
911
|
} | undefined;
|
|
911
912
|
}[] | undefined;
|
|
912
913
|
} | null;
|
|
913
|
-
graphPrompt: string | null;
|
|
914
914
|
defaultSubAgent: {
|
|
915
915
|
tenantId: string;
|
|
916
916
|
projectId: string;
|
|
@@ -918,7 +918,7 @@ declare const getAgentGraphWithDefaultSubAgent: (db: DatabaseClient) => (params:
|
|
|
918
918
|
name: string;
|
|
919
919
|
description: string;
|
|
920
920
|
prompt: string;
|
|
921
|
-
|
|
921
|
+
agentId: string;
|
|
922
922
|
createdAt: string;
|
|
923
923
|
updatedAt: string;
|
|
924
924
|
models: {
|
|
@@ -941,7 +941,7 @@ declare const getAgentGraphWithDefaultSubAgent: (db: DatabaseClient) => (params:
|
|
|
941
941
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
942
942
|
} | null;
|
|
943
943
|
} | null>;
|
|
944
|
-
declare const
|
|
944
|
+
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
945
945
|
scopes: ProjectScopeConfig;
|
|
946
946
|
}) => Promise<{
|
|
947
947
|
tenantId: string;
|
|
@@ -949,6 +949,7 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
|
|
|
949
949
|
id: string;
|
|
950
950
|
name: string;
|
|
951
951
|
description: string | null;
|
|
952
|
+
prompt: string | null;
|
|
952
953
|
createdAt: string;
|
|
953
954
|
updatedAt: string;
|
|
954
955
|
models: {
|
|
@@ -985,9 +986,8 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
|
|
|
985
986
|
} | undefined;
|
|
986
987
|
}[] | undefined;
|
|
987
988
|
} | null;
|
|
988
|
-
graphPrompt: string | null;
|
|
989
989
|
}[]>;
|
|
990
|
-
declare const
|
|
990
|
+
declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
991
991
|
scopes: ProjectScopeConfig;
|
|
992
992
|
pagination?: PaginationConfig;
|
|
993
993
|
}) => Promise<{
|
|
@@ -1027,7 +1027,7 @@ declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1027
1027
|
} | undefined;
|
|
1028
1028
|
}[] | undefined;
|
|
1029
1029
|
} | null;
|
|
1030
|
-
|
|
1030
|
+
prompt: string | null;
|
|
1031
1031
|
stopWhen: {
|
|
1032
1032
|
transferCountIs?: number | undefined;
|
|
1033
1033
|
} | null;
|
|
@@ -1042,12 +1042,13 @@ declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1042
1042
|
pages: number;
|
|
1043
1043
|
};
|
|
1044
1044
|
}>;
|
|
1045
|
-
declare const
|
|
1045
|
+
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
1046
1046
|
tenantId: string;
|
|
1047
1047
|
projectId: string;
|
|
1048
1048
|
id: string;
|
|
1049
1049
|
name: string;
|
|
1050
1050
|
description: string | null;
|
|
1051
|
+
prompt: string | null;
|
|
1051
1052
|
createdAt: string;
|
|
1052
1053
|
updatedAt: string;
|
|
1053
1054
|
models: {
|
|
@@ -1084,17 +1085,17 @@ declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert)
|
|
|
1084
1085
|
} | undefined;
|
|
1085
1086
|
}[] | undefined;
|
|
1086
1087
|
} | null;
|
|
1087
|
-
graphPrompt: string | null;
|
|
1088
1088
|
}>;
|
|
1089
|
-
declare const
|
|
1090
|
-
scopes:
|
|
1091
|
-
data:
|
|
1089
|
+
declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
1090
|
+
scopes: AgentScopeConfig;
|
|
1091
|
+
data: AgentUpdate;
|
|
1092
1092
|
}) => Promise<{
|
|
1093
1093
|
tenantId: string;
|
|
1094
1094
|
projectId: string;
|
|
1095
1095
|
id: string;
|
|
1096
1096
|
name: string;
|
|
1097
1097
|
description: string | null;
|
|
1098
|
+
prompt: string | null;
|
|
1098
1099
|
createdAt: string;
|
|
1099
1100
|
updatedAt: string;
|
|
1100
1101
|
models: {
|
|
@@ -1131,40 +1132,39 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
|
|
|
1131
1132
|
} | undefined;
|
|
1132
1133
|
}[] | undefined;
|
|
1133
1134
|
} | null;
|
|
1134
|
-
graphPrompt: string | null;
|
|
1135
1135
|
}>;
|
|
1136
|
-
declare const
|
|
1137
|
-
scopes:
|
|
1136
|
+
declare const deleteAgent: (db: DatabaseClient) => (params: {
|
|
1137
|
+
scopes: AgentScopeConfig;
|
|
1138
1138
|
}) => Promise<boolean>;
|
|
1139
1139
|
/**
|
|
1140
1140
|
* Helper function to fetch component relationships using efficient joins
|
|
1141
1141
|
*/
|
|
1142
|
-
declare const fetchComponentRelationships: (db: DatabaseClient) => <T extends Record<string,
|
|
1143
|
-
relationTable: any
|
|
1144
|
-
componentTable: any
|
|
1145
|
-
relationIdField:
|
|
1146
|
-
componentIdField:
|
|
1147
|
-
subAgentIdField:
|
|
1148
|
-
selectFields: Record<string,
|
|
1142
|
+
declare const fetchComponentRelationships: (db: DatabaseClient) => <T extends Record<string, unknown>>(scopes: ProjectScopeConfig, subAgentIds: string[], config: {
|
|
1143
|
+
relationTable: SQLiteTable<any>;
|
|
1144
|
+
componentTable: SQLiteTable<any>;
|
|
1145
|
+
relationIdField: unknown;
|
|
1146
|
+
componentIdField: unknown;
|
|
1147
|
+
subAgentIdField: unknown;
|
|
1148
|
+
selectFields: Record<string, unknown>;
|
|
1149
1149
|
}) => Promise<Record<string, T>>;
|
|
1150
|
-
declare const
|
|
1150
|
+
declare const getAgentSubAgentInfos: (db: DatabaseClient) => ({ scopes: { tenantId, projectId }, agentId, subAgentId, }: {
|
|
1151
1151
|
scopes: ProjectScopeConfig;
|
|
1152
|
-
|
|
1152
|
+
agentId: string;
|
|
1153
1153
|
subAgentId: string;
|
|
1154
1154
|
}) => Promise<{
|
|
1155
1155
|
id: string;
|
|
1156
1156
|
name: string;
|
|
1157
1157
|
description: string;
|
|
1158
1158
|
}[]>;
|
|
1159
|
-
declare const
|
|
1160
|
-
scopes:
|
|
1161
|
-
}) => Promise<
|
|
1159
|
+
declare const getFullAgentDefinition: (db: DatabaseClient) => ({ scopes: { tenantId, projectId, agentId }, }: {
|
|
1160
|
+
scopes: AgentScopeConfig;
|
|
1161
|
+
}) => Promise<FullAgentDefinition | null>;
|
|
1162
1162
|
/**
|
|
1163
|
-
* Upsert an agent
|
|
1163
|
+
* Upsert an agent (create if it doesn't exist, update if it does)
|
|
1164
1164
|
*/
|
|
1165
|
-
declare const
|
|
1166
|
-
data:
|
|
1167
|
-
}) => Promise<
|
|
1165
|
+
declare const upsertAgent: (db: DatabaseClient) => (params: {
|
|
1166
|
+
data: AgentInsert;
|
|
1167
|
+
}) => Promise<AgentSelect | null>;
|
|
1168
1168
|
|
|
1169
1169
|
declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
1170
1170
|
scopes: ProjectScopeConfig;
|
|
@@ -1174,7 +1174,7 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
1174
1174
|
projectId: string;
|
|
1175
1175
|
id: string;
|
|
1176
1176
|
name: string | null;
|
|
1177
|
-
|
|
1177
|
+
agentId: string;
|
|
1178
1178
|
publicId: string;
|
|
1179
1179
|
keyHash: string;
|
|
1180
1180
|
keyPrefix: string;
|
|
@@ -1188,7 +1188,7 @@ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) =>
|
|
|
1188
1188
|
projectId: string;
|
|
1189
1189
|
id: string;
|
|
1190
1190
|
name: string | null;
|
|
1191
|
-
|
|
1191
|
+
agentId: string;
|
|
1192
1192
|
publicId: string;
|
|
1193
1193
|
keyHash: string;
|
|
1194
1194
|
keyPrefix: string;
|
|
@@ -1199,13 +1199,13 @@ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) =>
|
|
|
1199
1199
|
} | undefined>;
|
|
1200
1200
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
1201
1201
|
scopes: ProjectScopeConfig;
|
|
1202
|
-
|
|
1202
|
+
agentId?: string;
|
|
1203
1203
|
}) => Promise<{
|
|
1204
1204
|
tenantId: string;
|
|
1205
1205
|
projectId: string;
|
|
1206
1206
|
id: string;
|
|
1207
1207
|
name: string | null;
|
|
1208
|
-
|
|
1208
|
+
agentId: string;
|
|
1209
1209
|
publicId: string;
|
|
1210
1210
|
keyHash: string;
|
|
1211
1211
|
keyPrefix: string;
|
|
@@ -1217,7 +1217,7 @@ declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
|
1217
1217
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
1218
1218
|
scopes: ProjectScopeConfig;
|
|
1219
1219
|
pagination?: PaginationConfig;
|
|
1220
|
-
|
|
1220
|
+
agentId?: string;
|
|
1221
1221
|
}) => Promise<{
|
|
1222
1222
|
data: ApiKeySelect[];
|
|
1223
1223
|
pagination: {
|
|
@@ -1232,7 +1232,7 @@ declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Pr
|
|
|
1232
1232
|
projectId: string;
|
|
1233
1233
|
id: string;
|
|
1234
1234
|
name: string | null;
|
|
1235
|
-
|
|
1235
|
+
agentId: string;
|
|
1236
1236
|
publicId: string;
|
|
1237
1237
|
keyHash: string;
|
|
1238
1238
|
keyPrefix: string;
|
|
@@ -1250,7 +1250,7 @@ declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
|
1250
1250
|
projectId: string;
|
|
1251
1251
|
id: string;
|
|
1252
1252
|
name: string | null;
|
|
1253
|
-
|
|
1253
|
+
agentId: string;
|
|
1254
1254
|
publicId: string;
|
|
1255
1255
|
keyHash: string;
|
|
1256
1256
|
keyPrefix: string;
|
|
@@ -1270,7 +1270,7 @@ declare const hasApiKey: (db: DatabaseClient) => (params: {
|
|
|
1270
1270
|
declare const updateApiKeyLastUsed: (db: DatabaseClient) => (id: string) => Promise<void>;
|
|
1271
1271
|
declare const countApiKeys: (db: DatabaseClient) => (params: {
|
|
1272
1272
|
scopes: ProjectScopeConfig;
|
|
1273
|
-
|
|
1273
|
+
agentId?: string;
|
|
1274
1274
|
}) => Promise<number>;
|
|
1275
1275
|
/**
|
|
1276
1276
|
* Create a new API key
|
|
@@ -1348,7 +1348,7 @@ declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
|
|
|
1348
1348
|
id: string;
|
|
1349
1349
|
}) => Promise<boolean>;
|
|
1350
1350
|
declare const getArtifactComponentsForAgent: (db: DatabaseClient) => (params: {
|
|
1351
|
-
scopes:
|
|
1351
|
+
scopes: SubAgentScopeConfig;
|
|
1352
1352
|
}) => Promise<{
|
|
1353
1353
|
id: string;
|
|
1354
1354
|
tenantId: string;
|
|
@@ -1360,56 +1360,56 @@ declare const getArtifactComponentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
1360
1360
|
updatedAt: string;
|
|
1361
1361
|
}[]>;
|
|
1362
1362
|
declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (params: {
|
|
1363
|
-
scopes:
|
|
1363
|
+
scopes: SubAgentScopeConfig;
|
|
1364
1364
|
artifactComponentId: string;
|
|
1365
1365
|
}) => Promise<{
|
|
1366
1366
|
tenantId: string;
|
|
1367
1367
|
projectId: string;
|
|
1368
1368
|
id: string;
|
|
1369
|
-
|
|
1369
|
+
agentId: string;
|
|
1370
1370
|
createdAt: string;
|
|
1371
1371
|
subAgentId: string;
|
|
1372
1372
|
artifactComponentId: string;
|
|
1373
1373
|
}>;
|
|
1374
1374
|
declare const removeArtifactComponentFromAgent: (db: DatabaseClient) => (params: {
|
|
1375
|
-
scopes:
|
|
1375
|
+
scopes: SubAgentScopeConfig;
|
|
1376
1376
|
artifactComponentId: string;
|
|
1377
1377
|
}) => Promise<boolean>;
|
|
1378
1378
|
declare const deleteAgentArtifactComponentRelationByAgent: (db: DatabaseClient) => (params: {
|
|
1379
|
-
scopes:
|
|
1379
|
+
scopes: SubAgentScopeConfig;
|
|
1380
1380
|
}) => Promise<boolean>;
|
|
1381
1381
|
declare const getAgentsUsingArtifactComponent: (db: DatabaseClient) => (params: {
|
|
1382
1382
|
scopes: ProjectScopeConfig;
|
|
1383
1383
|
artifactComponentId: string;
|
|
1384
1384
|
}) => Promise<{
|
|
1385
|
-
|
|
1385
|
+
agentId: string;
|
|
1386
1386
|
subAgentId: string;
|
|
1387
1387
|
createdAt: string;
|
|
1388
1388
|
}[]>;
|
|
1389
1389
|
declare const isArtifactComponentAssociatedWithAgent: (db: DatabaseClient) => (params: {
|
|
1390
|
-
scopes:
|
|
1390
|
+
scopes: SubAgentScopeConfig;
|
|
1391
1391
|
artifactComponentId: string;
|
|
1392
1392
|
}) => Promise<boolean>;
|
|
1393
|
-
declare const
|
|
1394
|
-
scopes:
|
|
1393
|
+
declare const agentHasArtifactComponents: (db: DatabaseClient) => (params: {
|
|
1394
|
+
scopes: AgentScopeConfig;
|
|
1395
1395
|
}) => Promise<boolean>;
|
|
1396
1396
|
declare const countArtifactComponents: (db: DatabaseClient) => (params: {
|
|
1397
1397
|
scopes: ProjectScopeConfig;
|
|
1398
1398
|
}) => Promise<number>;
|
|
1399
1399
|
declare const countArtifactComponentsForAgent: (db: DatabaseClient) => (params: {
|
|
1400
|
-
scopes:
|
|
1400
|
+
scopes: SubAgentScopeConfig;
|
|
1401
1401
|
}) => Promise<number>;
|
|
1402
1402
|
/**
|
|
1403
1403
|
* Upsert agent-artifact component relation (create if it doesn't exist, no-op if it does)
|
|
1404
1404
|
*/
|
|
1405
1405
|
declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (params: {
|
|
1406
|
-
scopes:
|
|
1406
|
+
scopes: SubAgentScopeConfig;
|
|
1407
1407
|
artifactComponentId: string;
|
|
1408
1408
|
}) => Promise<{
|
|
1409
1409
|
tenantId: string;
|
|
1410
1410
|
projectId: string;
|
|
1411
1411
|
id: string;
|
|
1412
|
-
|
|
1412
|
+
agentId: string;
|
|
1413
1413
|
createdAt: string;
|
|
1414
1414
|
subAgentId: string;
|
|
1415
1415
|
artifactComponentId: string;
|
|
@@ -1487,32 +1487,32 @@ declare const getContextConfigCacheEntries: (db: DatabaseClient) => (params: {
|
|
|
1487
1487
|
}) => Promise<ContextCacheSelect[]>;
|
|
1488
1488
|
|
|
1489
1489
|
declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
1490
|
-
scopes:
|
|
1490
|
+
scopes: AgentScopeConfig;
|
|
1491
1491
|
id: string;
|
|
1492
1492
|
}) => Promise<{
|
|
1493
1493
|
tenantId: string;
|
|
1494
1494
|
projectId: string;
|
|
1495
1495
|
id: string;
|
|
1496
|
-
|
|
1496
|
+
agentId: string;
|
|
1497
1497
|
createdAt: string;
|
|
1498
1498
|
updatedAt: string;
|
|
1499
1499
|
headersSchema: unknown;
|
|
1500
1500
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1501
1501
|
} | undefined>;
|
|
1502
1502
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
1503
|
-
scopes:
|
|
1503
|
+
scopes: AgentScopeConfig;
|
|
1504
1504
|
}) => Promise<{
|
|
1505
1505
|
tenantId: string;
|
|
1506
1506
|
projectId: string;
|
|
1507
1507
|
id: string;
|
|
1508
|
-
|
|
1508
|
+
agentId: string;
|
|
1509
1509
|
createdAt: string;
|
|
1510
1510
|
updatedAt: string;
|
|
1511
1511
|
headersSchema: unknown;
|
|
1512
1512
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1513
1513
|
}[]>;
|
|
1514
1514
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
1515
|
-
scopes:
|
|
1515
|
+
scopes: AgentScopeConfig;
|
|
1516
1516
|
pagination?: PaginationConfig;
|
|
1517
1517
|
}) => Promise<{
|
|
1518
1518
|
data: any[];
|
|
@@ -1527,36 +1527,36 @@ declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfi
|
|
|
1527
1527
|
tenantId: string;
|
|
1528
1528
|
projectId: string;
|
|
1529
1529
|
id: string;
|
|
1530
|
-
|
|
1530
|
+
agentId: string;
|
|
1531
1531
|
createdAt: string;
|
|
1532
1532
|
updatedAt: string;
|
|
1533
1533
|
headersSchema: unknown;
|
|
1534
1534
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1535
1535
|
}>;
|
|
1536
1536
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
1537
|
-
scopes:
|
|
1537
|
+
scopes: AgentScopeConfig;
|
|
1538
1538
|
id: string;
|
|
1539
1539
|
data: Partial<ContextConfigUpdate>;
|
|
1540
1540
|
}) => Promise<{
|
|
1541
1541
|
tenantId: string;
|
|
1542
1542
|
projectId: string;
|
|
1543
1543
|
id: string;
|
|
1544
|
-
|
|
1544
|
+
agentId: string;
|
|
1545
1545
|
createdAt: string;
|
|
1546
1546
|
updatedAt: string;
|
|
1547
1547
|
headersSchema: unknown;
|
|
1548
1548
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1549
1549
|
}>;
|
|
1550
1550
|
declare const deleteContextConfig: (db: DatabaseClient) => (params: {
|
|
1551
|
-
scopes:
|
|
1551
|
+
scopes: AgentScopeConfig;
|
|
1552
1552
|
id: string;
|
|
1553
1553
|
}) => Promise<boolean>;
|
|
1554
1554
|
declare const hasContextConfig: (db: DatabaseClient) => (params: {
|
|
1555
|
-
scopes:
|
|
1555
|
+
scopes: AgentScopeConfig;
|
|
1556
1556
|
id: string;
|
|
1557
1557
|
}) => Promise<boolean>;
|
|
1558
1558
|
declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
1559
|
-
scopes:
|
|
1559
|
+
scopes: AgentScopeConfig;
|
|
1560
1560
|
}) => Promise<number>;
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Upsert a context config (create if it doesn't exist, update if it does)
|
|
@@ -1567,7 +1567,7 @@ declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
|
1567
1567
|
tenantId: string;
|
|
1568
1568
|
projectId: string;
|
|
1569
1569
|
id: string;
|
|
1570
|
-
|
|
1570
|
+
agentId: string;
|
|
1571
1571
|
createdAt: string;
|
|
1572
1572
|
updatedAt: string;
|
|
1573
1573
|
headersSchema: unknown;
|
|
@@ -1844,19 +1844,19 @@ declare const deleteDataComponent: (db: DatabaseClient) => (params: {
|
|
|
1844
1844
|
* Get data components for a specific agent
|
|
1845
1845
|
*/
|
|
1846
1846
|
declare const getDataComponentsForAgent: (db: DatabaseClient) => (params: {
|
|
1847
|
-
scopes:
|
|
1847
|
+
scopes: SubAgentScopeConfig;
|
|
1848
1848
|
}) => Promise<DataComponentSelect[]>;
|
|
1849
1849
|
/**
|
|
1850
1850
|
* Associate a data component with an agent
|
|
1851
1851
|
*/
|
|
1852
1852
|
declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params: {
|
|
1853
|
-
scopes:
|
|
1853
|
+
scopes: SubAgentScopeConfig;
|
|
1854
1854
|
dataComponentId: string;
|
|
1855
1855
|
}) => Promise<{
|
|
1856
1856
|
tenantId: string;
|
|
1857
1857
|
projectId: string;
|
|
1858
1858
|
id: string;
|
|
1859
|
-
|
|
1859
|
+
agentId: string;
|
|
1860
1860
|
createdAt: string;
|
|
1861
1861
|
subAgentId: string;
|
|
1862
1862
|
dataComponentId: string;
|
|
@@ -1865,11 +1865,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
1865
1865
|
* Remove association between data component and agent
|
|
1866
1866
|
*/
|
|
1867
1867
|
declare const removeDataComponentFromAgent: (db: DatabaseClient) => (params: {
|
|
1868
|
-
scopes:
|
|
1868
|
+
scopes: SubAgentScopeConfig;
|
|
1869
1869
|
dataComponentId: string;
|
|
1870
1870
|
}) => Promise<boolean>;
|
|
1871
1871
|
declare const deleteAgentDataComponentRelationByAgent: (db: DatabaseClient) => (params: {
|
|
1872
|
-
scopes:
|
|
1872
|
+
scopes: SubAgentScopeConfig;
|
|
1873
1873
|
}) => Promise<boolean>;
|
|
1874
1874
|
/**
|
|
1875
1875
|
* Get all agents that use a specific data component
|
|
@@ -1885,20 +1885,20 @@ declare const getAgentsUsingDataComponent: (db: DatabaseClient) => (params: {
|
|
|
1885
1885
|
* Check if a data component is associated with an agent
|
|
1886
1886
|
*/
|
|
1887
1887
|
declare const isDataComponentAssociatedWithAgent: (db: DatabaseClient) => (params: {
|
|
1888
|
-
scopes:
|
|
1888
|
+
scopes: SubAgentScopeConfig;
|
|
1889
1889
|
dataComponentId: string;
|
|
1890
1890
|
}) => Promise<boolean>;
|
|
1891
1891
|
/**
|
|
1892
1892
|
* Upsert agent-data component relation (create if it doesn't exist, no-op if it does)
|
|
1893
1893
|
*/
|
|
1894
1894
|
declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params: {
|
|
1895
|
-
scopes:
|
|
1895
|
+
scopes: SubAgentScopeConfig;
|
|
1896
1896
|
dataComponentId: string;
|
|
1897
1897
|
}) => Promise<{
|
|
1898
1898
|
tenantId: string;
|
|
1899
1899
|
projectId: string;
|
|
1900
1900
|
id: string;
|
|
1901
|
-
|
|
1901
|
+
agentId: string;
|
|
1902
1902
|
createdAt: string;
|
|
1903
1903
|
subAgentId: string;
|
|
1904
1904
|
dataComponentId: string;
|
|
@@ -1924,27 +1924,27 @@ declare const createExternalAgent: (db: DatabaseClient) => (params: ExternalAgen
|
|
|
1924
1924
|
* Get external agent by ID
|
|
1925
1925
|
*/
|
|
1926
1926
|
declare const getExternalAgent: (db: DatabaseClient) => (params: {
|
|
1927
|
-
scopes:
|
|
1927
|
+
scopes: AgentScopeConfig;
|
|
1928
1928
|
subAgentId: string;
|
|
1929
1929
|
}) => Promise<ExternalAgentSelect | null>;
|
|
1930
1930
|
/**
|
|
1931
1931
|
* Get external agent by base URL
|
|
1932
1932
|
*/
|
|
1933
1933
|
declare const getExternalAgentByUrl: (db: DatabaseClient) => (params: {
|
|
1934
|
-
scopes:
|
|
1934
|
+
scopes: AgentScopeConfig;
|
|
1935
1935
|
baseUrl: string;
|
|
1936
1936
|
}) => Promise<ExternalAgentSelect | null>;
|
|
1937
1937
|
/**
|
|
1938
1938
|
* List external agents for a tenant
|
|
1939
1939
|
*/
|
|
1940
1940
|
declare const listExternalAgents: (db: DatabaseClient) => (params: {
|
|
1941
|
-
scopes:
|
|
1941
|
+
scopes: AgentScopeConfig;
|
|
1942
1942
|
}) => Promise<ExternalAgentSelect[]>;
|
|
1943
1943
|
/**
|
|
1944
1944
|
* List external agents with pagination
|
|
1945
1945
|
*/
|
|
1946
1946
|
declare const listExternalAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
1947
|
-
scopes:
|
|
1947
|
+
scopes: AgentScopeConfig;
|
|
1948
1948
|
pagination?: PaginationConfig;
|
|
1949
1949
|
}) => Promise<{
|
|
1950
1950
|
data: ExternalAgentSelect[];
|
|
@@ -1959,7 +1959,7 @@ declare const listExternalAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1959
1959
|
* Update an existing external agent
|
|
1960
1960
|
*/
|
|
1961
1961
|
declare const updateExternalAgent: (db: DatabaseClient) => (params: {
|
|
1962
|
-
scopes:
|
|
1962
|
+
scopes: AgentScopeConfig;
|
|
1963
1963
|
subAgentId: string;
|
|
1964
1964
|
data: Partial<ExternalAgentUpdate>;
|
|
1965
1965
|
}) => Promise<ExternalAgentSelect | null>;
|
|
@@ -1973,28 +1973,28 @@ declare const upsertExternalAgent: (db: DatabaseClient) => (params: {
|
|
|
1973
1973
|
* Delete an external agent
|
|
1974
1974
|
*/
|
|
1975
1975
|
declare const deleteExternalAgent: (db: DatabaseClient) => (params: {
|
|
1976
|
-
scopes:
|
|
1976
|
+
scopes: AgentScopeConfig;
|
|
1977
1977
|
subAgentId: string;
|
|
1978
1978
|
}) => Promise<boolean>;
|
|
1979
1979
|
/**
|
|
1980
1980
|
* Check if an external agent exists
|
|
1981
1981
|
*/
|
|
1982
1982
|
declare const externalAgentExists: (db: DatabaseClient) => (params: {
|
|
1983
|
-
scopes:
|
|
1983
|
+
scopes: AgentScopeConfig;
|
|
1984
1984
|
subAgentId: string;
|
|
1985
1985
|
}) => Promise<boolean>;
|
|
1986
1986
|
/**
|
|
1987
1987
|
* Check if an external agent exists by URL
|
|
1988
1988
|
*/
|
|
1989
1989
|
declare const externalAgentUrlExists: (db: DatabaseClient) => (params: {
|
|
1990
|
-
scopes:
|
|
1990
|
+
scopes: AgentScopeConfig;
|
|
1991
1991
|
baseUrl: string;
|
|
1992
1992
|
}) => Promise<boolean>;
|
|
1993
1993
|
/**
|
|
1994
1994
|
* Count external agents for a tenant
|
|
1995
1995
|
*/
|
|
1996
1996
|
declare const countExternalAgents: (db: DatabaseClient) => (params: {
|
|
1997
|
-
scopes:
|
|
1997
|
+
scopes: AgentScopeConfig;
|
|
1998
1998
|
}) => Promise<number>;
|
|
1999
1999
|
|
|
2000
2000
|
/**
|
|
@@ -2026,10 +2026,10 @@ declare const deleteFunction: (db: DatabaseClient) => (params: {
|
|
|
2026
2026
|
}) => Promise<void>;
|
|
2027
2027
|
|
|
2028
2028
|
/**
|
|
2029
|
-
* Get a function tool by ID (
|
|
2029
|
+
* Get a function tool by ID (agent-scoped)
|
|
2030
2030
|
*/
|
|
2031
2031
|
declare const getFunctionToolById: (db: DatabaseClient) => (params: {
|
|
2032
|
-
scopes:
|
|
2032
|
+
scopes: AgentScopeConfig;
|
|
2033
2033
|
functionToolId: string;
|
|
2034
2034
|
}) => Promise<{
|
|
2035
2035
|
createdAt: string;
|
|
@@ -2037,16 +2037,16 @@ declare const getFunctionToolById: (db: DatabaseClient) => (params: {
|
|
|
2037
2037
|
name: string;
|
|
2038
2038
|
description: string | null;
|
|
2039
2039
|
functionId: string;
|
|
2040
|
-
|
|
2040
|
+
agentId: string;
|
|
2041
2041
|
projectId: string;
|
|
2042
2042
|
tenantId: string;
|
|
2043
2043
|
id: string;
|
|
2044
2044
|
}>;
|
|
2045
2045
|
/**
|
|
2046
|
-
* List function tools (
|
|
2046
|
+
* List function tools (agent-scoped)
|
|
2047
2047
|
*/
|
|
2048
2048
|
declare const listFunctionTools: (db: DatabaseClient) => (params: {
|
|
2049
|
-
scopes:
|
|
2049
|
+
scopes: AgentScopeConfig;
|
|
2050
2050
|
pagination?: PaginationConfig;
|
|
2051
2051
|
}) => Promise<{
|
|
2052
2052
|
data: {
|
|
@@ -2055,7 +2055,7 @@ declare const listFunctionTools: (db: DatabaseClient) => (params: {
|
|
|
2055
2055
|
name: string;
|
|
2056
2056
|
description: string | null;
|
|
2057
2057
|
functionId: string;
|
|
2058
|
-
|
|
2058
|
+
agentId: string;
|
|
2059
2059
|
projectId: string;
|
|
2060
2060
|
tenantId: string;
|
|
2061
2061
|
id: string;
|
|
@@ -2068,27 +2068,27 @@ declare const listFunctionTools: (db: DatabaseClient) => (params: {
|
|
|
2068
2068
|
};
|
|
2069
2069
|
}>;
|
|
2070
2070
|
/**
|
|
2071
|
-
* Create a function tool (
|
|
2071
|
+
* Create a function tool (agent-scoped)
|
|
2072
2072
|
*/
|
|
2073
2073
|
declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
2074
2074
|
data: FunctionToolApiInsert;
|
|
2075
|
-
scopes:
|
|
2075
|
+
scopes: AgentScopeConfig;
|
|
2076
2076
|
}) => Promise<{
|
|
2077
2077
|
tenantId: string;
|
|
2078
2078
|
projectId: string;
|
|
2079
2079
|
id: string;
|
|
2080
2080
|
name: string;
|
|
2081
2081
|
description: string | null;
|
|
2082
|
-
|
|
2082
|
+
agentId: string;
|
|
2083
2083
|
createdAt: string;
|
|
2084
2084
|
updatedAt: string;
|
|
2085
2085
|
functionId: string;
|
|
2086
2086
|
}>;
|
|
2087
2087
|
/**
|
|
2088
|
-
* Update a function tool (
|
|
2088
|
+
* Update a function tool (agent-scoped)
|
|
2089
2089
|
*/
|
|
2090
2090
|
declare const updateFunctionTool: (db: DatabaseClient) => (params: {
|
|
2091
|
-
scopes:
|
|
2091
|
+
scopes: AgentScopeConfig;
|
|
2092
2092
|
functionToolId: string;
|
|
2093
2093
|
data: FunctionToolApiUpdate;
|
|
2094
2094
|
}) => Promise<{
|
|
@@ -2097,16 +2097,16 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2097
2097
|
id: string;
|
|
2098
2098
|
name: string;
|
|
2099
2099
|
description: string | null;
|
|
2100
|
-
|
|
2100
|
+
agentId: string;
|
|
2101
2101
|
createdAt: string;
|
|
2102
2102
|
updatedAt: string;
|
|
2103
2103
|
functionId: string;
|
|
2104
2104
|
}>;
|
|
2105
2105
|
/**
|
|
2106
|
-
* Delete a function tool (
|
|
2106
|
+
* Delete a function tool (agent-scoped)
|
|
2107
2107
|
*/
|
|
2108
2108
|
declare const deleteFunctionTool: (db: DatabaseClient) => (params: {
|
|
2109
|
-
scopes:
|
|
2109
|
+
scopes: AgentScopeConfig;
|
|
2110
2110
|
functionToolId: string;
|
|
2111
2111
|
}) => Promise<boolean>;
|
|
2112
2112
|
/**
|
|
@@ -2114,14 +2114,14 @@ declare const deleteFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2114
2114
|
*/
|
|
2115
2115
|
declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
2116
2116
|
data: FunctionToolApiInsert;
|
|
2117
|
-
scopes:
|
|
2117
|
+
scopes: AgentScopeConfig;
|
|
2118
2118
|
}) => Promise<{
|
|
2119
2119
|
tenantId: string;
|
|
2120
2120
|
projectId: string;
|
|
2121
2121
|
id: string;
|
|
2122
2122
|
name: string;
|
|
2123
2123
|
description: string | null;
|
|
2124
|
-
|
|
2124
|
+
agentId: string;
|
|
2125
2125
|
createdAt: string;
|
|
2126
2126
|
updatedAt: string;
|
|
2127
2127
|
functionId: string;
|
|
@@ -2130,7 +2130,7 @@ declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
|
2130
2130
|
scopes: {
|
|
2131
2131
|
tenantId: string;
|
|
2132
2132
|
projectId: string;
|
|
2133
|
-
|
|
2133
|
+
agentId: string;
|
|
2134
2134
|
};
|
|
2135
2135
|
subAgentId: string;
|
|
2136
2136
|
}) => Promise<{
|
|
@@ -2140,7 +2140,7 @@ declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
|
2140
2140
|
name: string;
|
|
2141
2141
|
description: string | null;
|
|
2142
2142
|
functionId: string;
|
|
2143
|
-
|
|
2143
|
+
agentId: string;
|
|
2144
2144
|
projectId: string;
|
|
2145
2145
|
tenantId: string;
|
|
2146
2146
|
id: string;
|
|
@@ -2156,7 +2156,7 @@ declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
|
2156
2156
|
* Upsert an agent-function tool relation (create if it doesn't exist, update if it does)
|
|
2157
2157
|
*/
|
|
2158
2158
|
declare const upsertSubAgentFunctionToolRelation: (db: DatabaseClient) => (params: {
|
|
2159
|
-
scopes:
|
|
2159
|
+
scopes: AgentScopeConfig;
|
|
2160
2160
|
subAgentId: string;
|
|
2161
2161
|
functionToolId: string;
|
|
2162
2162
|
relationId?: string;
|
|
@@ -2167,7 +2167,7 @@ declare const upsertSubAgentFunctionToolRelation: (db: DatabaseClient) => (param
|
|
|
2167
2167
|
* Add a function tool to an agent
|
|
2168
2168
|
*/
|
|
2169
2169
|
declare const addFunctionToolToSubAgent: (db: DatabaseClient) => (params: {
|
|
2170
|
-
scopes:
|
|
2170
|
+
scopes: AgentScopeConfig;
|
|
2171
2171
|
subAgentId: string;
|
|
2172
2172
|
functionToolId: string;
|
|
2173
2173
|
}) => Promise<{
|
|
@@ -2177,7 +2177,7 @@ declare const addFunctionToolToSubAgent: (db: DatabaseClient) => (params: {
|
|
|
2177
2177
|
* Update an agent-function tool relation
|
|
2178
2178
|
*/
|
|
2179
2179
|
declare const updateSubAgentFunctionToolRelation: (db: DatabaseClient) => (params: {
|
|
2180
|
-
scopes:
|
|
2180
|
+
scopes: AgentScopeConfig;
|
|
2181
2181
|
relationId: string;
|
|
2182
2182
|
data: {
|
|
2183
2183
|
subAgentId: string;
|
|
@@ -2187,31 +2187,31 @@ declare const updateSubAgentFunctionToolRelation: (db: DatabaseClient) => (param
|
|
|
2187
2187
|
id: string;
|
|
2188
2188
|
}>;
|
|
2189
2189
|
|
|
2190
|
-
interface
|
|
2190
|
+
interface AgentLogger {
|
|
2191
2191
|
info(obj: Record<string, any>, msg?: string): void;
|
|
2192
2192
|
error(obj: Record<string, any>, msg?: string): void;
|
|
2193
2193
|
}
|
|
2194
2194
|
/**
|
|
2195
|
-
* Server-side implementation of
|
|
2196
|
-
* This function creates a complete
|
|
2195
|
+
* Server-side implementation of createFullAgent that performs actual database operations.
|
|
2196
|
+
* This function creates a complete agent with all agents, tools, and relationships.
|
|
2197
2197
|
*/
|
|
2198
|
-
declare const
|
|
2198
|
+
declare const createFullAgentServerSide: (db: DatabaseClient, logger?: AgentLogger) => (scopes: ProjectScopeConfig, agentData: FullAgentDefinition) => Promise<FullAgentDefinition>;
|
|
2199
2199
|
/**
|
|
2200
|
-
* Server-side implementation of
|
|
2201
|
-
* This function updates a complete
|
|
2200
|
+
* Server-side implementation of updateFullAgent that performs actual database operations.
|
|
2201
|
+
* This function updates a complete agent with all agents, tools, and relationships.
|
|
2202
2202
|
*/
|
|
2203
|
-
declare const
|
|
2203
|
+
declare const updateFullAgentServerSide: (db: DatabaseClient, logger?: AgentLogger) => (scopes: ProjectScopeConfig, agentData: FullAgentDefinition) => Promise<FullAgentDefinition>;
|
|
2204
2204
|
/**
|
|
2205
|
-
* Get a complete
|
|
2205
|
+
* Get a complete agent definition by ID
|
|
2206
2206
|
*/
|
|
2207
|
-
declare const
|
|
2208
|
-
scopes:
|
|
2209
|
-
}) => Promise<
|
|
2207
|
+
declare const getFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (params: {
|
|
2208
|
+
scopes: AgentScopeConfig;
|
|
2209
|
+
}) => Promise<FullAgentDefinition | null>;
|
|
2210
2210
|
/**
|
|
2211
|
-
* Delete a complete
|
|
2211
|
+
* Delete a complete agent and cascade to all related entities
|
|
2212
2212
|
*/
|
|
2213
|
-
declare const
|
|
2214
|
-
scopes:
|
|
2213
|
+
declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (params: {
|
|
2214
|
+
scopes: AgentScopeConfig;
|
|
2215
2215
|
}) => Promise<boolean>;
|
|
2216
2216
|
|
|
2217
2217
|
/**
|
|
@@ -2478,18 +2478,18 @@ declare const countMessagesByConversation: (db: DatabaseClient) => (params: {
|
|
|
2478
2478
|
/**
|
|
2479
2479
|
* Server-side data access layer for Full Project operations.
|
|
2480
2480
|
* This module provides functions for creating, retrieving, updating, and deleting
|
|
2481
|
-
* complete project definitions with all nested resources (
|
|
2481
|
+
* complete project definitions with all nested resources (agent, agents, tools, etc.).
|
|
2482
2482
|
*/
|
|
2483
2483
|
|
|
2484
2484
|
type ProjectLogger = ReturnType<typeof getLogger>;
|
|
2485
2485
|
/**
|
|
2486
2486
|
* Server-side implementation of createFullProject that performs actual database operations.
|
|
2487
|
-
* This function creates a complete project with all
|
|
2487
|
+
* This function creates a complete project with all agent and their nested resources.
|
|
2488
2488
|
*/
|
|
2489
2489
|
declare const createFullProjectServerSide: (db: DatabaseClient, logger?: ProjectLogger) => (scopes: ProjectScopeConfig, projectData: FullProjectDefinition) => Promise<FullProjectDefinition>;
|
|
2490
2490
|
/**
|
|
2491
2491
|
* Server-side implementation of updateFullProject that performs actual database operations.
|
|
2492
|
-
* This function updates a complete project with all
|
|
2492
|
+
* This function updates a complete project with all agent and their nested resources.
|
|
2493
2493
|
*/
|
|
2494
2494
|
declare const updateFullProjectServerSide: (db: DatabaseClient, logger?: ProjectLogger) => (scopes: ProjectScopeConfig, projectData: FullProjectDefinition) => Promise<FullProjectDefinition>;
|
|
2495
2495
|
/**
|
|
@@ -2570,13 +2570,13 @@ declare const deleteProject: (db: DatabaseClient) => (params: {
|
|
|
2570
2570
|
}) => Promise<boolean>;
|
|
2571
2571
|
|
|
2572
2572
|
declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
2573
|
-
scopes:
|
|
2573
|
+
scopes: AgentScopeConfig;
|
|
2574
2574
|
relationId: string;
|
|
2575
2575
|
}) => Promise<{
|
|
2576
2576
|
tenantId: string;
|
|
2577
2577
|
projectId: string;
|
|
2578
2578
|
id: string;
|
|
2579
|
-
|
|
2579
|
+
agentId: string;
|
|
2580
2580
|
createdAt: string;
|
|
2581
2581
|
updatedAt: string;
|
|
2582
2582
|
sourceSubAgentId: string;
|
|
@@ -2585,7 +2585,7 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
2585
2585
|
relationType: string | null;
|
|
2586
2586
|
} | undefined>;
|
|
2587
2587
|
declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
2588
|
-
scopes:
|
|
2588
|
+
scopes: AgentScopeConfig;
|
|
2589
2589
|
pagination?: PaginationConfig;
|
|
2590
2590
|
}) => Promise<{
|
|
2591
2591
|
data: {
|
|
@@ -2595,7 +2595,7 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2595
2595
|
targetSubAgentId: string | null;
|
|
2596
2596
|
externalSubAgentId: string | null;
|
|
2597
2597
|
relationType: string | null;
|
|
2598
|
-
|
|
2598
|
+
agentId: string;
|
|
2599
2599
|
projectId: string;
|
|
2600
2600
|
tenantId: string;
|
|
2601
2601
|
id: string;
|
|
@@ -2608,12 +2608,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2608
2608
|
};
|
|
2609
2609
|
}>;
|
|
2610
2610
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
2611
|
-
scopes:
|
|
2611
|
+
scopes: SubAgentScopeConfig;
|
|
2612
2612
|
}) => Promise<{
|
|
2613
2613
|
tenantId: string;
|
|
2614
2614
|
projectId: string;
|
|
2615
2615
|
id: string;
|
|
2616
|
-
|
|
2616
|
+
agentId: string;
|
|
2617
2617
|
createdAt: string;
|
|
2618
2618
|
updatedAt: string;
|
|
2619
2619
|
sourceSubAgentId: string;
|
|
@@ -2621,13 +2621,13 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2621
2621
|
externalSubAgentId: string | null;
|
|
2622
2622
|
relationType: string | null;
|
|
2623
2623
|
}[]>;
|
|
2624
|
-
declare const
|
|
2625
|
-
scopes:
|
|
2624
|
+
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2625
|
+
scopes: AgentScopeConfig;
|
|
2626
2626
|
}) => Promise<{
|
|
2627
2627
|
tenantId: string;
|
|
2628
2628
|
projectId: string;
|
|
2629
2629
|
id: string;
|
|
2630
|
-
|
|
2630
|
+
agentId: string;
|
|
2631
2631
|
createdAt: string;
|
|
2632
2632
|
updatedAt: string;
|
|
2633
2633
|
sourceSubAgentId: string;
|
|
@@ -2636,7 +2636,7 @@ declare const getAgentRelationsByGraph: (db: DatabaseClient) => (params: {
|
|
|
2636
2636
|
relationType: string | null;
|
|
2637
2637
|
}[]>;
|
|
2638
2638
|
declare const getAgentRelationsBySource: (db: DatabaseClient) => (params: {
|
|
2639
|
-
scopes:
|
|
2639
|
+
scopes: AgentScopeConfig;
|
|
2640
2640
|
sourceSubAgentId: string;
|
|
2641
2641
|
pagination?: PaginationConfig;
|
|
2642
2642
|
}) => Promise<{
|
|
@@ -2647,7 +2647,7 @@ declare const getAgentRelationsBySource: (db: DatabaseClient) => (params: {
|
|
|
2647
2647
|
targetSubAgentId: string | null;
|
|
2648
2648
|
externalSubAgentId: string | null;
|
|
2649
2649
|
relationType: string | null;
|
|
2650
|
-
|
|
2650
|
+
agentId: string;
|
|
2651
2651
|
projectId: string;
|
|
2652
2652
|
tenantId: string;
|
|
2653
2653
|
id: string;
|
|
@@ -2660,7 +2660,7 @@ declare const getAgentRelationsBySource: (db: DatabaseClient) => (params: {
|
|
|
2660
2660
|
};
|
|
2661
2661
|
}>;
|
|
2662
2662
|
declare const getAgentRelationsByTarget: (db: DatabaseClient) => (params: {
|
|
2663
|
-
scopes:
|
|
2663
|
+
scopes: AgentScopeConfig;
|
|
2664
2664
|
targetSubAgentId: string;
|
|
2665
2665
|
pagination?: PaginationConfig;
|
|
2666
2666
|
}) => Promise<{
|
|
@@ -2671,7 +2671,7 @@ declare const getAgentRelationsByTarget: (db: DatabaseClient) => (params: {
|
|
|
2671
2671
|
targetSubAgentId: string | null;
|
|
2672
2672
|
externalSubAgentId: string | null;
|
|
2673
2673
|
relationType: string | null;
|
|
2674
|
-
|
|
2674
|
+
agentId: string;
|
|
2675
2675
|
projectId: string;
|
|
2676
2676
|
tenantId: string;
|
|
2677
2677
|
id: string;
|
|
@@ -2684,7 +2684,7 @@ declare const getAgentRelationsByTarget: (db: DatabaseClient) => (params: {
|
|
|
2684
2684
|
};
|
|
2685
2685
|
}>;
|
|
2686
2686
|
declare const getExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2687
|
-
scopes:
|
|
2687
|
+
scopes: AgentScopeConfig;
|
|
2688
2688
|
externalSubAgentId: string;
|
|
2689
2689
|
pagination?: PaginationConfig;
|
|
2690
2690
|
}) => Promise<{
|
|
@@ -2695,7 +2695,7 @@ declare const getExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2695
2695
|
targetSubAgentId: string | null;
|
|
2696
2696
|
externalSubAgentId: string | null;
|
|
2697
2697
|
relationType: string | null;
|
|
2698
|
-
|
|
2698
|
+
agentId: string;
|
|
2699
2699
|
projectId: string;
|
|
2700
2700
|
tenantId: string;
|
|
2701
2701
|
id: string;
|
|
@@ -2707,8 +2707,8 @@ declare const getExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2707
2707
|
pages: number;
|
|
2708
2708
|
};
|
|
2709
2709
|
}>;
|
|
2710
|
-
declare const
|
|
2711
|
-
scopes:
|
|
2710
|
+
declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
2711
|
+
scopes: AgentScopeConfig;
|
|
2712
2712
|
subAgentId: string;
|
|
2713
2713
|
}) => Promise<{
|
|
2714
2714
|
internalRelations: {
|
|
@@ -2732,7 +2732,7 @@ declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentR
|
|
|
2732
2732
|
tenantId: string;
|
|
2733
2733
|
projectId: string;
|
|
2734
2734
|
id: string;
|
|
2735
|
-
|
|
2735
|
+
agentId: string;
|
|
2736
2736
|
createdAt: string;
|
|
2737
2737
|
updatedAt: string;
|
|
2738
2738
|
sourceSubAgentId: string;
|
|
@@ -2741,10 +2741,10 @@ declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentR
|
|
|
2741
2741
|
relationType: string | null;
|
|
2742
2742
|
}>;
|
|
2743
2743
|
/**
|
|
2744
|
-
* Check if agent relation exists by
|
|
2744
|
+
* Check if sub-agent relation exists by agent, source, target, and relation type
|
|
2745
2745
|
*/
|
|
2746
2746
|
declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
2747
|
-
scopes:
|
|
2747
|
+
scopes: AgentScopeConfig;
|
|
2748
2748
|
sourceSubAgentId: string;
|
|
2749
2749
|
targetSubAgentId?: string;
|
|
2750
2750
|
externalSubAgentId?: string;
|
|
@@ -2753,7 +2753,7 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2753
2753
|
tenantId: string;
|
|
2754
2754
|
projectId: string;
|
|
2755
2755
|
id: string;
|
|
2756
|
-
|
|
2756
|
+
agentId: string;
|
|
2757
2757
|
createdAt: string;
|
|
2758
2758
|
updatedAt: string;
|
|
2759
2759
|
sourceSubAgentId: string;
|
|
@@ -2768,7 +2768,7 @@ declare const upsertAgentRelation: (db: DatabaseClient) => (params: SubAgentRela
|
|
|
2768
2768
|
tenantId: string;
|
|
2769
2769
|
projectId: string;
|
|
2770
2770
|
id: string;
|
|
2771
|
-
|
|
2771
|
+
agentId: string;
|
|
2772
2772
|
createdAt: string;
|
|
2773
2773
|
updatedAt: string;
|
|
2774
2774
|
sourceSubAgentId: string;
|
|
@@ -2780,7 +2780,7 @@ declare const createExternalAgentRelation: (db: DatabaseClient) => (params: Exte
|
|
|
2780
2780
|
tenantId: string;
|
|
2781
2781
|
projectId: string;
|
|
2782
2782
|
id: string;
|
|
2783
|
-
|
|
2783
|
+
agentId: string;
|
|
2784
2784
|
createdAt: string;
|
|
2785
2785
|
updatedAt: string;
|
|
2786
2786
|
sourceSubAgentId: string;
|
|
@@ -2789,14 +2789,14 @@ declare const createExternalAgentRelation: (db: DatabaseClient) => (params: Exte
|
|
|
2789
2789
|
relationType: string | null;
|
|
2790
2790
|
}>;
|
|
2791
2791
|
declare const updateAgentRelation: (db: DatabaseClient) => (params: {
|
|
2792
|
-
scopes:
|
|
2792
|
+
scopes: AgentScopeConfig;
|
|
2793
2793
|
relationId: string;
|
|
2794
2794
|
data: SubAgentRelationUpdate;
|
|
2795
2795
|
}) => Promise<{
|
|
2796
2796
|
tenantId: string;
|
|
2797
2797
|
projectId: string;
|
|
2798
2798
|
id: string;
|
|
2799
|
-
|
|
2799
|
+
agentId: string;
|
|
2800
2800
|
createdAt: string;
|
|
2801
2801
|
updatedAt: string;
|
|
2802
2802
|
sourceSubAgentId: string;
|
|
@@ -2805,14 +2805,14 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
|
|
|
2805
2805
|
relationType: string | null;
|
|
2806
2806
|
}>;
|
|
2807
2807
|
declare const deleteSubAgentRelation: (db: DatabaseClient) => (params: {
|
|
2808
|
-
scopes:
|
|
2808
|
+
scopes: AgentScopeConfig;
|
|
2809
2809
|
relationId: string;
|
|
2810
2810
|
}) => Promise<boolean>;
|
|
2811
|
-
declare const
|
|
2812
|
-
scopes:
|
|
2811
|
+
declare const deleteAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2812
|
+
scopes: AgentScopeConfig;
|
|
2813
2813
|
}) => Promise<boolean>;
|
|
2814
2814
|
declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2815
|
-
scopes:
|
|
2815
|
+
scopes: AgentScopeConfig;
|
|
2816
2816
|
relationId?: string;
|
|
2817
2817
|
data: {
|
|
2818
2818
|
subAgentId: string;
|
|
@@ -2824,7 +2824,7 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2824
2824
|
tenantId: string;
|
|
2825
2825
|
projectId: string;
|
|
2826
2826
|
id: string;
|
|
2827
|
-
|
|
2827
|
+
agentId: string;
|
|
2828
2828
|
createdAt: string;
|
|
2829
2829
|
updatedAt: string;
|
|
2830
2830
|
headers: Record<string, string> | null;
|
|
@@ -2833,14 +2833,14 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2833
2833
|
subAgentId: string;
|
|
2834
2834
|
}>;
|
|
2835
2835
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2836
|
-
scopes:
|
|
2836
|
+
scopes: AgentScopeConfig;
|
|
2837
2837
|
relationId: string;
|
|
2838
2838
|
data: SubAgentToolRelationUpdate;
|
|
2839
2839
|
}) => Promise<{
|
|
2840
2840
|
tenantId: string;
|
|
2841
2841
|
projectId: string;
|
|
2842
2842
|
id: string;
|
|
2843
|
-
|
|
2843
|
+
agentId: string;
|
|
2844
2844
|
createdAt: string;
|
|
2845
2845
|
updatedAt: string;
|
|
2846
2846
|
headers: Record<string, string> | null;
|
|
@@ -2849,20 +2849,20 @@ declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2849
2849
|
subAgentId: string;
|
|
2850
2850
|
}>;
|
|
2851
2851
|
declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2852
|
-
scopes:
|
|
2852
|
+
scopes: AgentScopeConfig;
|
|
2853
2853
|
relationId: string;
|
|
2854
2854
|
}) => Promise<boolean>;
|
|
2855
2855
|
declare const deleteAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
2856
|
-
scopes:
|
|
2856
|
+
scopes: SubAgentScopeConfig;
|
|
2857
2857
|
}) => Promise<boolean>;
|
|
2858
2858
|
declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
2859
|
-
scopes:
|
|
2859
|
+
scopes: SubAgentScopeConfig;
|
|
2860
2860
|
relationId: string;
|
|
2861
2861
|
}) => Promise<{
|
|
2862
2862
|
tenantId: string;
|
|
2863
2863
|
projectId: string;
|
|
2864
2864
|
id: string;
|
|
2865
|
-
|
|
2865
|
+
agentId: string;
|
|
2866
2866
|
createdAt: string;
|
|
2867
2867
|
updatedAt: string;
|
|
2868
2868
|
headers: Record<string, string> | null;
|
|
@@ -2871,7 +2871,7 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
2871
2871
|
subAgentId: string;
|
|
2872
2872
|
} | undefined>;
|
|
2873
2873
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
2874
|
-
scopes:
|
|
2874
|
+
scopes: SubAgentScopeConfig;
|
|
2875
2875
|
pagination?: PaginationConfig;
|
|
2876
2876
|
}) => Promise<{
|
|
2877
2877
|
data: {
|
|
@@ -2881,7 +2881,7 @@ declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
|
2881
2881
|
selectedTools: string[] | null;
|
|
2882
2882
|
headers: Record<string, string> | null;
|
|
2883
2883
|
subAgentId: string;
|
|
2884
|
-
|
|
2884
|
+
agentId: string;
|
|
2885
2885
|
projectId: string;
|
|
2886
2886
|
tenantId: string;
|
|
2887
2887
|
id: string;
|
|
@@ -2894,7 +2894,7 @@ declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
|
2894
2894
|
};
|
|
2895
2895
|
}>;
|
|
2896
2896
|
declare const getAgentToolRelationByTool: (db: DatabaseClient) => (params: {
|
|
2897
|
-
scopes:
|
|
2897
|
+
scopes: AgentScopeConfig;
|
|
2898
2898
|
toolId: string;
|
|
2899
2899
|
pagination?: PaginationConfig;
|
|
2900
2900
|
}) => Promise<{
|
|
@@ -2905,7 +2905,7 @@ declare const getAgentToolRelationByTool: (db: DatabaseClient) => (params: {
|
|
|
2905
2905
|
selectedTools: string[] | null;
|
|
2906
2906
|
headers: Record<string, string> | null;
|
|
2907
2907
|
subAgentId: string;
|
|
2908
|
-
|
|
2908
|
+
agentId: string;
|
|
2909
2909
|
projectId: string;
|
|
2910
2910
|
tenantId: string;
|
|
2911
2911
|
id: string;
|
|
@@ -2918,7 +2918,7 @@ declare const getAgentToolRelationByTool: (db: DatabaseClient) => (params: {
|
|
|
2918
2918
|
};
|
|
2919
2919
|
}>;
|
|
2920
2920
|
declare const listAgentToolRelations: (db: DatabaseClient) => (params: {
|
|
2921
|
-
scopes:
|
|
2921
|
+
scopes: AgentScopeConfig;
|
|
2922
2922
|
pagination?: PaginationConfig;
|
|
2923
2923
|
}) => Promise<{
|
|
2924
2924
|
data: {
|
|
@@ -2928,7 +2928,7 @@ declare const listAgentToolRelations: (db: DatabaseClient) => (params: {
|
|
|
2928
2928
|
selectedTools: string[] | null;
|
|
2929
2929
|
headers: Record<string, string> | null;
|
|
2930
2930
|
subAgentId: string;
|
|
2931
|
-
|
|
2931
|
+
agentId: string;
|
|
2932
2932
|
projectId: string;
|
|
2933
2933
|
tenantId: string;
|
|
2934
2934
|
id: string;
|
|
@@ -2941,7 +2941,7 @@ declare const listAgentToolRelations: (db: DatabaseClient) => (params: {
|
|
|
2941
2941
|
};
|
|
2942
2942
|
}>;
|
|
2943
2943
|
declare const getToolsForAgent: (db: DatabaseClient) => (params: {
|
|
2944
|
-
scopes:
|
|
2944
|
+
scopes: SubAgentScopeConfig;
|
|
2945
2945
|
pagination?: PaginationConfig;
|
|
2946
2946
|
}) => Promise<{
|
|
2947
2947
|
data: {
|
|
@@ -2980,7 +2980,7 @@ declare const getToolsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2980
2980
|
};
|
|
2981
2981
|
}>;
|
|
2982
2982
|
declare const getAgentsForTool: (db: DatabaseClient) => (params: {
|
|
2983
|
-
scopes:
|
|
2983
|
+
scopes: AgentScopeConfig;
|
|
2984
2984
|
toolId: string;
|
|
2985
2985
|
pagination?: PaginationConfig;
|
|
2986
2986
|
}) => Promise<{
|
|
@@ -3028,14 +3028,14 @@ declare const getAgentsForTool: (db: DatabaseClient) => (params: {
|
|
|
3028
3028
|
};
|
|
3029
3029
|
}>;
|
|
3030
3030
|
declare const validateInternalSubAgent: (db: DatabaseClient) => (params: {
|
|
3031
|
-
scopes:
|
|
3031
|
+
scopes: SubAgentScopeConfig;
|
|
3032
3032
|
}) => Promise<boolean>;
|
|
3033
3033
|
declare const validateExternalAgent: (db: DatabaseClient) => (params: {
|
|
3034
|
-
scopes:
|
|
3034
|
+
scopes: SubAgentScopeConfig;
|
|
3035
3035
|
}) => Promise<boolean>;
|
|
3036
3036
|
|
|
3037
3037
|
declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
3038
|
-
scopes:
|
|
3038
|
+
scopes: AgentScopeConfig;
|
|
3039
3039
|
subAgentId: string;
|
|
3040
3040
|
}) => Promise<{
|
|
3041
3041
|
tenantId: string;
|
|
@@ -3044,7 +3044,7 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3044
3044
|
name: string;
|
|
3045
3045
|
description: string;
|
|
3046
3046
|
prompt: string;
|
|
3047
|
-
|
|
3047
|
+
agentId: string;
|
|
3048
3048
|
createdAt: string;
|
|
3049
3049
|
updatedAt: string;
|
|
3050
3050
|
models: {
|
|
@@ -3067,7 +3067,7 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3067
3067
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3068
3068
|
} | undefined>;
|
|
3069
3069
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
3070
|
-
scopes:
|
|
3070
|
+
scopes: AgentScopeConfig;
|
|
3071
3071
|
}) => Promise<{
|
|
3072
3072
|
tenantId: string;
|
|
3073
3073
|
projectId: string;
|
|
@@ -3075,7 +3075,7 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3075
3075
|
name: string;
|
|
3076
3076
|
description: string;
|
|
3077
3077
|
prompt: string;
|
|
3078
|
-
|
|
3078
|
+
agentId: string;
|
|
3079
3079
|
createdAt: string;
|
|
3080
3080
|
updatedAt: string;
|
|
3081
3081
|
models: {
|
|
@@ -3098,7 +3098,7 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3098
3098
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3099
3099
|
}[]>;
|
|
3100
3100
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
3101
|
-
scopes:
|
|
3101
|
+
scopes: AgentScopeConfig;
|
|
3102
3102
|
pagination?: PaginationConfig;
|
|
3103
3103
|
}) => Promise<{
|
|
3104
3104
|
data: {
|
|
@@ -3125,7 +3125,7 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3125
3125
|
} | null;
|
|
3126
3126
|
name: string;
|
|
3127
3127
|
description: string;
|
|
3128
|
-
|
|
3128
|
+
agentId: string;
|
|
3129
3129
|
projectId: string;
|
|
3130
3130
|
tenantId: string;
|
|
3131
3131
|
id: string;
|
|
@@ -3144,7 +3144,7 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3144
3144
|
name: string;
|
|
3145
3145
|
description: string;
|
|
3146
3146
|
prompt: string;
|
|
3147
|
-
|
|
3147
|
+
agentId: string;
|
|
3148
3148
|
createdAt: string;
|
|
3149
3149
|
updatedAt: string;
|
|
3150
3150
|
models: {
|
|
@@ -3167,7 +3167,7 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3167
3167
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3168
3168
|
}>;
|
|
3169
3169
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
3170
|
-
scopes:
|
|
3170
|
+
scopes: AgentScopeConfig;
|
|
3171
3171
|
subAgentId: string;
|
|
3172
3172
|
data: SubAgentUpdate;
|
|
3173
3173
|
}) => Promise<{
|
|
@@ -3177,7 +3177,7 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3177
3177
|
name: string;
|
|
3178
3178
|
description: string;
|
|
3179
3179
|
prompt: string;
|
|
3180
|
-
|
|
3180
|
+
agentId: string;
|
|
3181
3181
|
createdAt: string;
|
|
3182
3182
|
updatedAt: string;
|
|
3183
3183
|
models: {
|
|
@@ -3206,11 +3206,11 @@ declare const upsertSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3206
3206
|
data: SubAgentInsert;
|
|
3207
3207
|
}) => Promise<SubAgentSelect>;
|
|
3208
3208
|
declare const deleteSubAgent: (db: DatabaseClient) => (params: {
|
|
3209
|
-
scopes:
|
|
3209
|
+
scopes: AgentScopeConfig;
|
|
3210
3210
|
subAgentId: string;
|
|
3211
3211
|
}) => Promise<boolean>;
|
|
3212
3212
|
declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
|
|
3213
|
-
scopes:
|
|
3213
|
+
scopes: AgentScopeConfig;
|
|
3214
3214
|
subAgentIds: string[];
|
|
3215
3215
|
}) => Promise<{
|
|
3216
3216
|
createdAt: string;
|
|
@@ -3236,7 +3236,7 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
|
|
|
3236
3236
|
} | null;
|
|
3237
3237
|
name: string;
|
|
3238
3238
|
description: string;
|
|
3239
|
-
|
|
3239
|
+
agentId: string;
|
|
3240
3240
|
projectId: string;
|
|
3241
3241
|
tenantId: string;
|
|
3242
3242
|
id: string;
|
|
@@ -3246,7 +3246,7 @@ declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promis
|
|
|
3246
3246
|
tenantId: string;
|
|
3247
3247
|
projectId: string;
|
|
3248
3248
|
id: string;
|
|
3249
|
-
|
|
3249
|
+
agentId: string;
|
|
3250
3250
|
createdAt: string;
|
|
3251
3251
|
updatedAt: string;
|
|
3252
3252
|
status: string;
|
|
@@ -3267,7 +3267,7 @@ declare const updateTask: (db: DatabaseClient) => (params: {
|
|
|
3267
3267
|
tenantId: string;
|
|
3268
3268
|
projectId: string;
|
|
3269
3269
|
id: string;
|
|
3270
|
-
|
|
3270
|
+
agentId: string;
|
|
3271
3271
|
createdAt: string;
|
|
3272
3272
|
updatedAt: string;
|
|
3273
3273
|
status: string;
|
|
@@ -3375,7 +3375,7 @@ declare const deleteTool: (db: DatabaseClient) => (params: {
|
|
|
3375
3375
|
toolId: string;
|
|
3376
3376
|
}) => Promise<boolean>;
|
|
3377
3377
|
declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
3378
|
-
scopes:
|
|
3378
|
+
scopes: AgentScopeConfig;
|
|
3379
3379
|
subAgentId: string;
|
|
3380
3380
|
toolId: string;
|
|
3381
3381
|
selectedTools?: string[] | null;
|
|
@@ -3384,7 +3384,7 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3384
3384
|
tenantId: string;
|
|
3385
3385
|
projectId: string;
|
|
3386
3386
|
id: string;
|
|
3387
|
-
|
|
3387
|
+
agentId: string;
|
|
3388
3388
|
createdAt: string;
|
|
3389
3389
|
updatedAt: string;
|
|
3390
3390
|
headers: Record<string, string> | null;
|
|
@@ -3393,14 +3393,14 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3393
3393
|
subAgentId: string;
|
|
3394
3394
|
}>;
|
|
3395
3395
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3396
|
-
scopes:
|
|
3396
|
+
scopes: AgentScopeConfig;
|
|
3397
3397
|
subAgentId: string;
|
|
3398
3398
|
toolId: string;
|
|
3399
3399
|
}) => Promise<{
|
|
3400
3400
|
tenantId: string;
|
|
3401
3401
|
projectId: string;
|
|
3402
3402
|
id: string;
|
|
3403
|
-
|
|
3403
|
+
agentId: string;
|
|
3404
3404
|
createdAt: string;
|
|
3405
3405
|
updatedAt: string;
|
|
3406
3406
|
headers: Record<string, string> | null;
|
|
@@ -3412,7 +3412,7 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
|
3412
3412
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
3413
3413
|
*/
|
|
3414
3414
|
declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
3415
|
-
scopes:
|
|
3415
|
+
scopes: AgentScopeConfig;
|
|
3416
3416
|
subAgentId: string;
|
|
3417
3417
|
toolId: string;
|
|
3418
3418
|
selectedTools?: string[] | null;
|
|
@@ -3422,7 +3422,7 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3422
3422
|
tenantId: string;
|
|
3423
3423
|
projectId: string;
|
|
3424
3424
|
id: string;
|
|
3425
|
-
|
|
3425
|
+
agentId: string;
|
|
3426
3426
|
createdAt: string;
|
|
3427
3427
|
updatedAt: string;
|
|
3428
3428
|
headers: Record<string, string> | null;
|
|
@@ -3499,10 +3499,10 @@ declare function validateHttpRequestHeaders(headersSchema: any, httpRequest: Par
|
|
|
3499
3499
|
* Validates headers against the JSON Schema stored in context configuration
|
|
3500
3500
|
* Supports both legacy simple schemas and new comprehensive HTTP request schemas
|
|
3501
3501
|
*/
|
|
3502
|
-
declare function validateHeaders({ tenantId, projectId,
|
|
3502
|
+
declare function validateHeaders({ tenantId, projectId, agentId, conversationId, parsedRequest, dbClient, credentialStores, }: {
|
|
3503
3503
|
tenantId: string;
|
|
3504
3504
|
projectId: string;
|
|
3505
|
-
|
|
3505
|
+
agentId: string;
|
|
3506
3506
|
conversationId: string;
|
|
3507
3507
|
parsedRequest: ParsedHttpRequest;
|
|
3508
3508
|
dbClient: DatabaseClient;
|
|
@@ -4131,7 +4131,7 @@ declare function createExecutionContext(params: {
|
|
|
4131
4131
|
apiKey: string;
|
|
4132
4132
|
tenantId: string;
|
|
4133
4133
|
projectId: string;
|
|
4134
|
-
|
|
4134
|
+
agentId: string;
|
|
4135
4135
|
apiKeyId: string;
|
|
4136
4136
|
baseUrl?: string;
|
|
4137
4137
|
}): ExecutionContext;
|
|
@@ -4153,4 +4153,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
|
|
|
4153
4153
|
*/
|
|
4154
4154
|
declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
|
|
4155
4155
|
|
|
4156
|
-
export {
|
|
4156
|
+
export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, ExternalSubAgentRelationInsert, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentsByIds, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentFunctionToolRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentFunctionToolRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalSubAgent, validateProjectExists, validationHelper, withProjectValidation };
|