@inkeep/agents-core 0.18.1 → 0.19.0

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.
Files changed (42) hide show
  1. package/README.md +4 -4
  2. package/dist/{chunk-E4SFK6AI.js → chunk-3GZBRBXP.js} +84 -87
  3. package/dist/{chunk-JTHQYGCX.js → chunk-3XUV5Q4D.js} +34 -34
  4. package/dist/{chunk-ID4CFGVF.js → chunk-B6F3RF4T.js} +87 -120
  5. package/dist/chunk-E6R6PML7.js +19 -0
  6. package/dist/chunk-HYS7HUYJ.js +27 -0
  7. package/dist/{chunk-H6PMWHNV.js → chunk-SLL6V3AE.js} +12 -12
  8. package/dist/{chunk-R2EERZSW.js → chunk-YECQCT5N.js} +1 -1
  9. package/dist/client-exports.cjs +189 -225
  10. package/dist/client-exports.d.cts +13 -14
  11. package/dist/client-exports.d.ts +13 -14
  12. package/dist/client-exports.js +10 -10
  13. package/dist/constants/models.cjs +31 -0
  14. package/dist/constants/models.d.cts +33 -0
  15. package/dist/constants/models.d.ts +33 -0
  16. package/dist/constants/models.js +1 -0
  17. package/dist/db/schema.cjs +85 -118
  18. package/dist/db/schema.d.cts +2 -3
  19. package/dist/db/schema.d.ts +2 -3
  20. package/dist/db/schema.js +1 -1
  21. package/dist/index.cjs +213931 -1040
  22. package/dist/index.d.cts +209 -208
  23. package/dist/index.d.ts +209 -208
  24. package/dist/index.js +213657 -767
  25. package/dist/{schema-ULFEZCOL.d.cts → schema-Dp-qgdBT.d.ts} +54 -52
  26. package/dist/{schema-wbZXiVWb.d.ts → schema-DrDaCn6H.d.cts} +54 -52
  27. package/dist/{signoz-queries-BuiipZTk.d.cts → signoz-queries-CuWMQh1H.d.cts} +10 -10
  28. package/dist/{signoz-queries-BuiipZTk.d.ts → signoz-queries-CuWMQh1H.d.ts} +10 -10
  29. package/dist/types/index.d.cts +2 -3
  30. package/dist/types/index.d.ts +2 -3
  31. package/dist/{utility-CyPQ1tC_.d.cts → utility-BxbySenH.d.cts} +152 -301
  32. package/dist/{utility-CyPQ1tC_.d.ts → utility-BxbySenH.d.ts} +152 -301
  33. package/dist/utils/schema-conversion.js +1 -1
  34. package/dist/validation/index.cjs +212 -249
  35. package/dist/validation/index.d.cts +12 -13
  36. package/dist/validation/index.d.ts +12 -13
  37. package/dist/validation/index.js +2 -2
  38. package/drizzle/0007_mighty_typhoid_mary.sql +227 -0
  39. package/drizzle/meta/0007_snapshot.json +2766 -0
  40. package/drizzle/meta/_journal.json +7 -0
  41. package/package.json +6 -1
  42. package/dist/chunk-MKBO26DX.js +0 -9
package/dist/index.d.cts CHANGED
@@ -1,26 +1,27 @@
1
- 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-BuiipZTk.cjs';
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-CuWMQh1H.cjs';
2
3
  import { z } from 'zod';
3
- import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, h as MCPTransportType, t as MCPToolConfig, u as GraphScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentGraphInsert, y as AgentGraphUpdate, z as FullGraphDefinition, B as ApiKeySelect, D as ApiKeyInsert, E as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as AgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as CredentialReferenceInsert, $ as CredentialReferenceUpdate, a0 as DataComponentSelect, a1 as DataComponentInsert, a2 as DataComponentUpdate, a3 as ExternalAgentInsert, a4 as ExternalAgentSelect, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentRelationInsert, am as ExternalSubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as TaskInsert, T as TaskMetadataConfig, at as TaskSelect, au as McpTool, av as ToolInsert, aw as ToolUpdate, g as CredentialStoreType, ax as ExecutionContext } from './utility-CyPQ1tC_.cjs';
4
- 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';
5
6
  import { CredentialStore } from './types/index.cjs';
6
7
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
7
8
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
8
- import { s as schema } from './schema-ULFEZCOL.cjs';
9
- export { q as agentFunctionToolRelations, U as agentFunctionToolRelationsRelations, a as agentGraph, E as agentGraphRelations, H as agentToolRelationsRelations, 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-ULFEZCOL.cjs';
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';
10
11
  import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
11
12
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
12
13
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
13
14
  import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
15
+ import { SQLiteTable } from 'drizzle-orm/sqlite-core';
14
16
  import { ValidateFunction } from 'ajv';
15
17
  import { Context, Next } from 'hono';
16
18
  import { z as z$1 } from '@hono/zod-openapi';
17
19
  import { HTTPException } from 'hono/http-exception';
18
20
  export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './utils/schema-conversion.cjs';
19
21
  import { Span, Tracer } from '@opentelemetry/api';
20
- export { A2AMessageMetadata, A2AMessageMetadataSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, TransferData, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from './validation/index.cjs';
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';
21
23
  export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
22
24
  import 'drizzle-zod';
23
- import 'drizzle-orm/sqlite-core';
24
25
  import 'drizzle-orm';
25
26
 
26
27
  /**
@@ -103,7 +104,7 @@ interface ContextConfigBuilderOptions<R extends z.ZodTypeAny | undefined = undef
103
104
  contextVariables?: CV;
104
105
  tenantId?: string;
105
106
  projectId?: string;
106
- graphId?: string;
107
+ agentId?: string;
107
108
  baseURL?: string;
108
109
  }
109
110
  declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extends Record<string, builderFetchDefinition<z.ZodTypeAny>>> {
@@ -111,19 +112,19 @@ declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extend
111
112
  private baseURL;
112
113
  private tenantId;
113
114
  private projectId;
114
- private graphId;
115
+ private agentId;
115
116
  constructor(options: ContextConfigBuilderOptions<R, CV>);
116
117
  /**
117
- * Set the context (tenantId, projectId, graphId) for this context config
118
- * Called by graph.setConfig() when the graph is configured
118
+ * Set the context (tenantId, projectId, agentId) for this context config
119
+ * Called by agent.setConfig() when the agent is configured
119
120
  */
120
- setContext(tenantId: string, projectId: string, graphId: string, baseURL: string): void;
121
+ setContext(tenantId: string, projectId: string, agentId: string, baseURL: string): void;
121
122
  /**
122
123
  * Convert the builder to a plain object for database operations
123
124
  */
124
125
  toObject(): ContextConfigSelect;
125
126
  getId(): string;
126
- getHeadersSchema(): {} | null;
127
+ getHeadersSchema(): any;
127
128
  getContextVariables(): Record<string, ContextFetchDefinition>;
128
129
  withHeadersSchema(schema: any): this;
129
130
  /** 4) The function you ship: path autocomplete + validation, returns {{path}} */
@@ -354,11 +355,11 @@ declare class ContextResolver {
354
355
  }
355
356
 
356
357
  declare function determineContextTrigger(tenantId: string, projectId: string, conversationId: string, dbClient: DatabaseClient): Promise<'initialization' | 'invocation'>;
357
- declare function handleContextConfigChange(tenantId: string, projectId: string, conversationId: string, graphId: string, newContextConfigId: string, dbClient: DatabaseClient, credentialStores?: CredentialStoreRegistry): Promise<void>;
358
- declare function handleContextResolution({ tenantId, projectId, graphId, conversationId, headers, dbClient, credentialStores, }: {
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, }: {
359
360
  tenantId: string;
360
361
  projectId: string;
361
- graphId: string;
362
+ agentId: string;
362
363
  conversationId: string;
363
364
  headers: Record<string, unknown>;
364
365
  dbClient: DatabaseClient;
@@ -819,14 +820,15 @@ declare class CredentialStuffer {
819
820
  buildMcpServerConfig(context: CredentialContext, tool: MCPToolConfig, storeReference?: CredentialStoreReference, selectedTools?: string[]): Promise<McpServerConfig>;
820
821
  }
821
822
 
822
- declare const getAgentGraphById: (db: DatabaseClient) => (params: {
823
- scopes: GraphScopeConfig;
823
+ declare const getAgentById: (db: DatabaseClient) => (params: {
824
+ scopes: AgentScopeConfig;
824
825
  }) => Promise<{
825
826
  tenantId: string;
826
827
  projectId: string;
827
828
  id: string;
828
829
  name: string;
829
830
  description: string | null;
831
+ prompt: string | null;
830
832
  createdAt: string;
831
833
  updatedAt: string;
832
834
  models: {
@@ -863,16 +865,16 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
863
865
  } | undefined;
864
866
  }[] | undefined;
865
867
  } | null;
866
- graphPrompt: string | null;
867
868
  } | null>;
868
- declare const getAgentGraphWithDefaultSubAgent: (db: DatabaseClient) => (params: {
869
- scopes: GraphScopeConfig;
869
+ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
870
+ scopes: AgentScopeConfig;
870
871
  }) => Promise<{
871
872
  tenantId: string;
872
873
  projectId: string;
873
874
  id: string;
874
875
  name: string;
875
876
  description: string | null;
877
+ prompt: string | null;
876
878
  createdAt: string;
877
879
  updatedAt: string;
878
880
  models: {
@@ -909,7 +911,6 @@ declare const getAgentGraphWithDefaultSubAgent: (db: DatabaseClient) => (params:
909
911
  } | undefined;
910
912
  }[] | undefined;
911
913
  } | null;
912
- graphPrompt: string | null;
913
914
  defaultSubAgent: {
914
915
  tenantId: string;
915
916
  projectId: string;
@@ -917,7 +918,7 @@ declare const getAgentGraphWithDefaultSubAgent: (db: DatabaseClient) => (params:
917
918
  name: string;
918
919
  description: string;
919
920
  prompt: string;
920
- graphId: string;
921
+ agentId: string;
921
922
  createdAt: string;
922
923
  updatedAt: string;
923
924
  models: {
@@ -940,7 +941,7 @@ declare const getAgentGraphWithDefaultSubAgent: (db: DatabaseClient) => (params:
940
941
  conversationHistoryConfig: ConversationHistoryConfig | null;
941
942
  } | null;
942
943
  } | null>;
943
- declare const listAgentGraphs: (db: DatabaseClient) => (params: {
944
+ declare const listAgents: (db: DatabaseClient) => (params: {
944
945
  scopes: ProjectScopeConfig;
945
946
  }) => Promise<{
946
947
  tenantId: string;
@@ -948,6 +949,7 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
948
949
  id: string;
949
950
  name: string;
950
951
  description: string | null;
952
+ prompt: string | null;
951
953
  createdAt: string;
952
954
  updatedAt: string;
953
955
  models: {
@@ -984,9 +986,8 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
984
986
  } | undefined;
985
987
  }[] | undefined;
986
988
  } | null;
987
- graphPrompt: string | null;
988
989
  }[]>;
989
- declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
990
+ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
990
991
  scopes: ProjectScopeConfig;
991
992
  pagination?: PaginationConfig;
992
993
  }) => Promise<{
@@ -1026,7 +1027,7 @@ declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
1026
1027
  } | undefined;
1027
1028
  }[] | undefined;
1028
1029
  } | null;
1029
- graphPrompt: string | null;
1030
+ prompt: string | null;
1030
1031
  stopWhen: {
1031
1032
  transferCountIs?: number | undefined;
1032
1033
  } | null;
@@ -1041,12 +1042,13 @@ declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
1041
1042
  pages: number;
1042
1043
  };
1043
1044
  }>;
1044
- declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert) => Promise<{
1045
+ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
1045
1046
  tenantId: string;
1046
1047
  projectId: string;
1047
1048
  id: string;
1048
1049
  name: string;
1049
1050
  description: string | null;
1051
+ prompt: string | null;
1050
1052
  createdAt: string;
1051
1053
  updatedAt: string;
1052
1054
  models: {
@@ -1083,17 +1085,17 @@ declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert)
1083
1085
  } | undefined;
1084
1086
  }[] | undefined;
1085
1087
  } | null;
1086
- graphPrompt: string | null;
1087
1088
  }>;
1088
- declare const updateAgentGraph: (db: DatabaseClient) => (params: {
1089
- scopes: GraphScopeConfig;
1090
- data: AgentGraphUpdate;
1089
+ declare const updateAgent: (db: DatabaseClient) => (params: {
1090
+ scopes: AgentScopeConfig;
1091
+ data: AgentUpdate;
1091
1092
  }) => Promise<{
1092
1093
  tenantId: string;
1093
1094
  projectId: string;
1094
1095
  id: string;
1095
1096
  name: string;
1096
1097
  description: string | null;
1098
+ prompt: string | null;
1097
1099
  createdAt: string;
1098
1100
  updatedAt: string;
1099
1101
  models: {
@@ -1130,40 +1132,39 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
1130
1132
  } | undefined;
1131
1133
  }[] | undefined;
1132
1134
  } | null;
1133
- graphPrompt: string | null;
1134
1135
  }>;
1135
- declare const deleteAgentGraph: (db: DatabaseClient) => (params: {
1136
- scopes: GraphScopeConfig;
1136
+ declare const deleteAgent: (db: DatabaseClient) => (params: {
1137
+ scopes: AgentScopeConfig;
1137
1138
  }) => Promise<boolean>;
1138
1139
  /**
1139
1140
  * Helper function to fetch component relationships using efficient joins
1140
1141
  */
1141
- declare const fetchComponentRelationships: (db: DatabaseClient) => <T extends Record<string, any>>(scopes: ProjectScopeConfig, subAgentIds: string[], config: {
1142
- relationTable: any;
1143
- componentTable: any;
1144
- relationIdField: any;
1145
- componentIdField: any;
1146
- subAgentIdField: any;
1147
- selectFields: Record<string, any>;
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>;
1148
1149
  }) => Promise<Record<string, T>>;
1149
- declare const getGraphAgentInfos: (db: DatabaseClient) => ({ scopes, graphId, subAgentId, }: {
1150
+ declare const getAgentSubAgentInfos: (db: DatabaseClient) => ({ scopes: { tenantId, projectId }, agentId, subAgentId, }: {
1150
1151
  scopes: ProjectScopeConfig;
1151
- graphId: string;
1152
+ agentId: string;
1152
1153
  subAgentId: string;
1153
1154
  }) => Promise<{
1154
1155
  id: string;
1155
1156
  name: string;
1156
1157
  description: string;
1157
1158
  }[]>;
1158
- declare const getFullGraphDefinition: (db: DatabaseClient) => ({ scopes: { tenantId, projectId, graphId }, }: {
1159
- scopes: GraphScopeConfig;
1160
- }) => Promise<FullGraphDefinition | null>;
1159
+ declare const getFullAgentDefinition: (db: DatabaseClient) => ({ scopes: { tenantId, projectId, agentId }, }: {
1160
+ scopes: AgentScopeConfig;
1161
+ }) => Promise<FullAgentDefinition | null>;
1161
1162
  /**
1162
- * Upsert an agent graph (create if it doesn't exist, update if it does)
1163
+ * Upsert an agent (create if it doesn't exist, update if it does)
1163
1164
  */
1164
- declare const upsertAgentGraph: (db: DatabaseClient) => (params: {
1165
- data: AgentGraphInsert;
1166
- }) => Promise<any>;
1165
+ declare const upsertAgent: (db: DatabaseClient) => (params: {
1166
+ data: AgentInsert;
1167
+ }) => Promise<AgentSelect | null>;
1167
1168
 
1168
1169
  declare const getApiKeyById: (db: DatabaseClient) => (params: {
1169
1170
  scopes: ProjectScopeConfig;
@@ -1173,7 +1174,7 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1173
1174
  projectId: string;
1174
1175
  id: string;
1175
1176
  name: string | null;
1176
- graphId: string;
1177
+ agentId: string;
1177
1178
  publicId: string;
1178
1179
  keyHash: string;
1179
1180
  keyPrefix: string;
@@ -1187,7 +1188,7 @@ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) =>
1187
1188
  projectId: string;
1188
1189
  id: string;
1189
1190
  name: string | null;
1190
- graphId: string;
1191
+ agentId: string;
1191
1192
  publicId: string;
1192
1193
  keyHash: string;
1193
1194
  keyPrefix: string;
@@ -1198,13 +1199,13 @@ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) =>
1198
1199
  } | undefined>;
1199
1200
  declare const listApiKeys: (db: DatabaseClient) => (params: {
1200
1201
  scopes: ProjectScopeConfig;
1201
- graphId?: string;
1202
+ agentId?: string;
1202
1203
  }) => Promise<{
1203
1204
  tenantId: string;
1204
1205
  projectId: string;
1205
1206
  id: string;
1206
1207
  name: string | null;
1207
- graphId: string;
1208
+ agentId: string;
1208
1209
  publicId: string;
1209
1210
  keyHash: string;
1210
1211
  keyPrefix: string;
@@ -1216,7 +1217,7 @@ declare const listApiKeys: (db: DatabaseClient) => (params: {
1216
1217
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1217
1218
  scopes: ProjectScopeConfig;
1218
1219
  pagination?: PaginationConfig;
1219
- graphId?: string;
1220
+ agentId?: string;
1220
1221
  }) => Promise<{
1221
1222
  data: ApiKeySelect[];
1222
1223
  pagination: {
@@ -1231,7 +1232,7 @@ declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Pr
1231
1232
  projectId: string;
1232
1233
  id: string;
1233
1234
  name: string | null;
1234
- graphId: string;
1235
+ agentId: string;
1235
1236
  publicId: string;
1236
1237
  keyHash: string;
1237
1238
  keyPrefix: string;
@@ -1249,7 +1250,7 @@ declare const updateApiKey: (db: DatabaseClient) => (params: {
1249
1250
  projectId: string;
1250
1251
  id: string;
1251
1252
  name: string | null;
1252
- graphId: string;
1253
+ agentId: string;
1253
1254
  publicId: string;
1254
1255
  keyHash: string;
1255
1256
  keyPrefix: string;
@@ -1269,7 +1270,7 @@ declare const hasApiKey: (db: DatabaseClient) => (params: {
1269
1270
  declare const updateApiKeyLastUsed: (db: DatabaseClient) => (id: string) => Promise<void>;
1270
1271
  declare const countApiKeys: (db: DatabaseClient) => (params: {
1271
1272
  scopes: ProjectScopeConfig;
1272
- graphId?: string;
1273
+ agentId?: string;
1273
1274
  }) => Promise<number>;
1274
1275
  /**
1275
1276
  * Create a new API key
@@ -1347,7 +1348,7 @@ declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
1347
1348
  id: string;
1348
1349
  }) => Promise<boolean>;
1349
1350
  declare const getArtifactComponentsForAgent: (db: DatabaseClient) => (params: {
1350
- scopes: AgentScopeConfig;
1351
+ scopes: SubAgentScopeConfig;
1351
1352
  }) => Promise<{
1352
1353
  id: string;
1353
1354
  tenantId: string;
@@ -1359,56 +1360,56 @@ declare const getArtifactComponentsForAgent: (db: DatabaseClient) => (params: {
1359
1360
  updatedAt: string;
1360
1361
  }[]>;
1361
1362
  declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (params: {
1362
- scopes: AgentScopeConfig;
1363
+ scopes: SubAgentScopeConfig;
1363
1364
  artifactComponentId: string;
1364
1365
  }) => Promise<{
1365
1366
  tenantId: string;
1366
1367
  projectId: string;
1367
1368
  id: string;
1368
- graphId: string;
1369
+ agentId: string;
1369
1370
  createdAt: string;
1370
1371
  subAgentId: string;
1371
1372
  artifactComponentId: string;
1372
1373
  }>;
1373
1374
  declare const removeArtifactComponentFromAgent: (db: DatabaseClient) => (params: {
1374
- scopes: AgentScopeConfig;
1375
+ scopes: SubAgentScopeConfig;
1375
1376
  artifactComponentId: string;
1376
1377
  }) => Promise<boolean>;
1377
1378
  declare const deleteAgentArtifactComponentRelationByAgent: (db: DatabaseClient) => (params: {
1378
- scopes: AgentScopeConfig;
1379
+ scopes: SubAgentScopeConfig;
1379
1380
  }) => Promise<boolean>;
1380
1381
  declare const getAgentsUsingArtifactComponent: (db: DatabaseClient) => (params: {
1381
1382
  scopes: ProjectScopeConfig;
1382
1383
  artifactComponentId: string;
1383
1384
  }) => Promise<{
1384
- graphId: string;
1385
+ agentId: string;
1385
1386
  subAgentId: string;
1386
1387
  createdAt: string;
1387
1388
  }[]>;
1388
1389
  declare const isArtifactComponentAssociatedWithAgent: (db: DatabaseClient) => (params: {
1389
- scopes: AgentScopeConfig;
1390
+ scopes: SubAgentScopeConfig;
1390
1391
  artifactComponentId: string;
1391
1392
  }) => Promise<boolean>;
1392
- declare const graphHasArtifactComponents: (db: DatabaseClient) => (params: {
1393
- scopes: GraphScopeConfig;
1393
+ declare const agentHasArtifactComponents: (db: DatabaseClient) => (params: {
1394
+ scopes: AgentScopeConfig;
1394
1395
  }) => Promise<boolean>;
1395
1396
  declare const countArtifactComponents: (db: DatabaseClient) => (params: {
1396
1397
  scopes: ProjectScopeConfig;
1397
1398
  }) => Promise<number>;
1398
1399
  declare const countArtifactComponentsForAgent: (db: DatabaseClient) => (params: {
1399
- scopes: AgentScopeConfig;
1400
+ scopes: SubAgentScopeConfig;
1400
1401
  }) => Promise<number>;
1401
1402
  /**
1402
1403
  * Upsert agent-artifact component relation (create if it doesn't exist, no-op if it does)
1403
1404
  */
1404
1405
  declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (params: {
1405
- scopes: AgentScopeConfig;
1406
+ scopes: SubAgentScopeConfig;
1406
1407
  artifactComponentId: string;
1407
1408
  }) => Promise<{
1408
1409
  tenantId: string;
1409
1410
  projectId: string;
1410
1411
  id: string;
1411
- graphId: string;
1412
+ agentId: string;
1412
1413
  createdAt: string;
1413
1414
  subAgentId: string;
1414
1415
  artifactComponentId: string;
@@ -1486,32 +1487,32 @@ declare const getContextConfigCacheEntries: (db: DatabaseClient) => (params: {
1486
1487
  }) => Promise<ContextCacheSelect[]>;
1487
1488
 
1488
1489
  declare const getContextConfigById: (db: DatabaseClient) => (params: {
1489
- scopes: GraphScopeConfig;
1490
+ scopes: AgentScopeConfig;
1490
1491
  id: string;
1491
1492
  }) => Promise<{
1492
1493
  tenantId: string;
1493
1494
  projectId: string;
1494
1495
  id: string;
1495
- graphId: string;
1496
+ agentId: string;
1496
1497
  createdAt: string;
1497
1498
  updatedAt: string;
1498
1499
  headersSchema: unknown;
1499
1500
  contextVariables: Record<string, ContextFetchDefinition> | null;
1500
1501
  } | undefined>;
1501
1502
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
1502
- scopes: GraphScopeConfig;
1503
+ scopes: AgentScopeConfig;
1503
1504
  }) => Promise<{
1504
1505
  tenantId: string;
1505
1506
  projectId: string;
1506
1507
  id: string;
1507
- graphId: string;
1508
+ agentId: string;
1508
1509
  createdAt: string;
1509
1510
  updatedAt: string;
1510
1511
  headersSchema: unknown;
1511
1512
  contextVariables: Record<string, ContextFetchDefinition> | null;
1512
1513
  }[]>;
1513
1514
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1514
- scopes: GraphScopeConfig;
1515
+ scopes: AgentScopeConfig;
1515
1516
  pagination?: PaginationConfig;
1516
1517
  }) => Promise<{
1517
1518
  data: any[];
@@ -1526,36 +1527,36 @@ declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfi
1526
1527
  tenantId: string;
1527
1528
  projectId: string;
1528
1529
  id: string;
1529
- graphId: string;
1530
+ agentId: string;
1530
1531
  createdAt: string;
1531
1532
  updatedAt: string;
1532
1533
  headersSchema: unknown;
1533
1534
  contextVariables: Record<string, ContextFetchDefinition> | null;
1534
1535
  }>;
1535
1536
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
1536
- scopes: GraphScopeConfig;
1537
+ scopes: AgentScopeConfig;
1537
1538
  id: string;
1538
1539
  data: Partial<ContextConfigUpdate>;
1539
1540
  }) => Promise<{
1540
1541
  tenantId: string;
1541
1542
  projectId: string;
1542
1543
  id: string;
1543
- graphId: string;
1544
+ agentId: string;
1544
1545
  createdAt: string;
1545
1546
  updatedAt: string;
1546
1547
  headersSchema: unknown;
1547
1548
  contextVariables: Record<string, ContextFetchDefinition> | null;
1548
1549
  }>;
1549
1550
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
1550
- scopes: GraphScopeConfig;
1551
+ scopes: AgentScopeConfig;
1551
1552
  id: string;
1552
1553
  }) => Promise<boolean>;
1553
1554
  declare const hasContextConfig: (db: DatabaseClient) => (params: {
1554
- scopes: GraphScopeConfig;
1555
+ scopes: AgentScopeConfig;
1555
1556
  id: string;
1556
1557
  }) => Promise<boolean>;
1557
1558
  declare const countContextConfigs: (db: DatabaseClient) => (params: {
1558
- scopes: GraphScopeConfig;
1559
+ scopes: AgentScopeConfig;
1559
1560
  }) => Promise<number>;
1560
1561
  /**
1561
1562
  * Upsert a context config (create if it doesn't exist, update if it does)
@@ -1566,7 +1567,7 @@ declare const upsertContextConfig: (db: DatabaseClient) => (params: {
1566
1567
  tenantId: string;
1567
1568
  projectId: string;
1568
1569
  id: string;
1569
- graphId: string;
1570
+ agentId: string;
1570
1571
  createdAt: string;
1571
1572
  updatedAt: string;
1572
1573
  headersSchema: unknown;
@@ -1843,19 +1844,19 @@ declare const deleteDataComponent: (db: DatabaseClient) => (params: {
1843
1844
  * Get data components for a specific agent
1844
1845
  */
1845
1846
  declare const getDataComponentsForAgent: (db: DatabaseClient) => (params: {
1846
- scopes: AgentScopeConfig;
1847
+ scopes: SubAgentScopeConfig;
1847
1848
  }) => Promise<DataComponentSelect[]>;
1848
1849
  /**
1849
1850
  * Associate a data component with an agent
1850
1851
  */
1851
1852
  declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params: {
1852
- scopes: AgentScopeConfig;
1853
+ scopes: SubAgentScopeConfig;
1853
1854
  dataComponentId: string;
1854
1855
  }) => Promise<{
1855
1856
  tenantId: string;
1856
1857
  projectId: string;
1857
1858
  id: string;
1858
- graphId: string;
1859
+ agentId: string;
1859
1860
  createdAt: string;
1860
1861
  subAgentId: string;
1861
1862
  dataComponentId: string;
@@ -1864,11 +1865,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
1864
1865
  * Remove association between data component and agent
1865
1866
  */
1866
1867
  declare const removeDataComponentFromAgent: (db: DatabaseClient) => (params: {
1867
- scopes: AgentScopeConfig;
1868
+ scopes: SubAgentScopeConfig;
1868
1869
  dataComponentId: string;
1869
1870
  }) => Promise<boolean>;
1870
1871
  declare const deleteAgentDataComponentRelationByAgent: (db: DatabaseClient) => (params: {
1871
- scopes: AgentScopeConfig;
1872
+ scopes: SubAgentScopeConfig;
1872
1873
  }) => Promise<boolean>;
1873
1874
  /**
1874
1875
  * Get all agents that use a specific data component
@@ -1884,20 +1885,20 @@ declare const getAgentsUsingDataComponent: (db: DatabaseClient) => (params: {
1884
1885
  * Check if a data component is associated with an agent
1885
1886
  */
1886
1887
  declare const isDataComponentAssociatedWithAgent: (db: DatabaseClient) => (params: {
1887
- scopes: AgentScopeConfig;
1888
+ scopes: SubAgentScopeConfig;
1888
1889
  dataComponentId: string;
1889
1890
  }) => Promise<boolean>;
1890
1891
  /**
1891
1892
  * Upsert agent-data component relation (create if it doesn't exist, no-op if it does)
1892
1893
  */
1893
1894
  declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params: {
1894
- scopes: AgentScopeConfig;
1895
+ scopes: SubAgentScopeConfig;
1895
1896
  dataComponentId: string;
1896
1897
  }) => Promise<{
1897
1898
  tenantId: string;
1898
1899
  projectId: string;
1899
1900
  id: string;
1900
- graphId: string;
1901
+ agentId: string;
1901
1902
  createdAt: string;
1902
1903
  subAgentId: string;
1903
1904
  dataComponentId: string;
@@ -1923,27 +1924,27 @@ declare const createExternalAgent: (db: DatabaseClient) => (params: ExternalAgen
1923
1924
  * Get external agent by ID
1924
1925
  */
1925
1926
  declare const getExternalAgent: (db: DatabaseClient) => (params: {
1926
- scopes: GraphScopeConfig;
1927
+ scopes: AgentScopeConfig;
1927
1928
  subAgentId: string;
1928
1929
  }) => Promise<ExternalAgentSelect | null>;
1929
1930
  /**
1930
1931
  * Get external agent by base URL
1931
1932
  */
1932
1933
  declare const getExternalAgentByUrl: (db: DatabaseClient) => (params: {
1933
- scopes: GraphScopeConfig;
1934
+ scopes: AgentScopeConfig;
1934
1935
  baseUrl: string;
1935
1936
  }) => Promise<ExternalAgentSelect | null>;
1936
1937
  /**
1937
1938
  * List external agents for a tenant
1938
1939
  */
1939
1940
  declare const listExternalAgents: (db: DatabaseClient) => (params: {
1940
- scopes: GraphScopeConfig;
1941
+ scopes: AgentScopeConfig;
1941
1942
  }) => Promise<ExternalAgentSelect[]>;
1942
1943
  /**
1943
1944
  * List external agents with pagination
1944
1945
  */
1945
1946
  declare const listExternalAgentsPaginated: (db: DatabaseClient) => (params: {
1946
- scopes: GraphScopeConfig;
1947
+ scopes: AgentScopeConfig;
1947
1948
  pagination?: PaginationConfig;
1948
1949
  }) => Promise<{
1949
1950
  data: ExternalAgentSelect[];
@@ -1958,7 +1959,7 @@ declare const listExternalAgentsPaginated: (db: DatabaseClient) => (params: {
1958
1959
  * Update an existing external agent
1959
1960
  */
1960
1961
  declare const updateExternalAgent: (db: DatabaseClient) => (params: {
1961
- scopes: GraphScopeConfig;
1962
+ scopes: AgentScopeConfig;
1962
1963
  subAgentId: string;
1963
1964
  data: Partial<ExternalAgentUpdate>;
1964
1965
  }) => Promise<ExternalAgentSelect | null>;
@@ -1972,28 +1973,28 @@ declare const upsertExternalAgent: (db: DatabaseClient) => (params: {
1972
1973
  * Delete an external agent
1973
1974
  */
1974
1975
  declare const deleteExternalAgent: (db: DatabaseClient) => (params: {
1975
- scopes: GraphScopeConfig;
1976
+ scopes: AgentScopeConfig;
1976
1977
  subAgentId: string;
1977
1978
  }) => Promise<boolean>;
1978
1979
  /**
1979
1980
  * Check if an external agent exists
1980
1981
  */
1981
1982
  declare const externalAgentExists: (db: DatabaseClient) => (params: {
1982
- scopes: GraphScopeConfig;
1983
+ scopes: AgentScopeConfig;
1983
1984
  subAgentId: string;
1984
1985
  }) => Promise<boolean>;
1985
1986
  /**
1986
1987
  * Check if an external agent exists by URL
1987
1988
  */
1988
1989
  declare const externalAgentUrlExists: (db: DatabaseClient) => (params: {
1989
- scopes: GraphScopeConfig;
1990
+ scopes: AgentScopeConfig;
1990
1991
  baseUrl: string;
1991
1992
  }) => Promise<boolean>;
1992
1993
  /**
1993
1994
  * Count external agents for a tenant
1994
1995
  */
1995
1996
  declare const countExternalAgents: (db: DatabaseClient) => (params: {
1996
- scopes: GraphScopeConfig;
1997
+ scopes: AgentScopeConfig;
1997
1998
  }) => Promise<number>;
1998
1999
 
1999
2000
  /**
@@ -2025,10 +2026,10 @@ declare const deleteFunction: (db: DatabaseClient) => (params: {
2025
2026
  }) => Promise<void>;
2026
2027
 
2027
2028
  /**
2028
- * Get a function tool by ID (graph-scoped)
2029
+ * Get a function tool by ID (agent-scoped)
2029
2030
  */
2030
2031
  declare const getFunctionToolById: (db: DatabaseClient) => (params: {
2031
- scopes: GraphScopeConfig;
2032
+ scopes: AgentScopeConfig;
2032
2033
  functionToolId: string;
2033
2034
  }) => Promise<{
2034
2035
  createdAt: string;
@@ -2036,16 +2037,16 @@ declare const getFunctionToolById: (db: DatabaseClient) => (params: {
2036
2037
  name: string;
2037
2038
  description: string | null;
2038
2039
  functionId: string;
2039
- graphId: string;
2040
+ agentId: string;
2040
2041
  projectId: string;
2041
2042
  tenantId: string;
2042
2043
  id: string;
2043
2044
  }>;
2044
2045
  /**
2045
- * List function tools (graph-scoped)
2046
+ * List function tools (agent-scoped)
2046
2047
  */
2047
2048
  declare const listFunctionTools: (db: DatabaseClient) => (params: {
2048
- scopes: GraphScopeConfig;
2049
+ scopes: AgentScopeConfig;
2049
2050
  pagination?: PaginationConfig;
2050
2051
  }) => Promise<{
2051
2052
  data: {
@@ -2054,7 +2055,7 @@ declare const listFunctionTools: (db: DatabaseClient) => (params: {
2054
2055
  name: string;
2055
2056
  description: string | null;
2056
2057
  functionId: string;
2057
- graphId: string;
2058
+ agentId: string;
2058
2059
  projectId: string;
2059
2060
  tenantId: string;
2060
2061
  id: string;
@@ -2067,27 +2068,27 @@ declare const listFunctionTools: (db: DatabaseClient) => (params: {
2067
2068
  };
2068
2069
  }>;
2069
2070
  /**
2070
- * Create a function tool (graph-scoped)
2071
+ * Create a function tool (agent-scoped)
2071
2072
  */
2072
2073
  declare const createFunctionTool: (db: DatabaseClient) => (params: {
2073
2074
  data: FunctionToolApiInsert;
2074
- scopes: GraphScopeConfig;
2075
+ scopes: AgentScopeConfig;
2075
2076
  }) => Promise<{
2076
2077
  tenantId: string;
2077
2078
  projectId: string;
2078
2079
  id: string;
2079
2080
  name: string;
2080
2081
  description: string | null;
2081
- graphId: string;
2082
+ agentId: string;
2082
2083
  createdAt: string;
2083
2084
  updatedAt: string;
2084
2085
  functionId: string;
2085
2086
  }>;
2086
2087
  /**
2087
- * Update a function tool (graph-scoped)
2088
+ * Update a function tool (agent-scoped)
2088
2089
  */
2089
2090
  declare const updateFunctionTool: (db: DatabaseClient) => (params: {
2090
- scopes: GraphScopeConfig;
2091
+ scopes: AgentScopeConfig;
2091
2092
  functionToolId: string;
2092
2093
  data: FunctionToolApiUpdate;
2093
2094
  }) => Promise<{
@@ -2096,16 +2097,16 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
2096
2097
  id: string;
2097
2098
  name: string;
2098
2099
  description: string | null;
2099
- graphId: string;
2100
+ agentId: string;
2100
2101
  createdAt: string;
2101
2102
  updatedAt: string;
2102
2103
  functionId: string;
2103
2104
  }>;
2104
2105
  /**
2105
- * Delete a function tool (graph-scoped)
2106
+ * Delete a function tool (agent-scoped)
2106
2107
  */
2107
2108
  declare const deleteFunctionTool: (db: DatabaseClient) => (params: {
2108
- scopes: GraphScopeConfig;
2109
+ scopes: AgentScopeConfig;
2109
2110
  functionToolId: string;
2110
2111
  }) => Promise<boolean>;
2111
2112
  /**
@@ -2113,14 +2114,14 @@ declare const deleteFunctionTool: (db: DatabaseClient) => (params: {
2113
2114
  */
2114
2115
  declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
2115
2116
  data: FunctionToolApiInsert;
2116
- scopes: GraphScopeConfig;
2117
+ scopes: AgentScopeConfig;
2117
2118
  }) => Promise<{
2118
2119
  tenantId: string;
2119
2120
  projectId: string;
2120
2121
  id: string;
2121
2122
  name: string;
2122
2123
  description: string | null;
2123
- graphId: string;
2124
+ agentId: string;
2124
2125
  createdAt: string;
2125
2126
  updatedAt: string;
2126
2127
  functionId: string;
@@ -2129,7 +2130,7 @@ declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
2129
2130
  scopes: {
2130
2131
  tenantId: string;
2131
2132
  projectId: string;
2132
- graphId: string;
2133
+ agentId: string;
2133
2134
  };
2134
2135
  subAgentId: string;
2135
2136
  }) => Promise<{
@@ -2139,7 +2140,7 @@ declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
2139
2140
  name: string;
2140
2141
  description: string | null;
2141
2142
  functionId: string;
2142
- graphId: string;
2143
+ agentId: string;
2143
2144
  projectId: string;
2144
2145
  tenantId: string;
2145
2146
  id: string;
@@ -2155,7 +2156,7 @@ declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
2155
2156
  * Upsert an agent-function tool relation (create if it doesn't exist, update if it does)
2156
2157
  */
2157
2158
  declare const upsertSubAgentFunctionToolRelation: (db: DatabaseClient) => (params: {
2158
- scopes: GraphScopeConfig;
2159
+ scopes: AgentScopeConfig;
2159
2160
  subAgentId: string;
2160
2161
  functionToolId: string;
2161
2162
  relationId?: string;
@@ -2166,7 +2167,7 @@ declare const upsertSubAgentFunctionToolRelation: (db: DatabaseClient) => (param
2166
2167
  * Add a function tool to an agent
2167
2168
  */
2168
2169
  declare const addFunctionToolToSubAgent: (db: DatabaseClient) => (params: {
2169
- scopes: GraphScopeConfig;
2170
+ scopes: AgentScopeConfig;
2170
2171
  subAgentId: string;
2171
2172
  functionToolId: string;
2172
2173
  }) => Promise<{
@@ -2176,7 +2177,7 @@ declare const addFunctionToolToSubAgent: (db: DatabaseClient) => (params: {
2176
2177
  * Update an agent-function tool relation
2177
2178
  */
2178
2179
  declare const updateSubAgentFunctionToolRelation: (db: DatabaseClient) => (params: {
2179
- scopes: GraphScopeConfig;
2180
+ scopes: AgentScopeConfig;
2180
2181
  relationId: string;
2181
2182
  data: {
2182
2183
  subAgentId: string;
@@ -2186,31 +2187,31 @@ declare const updateSubAgentFunctionToolRelation: (db: DatabaseClient) => (param
2186
2187
  id: string;
2187
2188
  }>;
2188
2189
 
2189
- interface GraphLogger {
2190
+ interface AgentLogger {
2190
2191
  info(obj: Record<string, any>, msg?: string): void;
2191
2192
  error(obj: Record<string, any>, msg?: string): void;
2192
2193
  }
2193
2194
  /**
2194
- * Server-side implementation of createFullGraph that performs actual database operations.
2195
- * This function creates a complete graph with all agents, tools, and relationships.
2195
+ * Server-side implementation of createFullAgent that performs actual database operations.
2196
+ * This function creates a complete agent with all agents, tools, and relationships.
2196
2197
  */
2197
- declare const createFullGraphServerSide: (db: DatabaseClient, logger?: GraphLogger) => (scopes: ProjectScopeConfig, graphData: FullGraphDefinition) => Promise<FullGraphDefinition>;
2198
+ declare const createFullAgentServerSide: (db: DatabaseClient, logger?: AgentLogger) => (scopes: ProjectScopeConfig, agentData: FullAgentDefinition) => Promise<FullAgentDefinition>;
2198
2199
  /**
2199
- * Server-side implementation of updateFullGraph that performs actual database operations.
2200
- * This function updates a complete graph with all agents, tools, and relationships.
2200
+ * Server-side implementation of updateFullAgent that performs actual database operations.
2201
+ * This function updates a complete agent with all agents, tools, and relationships.
2201
2202
  */
2202
- declare const updateFullGraphServerSide: (db: DatabaseClient, logger?: GraphLogger) => (scopes: ProjectScopeConfig, graphData: FullGraphDefinition) => Promise<FullGraphDefinition>;
2203
+ declare const updateFullAgentServerSide: (db: DatabaseClient, logger?: AgentLogger) => (scopes: ProjectScopeConfig, agentData: FullAgentDefinition) => Promise<FullAgentDefinition>;
2203
2204
  /**
2204
- * Get a complete graph definition by ID
2205
+ * Get a complete agent definition by ID
2205
2206
  */
2206
- declare const getFullGraph: (db: DatabaseClient, logger?: GraphLogger) => (params: {
2207
- scopes: GraphScopeConfig;
2208
- }) => Promise<FullGraphDefinition | null>;
2207
+ declare const getFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (params: {
2208
+ scopes: AgentScopeConfig;
2209
+ }) => Promise<FullAgentDefinition | null>;
2209
2210
  /**
2210
- * Delete a complete graph and cascade to all related entities
2211
+ * Delete a complete agent and cascade to all related entities
2211
2212
  */
2212
- declare const deleteFullGraph: (db: DatabaseClient, logger?: GraphLogger) => (params: {
2213
- scopes: GraphScopeConfig;
2213
+ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (params: {
2214
+ scopes: AgentScopeConfig;
2214
2215
  }) => Promise<boolean>;
2215
2216
 
2216
2217
  /**
@@ -2477,18 +2478,18 @@ declare const countMessagesByConversation: (db: DatabaseClient) => (params: {
2477
2478
  /**
2478
2479
  * Server-side data access layer for Full Project operations.
2479
2480
  * This module provides functions for creating, retrieving, updating, and deleting
2480
- * complete project definitions with all nested resources (graphs, agents, tools, etc.).
2481
+ * complete project definitions with all nested resources (agent, agents, tools, etc.).
2481
2482
  */
2482
2483
 
2483
2484
  type ProjectLogger = ReturnType<typeof getLogger>;
2484
2485
  /**
2485
2486
  * Server-side implementation of createFullProject that performs actual database operations.
2486
- * This function creates a complete project with all graphs and their nested resources.
2487
+ * This function creates a complete project with all agent and their nested resources.
2487
2488
  */
2488
2489
  declare const createFullProjectServerSide: (db: DatabaseClient, logger?: ProjectLogger) => (scopes: ProjectScopeConfig, projectData: FullProjectDefinition) => Promise<FullProjectDefinition>;
2489
2490
  /**
2490
2491
  * Server-side implementation of updateFullProject that performs actual database operations.
2491
- * This function updates a complete project with all graphs and their nested resources.
2492
+ * This function updates a complete project with all agent and their nested resources.
2492
2493
  */
2493
2494
  declare const updateFullProjectServerSide: (db: DatabaseClient, logger?: ProjectLogger) => (scopes: ProjectScopeConfig, projectData: FullProjectDefinition) => Promise<FullProjectDefinition>;
2494
2495
  /**
@@ -2569,13 +2570,13 @@ declare const deleteProject: (db: DatabaseClient) => (params: {
2569
2570
  }) => Promise<boolean>;
2570
2571
 
2571
2572
  declare const getAgentRelationById: (db: DatabaseClient) => (params: {
2572
- scopes: GraphScopeConfig;
2573
+ scopes: AgentScopeConfig;
2573
2574
  relationId: string;
2574
2575
  }) => Promise<{
2575
2576
  tenantId: string;
2576
2577
  projectId: string;
2577
2578
  id: string;
2578
- graphId: string;
2579
+ agentId: string;
2579
2580
  createdAt: string;
2580
2581
  updatedAt: string;
2581
2582
  sourceSubAgentId: string;
@@ -2584,7 +2585,7 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
2584
2585
  relationType: string | null;
2585
2586
  } | undefined>;
2586
2587
  declare const listAgentRelations: (db: DatabaseClient) => (params: {
2587
- scopes: GraphScopeConfig;
2588
+ scopes: AgentScopeConfig;
2588
2589
  pagination?: PaginationConfig;
2589
2590
  }) => Promise<{
2590
2591
  data: {
@@ -2594,7 +2595,7 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
2594
2595
  targetSubAgentId: string | null;
2595
2596
  externalSubAgentId: string | null;
2596
2597
  relationType: string | null;
2597
- graphId: string;
2598
+ agentId: string;
2598
2599
  projectId: string;
2599
2600
  tenantId: string;
2600
2601
  id: string;
@@ -2607,12 +2608,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
2607
2608
  };
2608
2609
  }>;
2609
2610
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
2610
- scopes: AgentScopeConfig;
2611
+ scopes: SubAgentScopeConfig;
2611
2612
  }) => Promise<{
2612
2613
  tenantId: string;
2613
2614
  projectId: string;
2614
2615
  id: string;
2615
- graphId: string;
2616
+ agentId: string;
2616
2617
  createdAt: string;
2617
2618
  updatedAt: string;
2618
2619
  sourceSubAgentId: string;
@@ -2620,13 +2621,13 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
2620
2621
  externalSubAgentId: string | null;
2621
2622
  relationType: string | null;
2622
2623
  }[]>;
2623
- declare const getAgentRelationsByGraph: (db: DatabaseClient) => (params: {
2624
- scopes: GraphScopeConfig;
2624
+ declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2625
+ scopes: AgentScopeConfig;
2625
2626
  }) => Promise<{
2626
2627
  tenantId: string;
2627
2628
  projectId: string;
2628
2629
  id: string;
2629
- graphId: string;
2630
+ agentId: string;
2630
2631
  createdAt: string;
2631
2632
  updatedAt: string;
2632
2633
  sourceSubAgentId: string;
@@ -2635,7 +2636,7 @@ declare const getAgentRelationsByGraph: (db: DatabaseClient) => (params: {
2635
2636
  relationType: string | null;
2636
2637
  }[]>;
2637
2638
  declare const getAgentRelationsBySource: (db: DatabaseClient) => (params: {
2638
- scopes: GraphScopeConfig;
2639
+ scopes: AgentScopeConfig;
2639
2640
  sourceSubAgentId: string;
2640
2641
  pagination?: PaginationConfig;
2641
2642
  }) => Promise<{
@@ -2646,7 +2647,7 @@ declare const getAgentRelationsBySource: (db: DatabaseClient) => (params: {
2646
2647
  targetSubAgentId: string | null;
2647
2648
  externalSubAgentId: string | null;
2648
2649
  relationType: string | null;
2649
- graphId: string;
2650
+ agentId: string;
2650
2651
  projectId: string;
2651
2652
  tenantId: string;
2652
2653
  id: string;
@@ -2659,7 +2660,7 @@ declare const getAgentRelationsBySource: (db: DatabaseClient) => (params: {
2659
2660
  };
2660
2661
  }>;
2661
2662
  declare const getAgentRelationsByTarget: (db: DatabaseClient) => (params: {
2662
- scopes: GraphScopeConfig;
2663
+ scopes: AgentScopeConfig;
2663
2664
  targetSubAgentId: string;
2664
2665
  pagination?: PaginationConfig;
2665
2666
  }) => Promise<{
@@ -2670,7 +2671,7 @@ declare const getAgentRelationsByTarget: (db: DatabaseClient) => (params: {
2670
2671
  targetSubAgentId: string | null;
2671
2672
  externalSubAgentId: string | null;
2672
2673
  relationType: string | null;
2673
- graphId: string;
2674
+ agentId: string;
2674
2675
  projectId: string;
2675
2676
  tenantId: string;
2676
2677
  id: string;
@@ -2683,7 +2684,7 @@ declare const getAgentRelationsByTarget: (db: DatabaseClient) => (params: {
2683
2684
  };
2684
2685
  }>;
2685
2686
  declare const getExternalAgentRelations: (db: DatabaseClient) => (params: {
2686
- scopes: GraphScopeConfig;
2687
+ scopes: AgentScopeConfig;
2687
2688
  externalSubAgentId: string;
2688
2689
  pagination?: PaginationConfig;
2689
2690
  }) => Promise<{
@@ -2694,7 +2695,7 @@ declare const getExternalAgentRelations: (db: DatabaseClient) => (params: {
2694
2695
  targetSubAgentId: string | null;
2695
2696
  externalSubAgentId: string | null;
2696
2697
  relationType: string | null;
2697
- graphId: string;
2698
+ agentId: string;
2698
2699
  projectId: string;
2699
2700
  tenantId: string;
2700
2701
  id: string;
@@ -2706,8 +2707,8 @@ declare const getExternalAgentRelations: (db: DatabaseClient) => (params: {
2706
2707
  pages: number;
2707
2708
  };
2708
2709
  }>;
2709
- declare const getRelatedAgentsForGraph: (db: DatabaseClient) => (params: {
2710
- scopes: GraphScopeConfig;
2710
+ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
2711
+ scopes: AgentScopeConfig;
2711
2712
  subAgentId: string;
2712
2713
  }) => Promise<{
2713
2714
  internalRelations: {
@@ -2731,7 +2732,7 @@ declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentR
2731
2732
  tenantId: string;
2732
2733
  projectId: string;
2733
2734
  id: string;
2734
- graphId: string;
2735
+ agentId: string;
2735
2736
  createdAt: string;
2736
2737
  updatedAt: string;
2737
2738
  sourceSubAgentId: string;
@@ -2740,10 +2741,10 @@ declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentR
2740
2741
  relationType: string | null;
2741
2742
  }>;
2742
2743
  /**
2743
- * Check if agent relation exists by graph, source, target, and relation type
2744
+ * Check if sub-agent relation exists by agent, source, target, and relation type
2744
2745
  */
2745
2746
  declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2746
- scopes: GraphScopeConfig;
2747
+ scopes: AgentScopeConfig;
2747
2748
  sourceSubAgentId: string;
2748
2749
  targetSubAgentId?: string;
2749
2750
  externalSubAgentId?: string;
@@ -2752,7 +2753,7 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2752
2753
  tenantId: string;
2753
2754
  projectId: string;
2754
2755
  id: string;
2755
- graphId: string;
2756
+ agentId: string;
2756
2757
  createdAt: string;
2757
2758
  updatedAt: string;
2758
2759
  sourceSubAgentId: string;
@@ -2767,7 +2768,7 @@ declare const upsertAgentRelation: (db: DatabaseClient) => (params: SubAgentRela
2767
2768
  tenantId: string;
2768
2769
  projectId: string;
2769
2770
  id: string;
2770
- graphId: string;
2771
+ agentId: string;
2771
2772
  createdAt: string;
2772
2773
  updatedAt: string;
2773
2774
  sourceSubAgentId: string;
@@ -2779,7 +2780,7 @@ declare const createExternalAgentRelation: (db: DatabaseClient) => (params: Exte
2779
2780
  tenantId: string;
2780
2781
  projectId: string;
2781
2782
  id: string;
2782
- graphId: string;
2783
+ agentId: string;
2783
2784
  createdAt: string;
2784
2785
  updatedAt: string;
2785
2786
  sourceSubAgentId: string;
@@ -2788,14 +2789,14 @@ declare const createExternalAgentRelation: (db: DatabaseClient) => (params: Exte
2788
2789
  relationType: string | null;
2789
2790
  }>;
2790
2791
  declare const updateAgentRelation: (db: DatabaseClient) => (params: {
2791
- scopes: GraphScopeConfig;
2792
+ scopes: AgentScopeConfig;
2792
2793
  relationId: string;
2793
2794
  data: SubAgentRelationUpdate;
2794
2795
  }) => Promise<{
2795
2796
  tenantId: string;
2796
2797
  projectId: string;
2797
2798
  id: string;
2798
- graphId: string;
2799
+ agentId: string;
2799
2800
  createdAt: string;
2800
2801
  updatedAt: string;
2801
2802
  sourceSubAgentId: string;
@@ -2804,14 +2805,14 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
2804
2805
  relationType: string | null;
2805
2806
  }>;
2806
2807
  declare const deleteSubAgentRelation: (db: DatabaseClient) => (params: {
2807
- scopes: GraphScopeConfig;
2808
+ scopes: AgentScopeConfig;
2808
2809
  relationId: string;
2809
2810
  }) => Promise<boolean>;
2810
- declare const deleteAgentRelationsByGraph: (db: DatabaseClient) => (params: {
2811
- scopes: GraphScopeConfig;
2811
+ declare const deleteAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2812
+ scopes: AgentScopeConfig;
2812
2813
  }) => Promise<boolean>;
2813
2814
  declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2814
- scopes: GraphScopeConfig;
2815
+ scopes: AgentScopeConfig;
2815
2816
  relationId?: string;
2816
2817
  data: {
2817
2818
  subAgentId: string;
@@ -2823,7 +2824,7 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2823
2824
  tenantId: string;
2824
2825
  projectId: string;
2825
2826
  id: string;
2826
- graphId: string;
2827
+ agentId: string;
2827
2828
  createdAt: string;
2828
2829
  updatedAt: string;
2829
2830
  headers: Record<string, string> | null;
@@ -2832,14 +2833,14 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2832
2833
  subAgentId: string;
2833
2834
  }>;
2834
2835
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2835
- scopes: GraphScopeConfig;
2836
+ scopes: AgentScopeConfig;
2836
2837
  relationId: string;
2837
2838
  data: SubAgentToolRelationUpdate;
2838
2839
  }) => Promise<{
2839
2840
  tenantId: string;
2840
2841
  projectId: string;
2841
2842
  id: string;
2842
- graphId: string;
2843
+ agentId: string;
2843
2844
  createdAt: string;
2844
2845
  updatedAt: string;
2845
2846
  headers: Record<string, string> | null;
@@ -2848,20 +2849,20 @@ declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2848
2849
  subAgentId: string;
2849
2850
  }>;
2850
2851
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
2851
- scopes: GraphScopeConfig;
2852
+ scopes: AgentScopeConfig;
2852
2853
  relationId: string;
2853
2854
  }) => Promise<boolean>;
2854
2855
  declare const deleteAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
2855
- scopes: AgentScopeConfig;
2856
+ scopes: SubAgentScopeConfig;
2856
2857
  }) => Promise<boolean>;
2857
2858
  declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
2858
- scopes: AgentScopeConfig;
2859
+ scopes: SubAgentScopeConfig;
2859
2860
  relationId: string;
2860
2861
  }) => Promise<{
2861
2862
  tenantId: string;
2862
2863
  projectId: string;
2863
2864
  id: string;
2864
- graphId: string;
2865
+ agentId: string;
2865
2866
  createdAt: string;
2866
2867
  updatedAt: string;
2867
2868
  headers: Record<string, string> | null;
@@ -2870,7 +2871,7 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
2870
2871
  subAgentId: string;
2871
2872
  } | undefined>;
2872
2873
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
2873
- scopes: AgentScopeConfig;
2874
+ scopes: SubAgentScopeConfig;
2874
2875
  pagination?: PaginationConfig;
2875
2876
  }) => Promise<{
2876
2877
  data: {
@@ -2880,7 +2881,7 @@ declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
2880
2881
  selectedTools: string[] | null;
2881
2882
  headers: Record<string, string> | null;
2882
2883
  subAgentId: string;
2883
- graphId: string;
2884
+ agentId: string;
2884
2885
  projectId: string;
2885
2886
  tenantId: string;
2886
2887
  id: string;
@@ -2893,7 +2894,7 @@ declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
2893
2894
  };
2894
2895
  }>;
2895
2896
  declare const getAgentToolRelationByTool: (db: DatabaseClient) => (params: {
2896
- scopes: GraphScopeConfig;
2897
+ scopes: AgentScopeConfig;
2897
2898
  toolId: string;
2898
2899
  pagination?: PaginationConfig;
2899
2900
  }) => Promise<{
@@ -2904,7 +2905,7 @@ declare const getAgentToolRelationByTool: (db: DatabaseClient) => (params: {
2904
2905
  selectedTools: string[] | null;
2905
2906
  headers: Record<string, string> | null;
2906
2907
  subAgentId: string;
2907
- graphId: string;
2908
+ agentId: string;
2908
2909
  projectId: string;
2909
2910
  tenantId: string;
2910
2911
  id: string;
@@ -2917,7 +2918,7 @@ declare const getAgentToolRelationByTool: (db: DatabaseClient) => (params: {
2917
2918
  };
2918
2919
  }>;
2919
2920
  declare const listAgentToolRelations: (db: DatabaseClient) => (params: {
2920
- scopes: GraphScopeConfig;
2921
+ scopes: AgentScopeConfig;
2921
2922
  pagination?: PaginationConfig;
2922
2923
  }) => Promise<{
2923
2924
  data: {
@@ -2927,7 +2928,7 @@ declare const listAgentToolRelations: (db: DatabaseClient) => (params: {
2927
2928
  selectedTools: string[] | null;
2928
2929
  headers: Record<string, string> | null;
2929
2930
  subAgentId: string;
2930
- graphId: string;
2931
+ agentId: string;
2931
2932
  projectId: string;
2932
2933
  tenantId: string;
2933
2934
  id: string;
@@ -2940,7 +2941,7 @@ declare const listAgentToolRelations: (db: DatabaseClient) => (params: {
2940
2941
  };
2941
2942
  }>;
2942
2943
  declare const getToolsForAgent: (db: DatabaseClient) => (params: {
2943
- scopes: AgentScopeConfig;
2944
+ scopes: SubAgentScopeConfig;
2944
2945
  pagination?: PaginationConfig;
2945
2946
  }) => Promise<{
2946
2947
  data: {
@@ -2979,7 +2980,7 @@ declare const getToolsForAgent: (db: DatabaseClient) => (params: {
2979
2980
  };
2980
2981
  }>;
2981
2982
  declare const getAgentsForTool: (db: DatabaseClient) => (params: {
2982
- scopes: GraphScopeConfig;
2983
+ scopes: AgentScopeConfig;
2983
2984
  toolId: string;
2984
2985
  pagination?: PaginationConfig;
2985
2986
  }) => Promise<{
@@ -3027,14 +3028,14 @@ declare const getAgentsForTool: (db: DatabaseClient) => (params: {
3027
3028
  };
3028
3029
  }>;
3029
3030
  declare const validateInternalSubAgent: (db: DatabaseClient) => (params: {
3030
- scopes: AgentScopeConfig;
3031
+ scopes: SubAgentScopeConfig;
3031
3032
  }) => Promise<boolean>;
3032
3033
  declare const validateExternalAgent: (db: DatabaseClient) => (params: {
3033
- scopes: AgentScopeConfig;
3034
+ scopes: SubAgentScopeConfig;
3034
3035
  }) => Promise<boolean>;
3035
3036
 
3036
3037
  declare const getSubAgentById: (db: DatabaseClient) => (params: {
3037
- scopes: GraphScopeConfig;
3038
+ scopes: AgentScopeConfig;
3038
3039
  subAgentId: string;
3039
3040
  }) => Promise<{
3040
3041
  tenantId: string;
@@ -3043,7 +3044,7 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3043
3044
  name: string;
3044
3045
  description: string;
3045
3046
  prompt: string;
3046
- graphId: string;
3047
+ agentId: string;
3047
3048
  createdAt: string;
3048
3049
  updatedAt: string;
3049
3050
  models: {
@@ -3066,7 +3067,7 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3066
3067
  conversationHistoryConfig: ConversationHistoryConfig | null;
3067
3068
  } | undefined>;
3068
3069
  declare const listSubAgents: (db: DatabaseClient) => (params: {
3069
- scopes: GraphScopeConfig;
3070
+ scopes: AgentScopeConfig;
3070
3071
  }) => Promise<{
3071
3072
  tenantId: string;
3072
3073
  projectId: string;
@@ -3074,7 +3075,7 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3074
3075
  name: string;
3075
3076
  description: string;
3076
3077
  prompt: string;
3077
- graphId: string;
3078
+ agentId: string;
3078
3079
  createdAt: string;
3079
3080
  updatedAt: string;
3080
3081
  models: {
@@ -3097,7 +3098,7 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3097
3098
  conversationHistoryConfig: ConversationHistoryConfig | null;
3098
3099
  }[]>;
3099
3100
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3100
- scopes: GraphScopeConfig;
3101
+ scopes: AgentScopeConfig;
3101
3102
  pagination?: PaginationConfig;
3102
3103
  }) => Promise<{
3103
3104
  data: {
@@ -3124,7 +3125,7 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3124
3125
  } | null;
3125
3126
  name: string;
3126
3127
  description: string;
3127
- graphId: string;
3128
+ agentId: string;
3128
3129
  projectId: string;
3129
3130
  tenantId: string;
3130
3131
  id: string;
@@ -3143,7 +3144,7 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3143
3144
  name: string;
3144
3145
  description: string;
3145
3146
  prompt: string;
3146
- graphId: string;
3147
+ agentId: string;
3147
3148
  createdAt: string;
3148
3149
  updatedAt: string;
3149
3150
  models: {
@@ -3166,7 +3167,7 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3166
3167
  conversationHistoryConfig: ConversationHistoryConfig | null;
3167
3168
  }>;
3168
3169
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
3169
- scopes: GraphScopeConfig;
3170
+ scopes: AgentScopeConfig;
3170
3171
  subAgentId: string;
3171
3172
  data: SubAgentUpdate;
3172
3173
  }) => Promise<{
@@ -3176,7 +3177,7 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3176
3177
  name: string;
3177
3178
  description: string;
3178
3179
  prompt: string;
3179
- graphId: string;
3180
+ agentId: string;
3180
3181
  createdAt: string;
3181
3182
  updatedAt: string;
3182
3183
  models: {
@@ -3205,11 +3206,11 @@ declare const upsertSubAgent: (db: DatabaseClient) => (params: {
3205
3206
  data: SubAgentInsert;
3206
3207
  }) => Promise<SubAgentSelect>;
3207
3208
  declare const deleteSubAgent: (db: DatabaseClient) => (params: {
3208
- scopes: GraphScopeConfig;
3209
+ scopes: AgentScopeConfig;
3209
3210
  subAgentId: string;
3210
3211
  }) => Promise<boolean>;
3211
3212
  declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
3212
- scopes: GraphScopeConfig;
3213
+ scopes: AgentScopeConfig;
3213
3214
  subAgentIds: string[];
3214
3215
  }) => Promise<{
3215
3216
  createdAt: string;
@@ -3235,7 +3236,7 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
3235
3236
  } | null;
3236
3237
  name: string;
3237
3238
  description: string;
3238
- graphId: string;
3239
+ agentId: string;
3239
3240
  projectId: string;
3240
3241
  tenantId: string;
3241
3242
  id: string;
@@ -3245,7 +3246,7 @@ declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promis
3245
3246
  tenantId: string;
3246
3247
  projectId: string;
3247
3248
  id: string;
3248
- graphId: string;
3249
+ agentId: string;
3249
3250
  createdAt: string;
3250
3251
  updatedAt: string;
3251
3252
  status: string;
@@ -3266,7 +3267,7 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3266
3267
  tenantId: string;
3267
3268
  projectId: string;
3268
3269
  id: string;
3269
- graphId: string;
3270
+ agentId: string;
3270
3271
  createdAt: string;
3271
3272
  updatedAt: string;
3272
3273
  status: string;
@@ -3374,7 +3375,7 @@ declare const deleteTool: (db: DatabaseClient) => (params: {
3374
3375
  toolId: string;
3375
3376
  }) => Promise<boolean>;
3376
3377
  declare const addToolToAgent: (db: DatabaseClient) => (params: {
3377
- scopes: GraphScopeConfig;
3378
+ scopes: AgentScopeConfig;
3378
3379
  subAgentId: string;
3379
3380
  toolId: string;
3380
3381
  selectedTools?: string[] | null;
@@ -3383,7 +3384,7 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3383
3384
  tenantId: string;
3384
3385
  projectId: string;
3385
3386
  id: string;
3386
- graphId: string;
3387
+ agentId: string;
3387
3388
  createdAt: string;
3388
3389
  updatedAt: string;
3389
3390
  headers: Record<string, string> | null;
@@ -3392,14 +3393,14 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3392
3393
  subAgentId: string;
3393
3394
  }>;
3394
3395
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3395
- scopes: GraphScopeConfig;
3396
+ scopes: AgentScopeConfig;
3396
3397
  subAgentId: string;
3397
3398
  toolId: string;
3398
3399
  }) => Promise<{
3399
3400
  tenantId: string;
3400
3401
  projectId: string;
3401
3402
  id: string;
3402
- graphId: string;
3403
+ agentId: string;
3403
3404
  createdAt: string;
3404
3405
  updatedAt: string;
3405
3406
  headers: Record<string, string> | null;
@@ -3411,7 +3412,7 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3411
3412
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
3412
3413
  */
3413
3414
  declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3414
- scopes: GraphScopeConfig;
3415
+ scopes: AgentScopeConfig;
3415
3416
  subAgentId: string;
3416
3417
  toolId: string;
3417
3418
  selectedTools?: string[] | null;
@@ -3421,7 +3422,7 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3421
3422
  tenantId: string;
3422
3423
  projectId: string;
3423
3424
  id: string;
3424
- graphId: string;
3425
+ agentId: string;
3425
3426
  createdAt: string;
3426
3427
  updatedAt: string;
3427
3428
  headers: Record<string, string> | null;
@@ -3498,10 +3499,10 @@ declare function validateHttpRequestHeaders(headersSchema: any, httpRequest: Par
3498
3499
  * Validates headers against the JSON Schema stored in context configuration
3499
3500
  * Supports both legacy simple schemas and new comprehensive HTTP request schemas
3500
3501
  */
3501
- declare function validateHeaders({ tenantId, projectId, graphId, conversationId, parsedRequest, dbClient, credentialStores, }: {
3502
+ declare function validateHeaders({ tenantId, projectId, agentId, conversationId, parsedRequest, dbClient, credentialStores, }: {
3502
3503
  tenantId: string;
3503
3504
  projectId: string;
3504
- graphId: string;
3505
+ agentId: string;
3505
3506
  conversationId: string;
3506
3507
  parsedRequest: ParsedHttpRequest;
3507
3508
  dbClient: DatabaseClient;
@@ -4130,7 +4131,7 @@ declare function createExecutionContext(params: {
4130
4131
  apiKey: string;
4131
4132
  tenantId: string;
4132
4133
  projectId: string;
4133
- graphId: string;
4134
+ agentId: string;
4134
4135
  apiKeyId: string;
4135
4136
  baseUrl?: string;
4136
4137
  }): ExecutionContext;
@@ -4152,4 +4153,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
4152
4153
  */
4153
4154
  declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
4154
4155
 
4155
- export { AgentGraphInsert, AgentGraphUpdate, AgentScopeConfig, 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, FullGraphDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, type GraphLogger, GraphScopeConfig, 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, SubAgentSelect, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgentGraph, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentGraphById, getAgentGraphWithDefaultSubAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getSubAgentById, getSubAgentsByIds, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, 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, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentFunctionToolRelation, updateTask, updateTool, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentFunctionToolRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalSubAgent, validateProjectExists, validationHelper, withProjectValidation };
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 };