@flutchai/flutch-sdk 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2,8 +2,9 @@ import { JSONSchema7 } from 'json-schema';
2
2
  import * as _nestjs_common from '@nestjs/common';
3
3
  import { OnModuleInit, Logger, Type, CanActivate, ExecutionContext, DynamicModule } from '@nestjs/common';
4
4
  import { ConfigService } from '@nestjs/config';
5
- import { HumanMessage, AIMessageChunk } from '@langchain/core/messages';
5
+ import { HumanMessage, AIMessage, AIMessageChunk } from '@langchain/core/messages';
6
6
  import { BaseChannel, CompiledStateGraph, LangGraphRunnableConfig } from '@langchain/langgraph';
7
+ import { MongoClient } from 'mongodb';
7
8
  import Redis from 'ioredis';
8
9
  import { Registry } from 'prom-client';
9
10
  import { Response, Request } from 'express';
@@ -635,7 +636,6 @@ declare class CallbackStore {
635
636
  private readonly redis;
636
637
  private readonly isProduction;
637
638
  constructor(redis: Redis);
638
- private generateToken;
639
639
  issue(entry: CallbackEntry): Promise<string>;
640
640
  getAndLock(token: string): Promise<CallbackRecord | null>;
641
641
  private getAndLockAtomic;
@@ -957,6 +957,28 @@ declare class CallbackController {
957
957
  handleCallback(req: CallbackRequest): Promise<CallbackResult>;
958
958
  }
959
959
 
960
+ interface BaseGraphContext {
961
+ messageId?: string;
962
+ threadId: string;
963
+ userId: string;
964
+ agentId: string;
965
+ companyId?: string;
966
+ }
967
+ interface BaseGraphConfig<TSettings = any, TContext extends BaseGraphContext = BaseGraphContext> {
968
+ thread_id: string;
969
+ checkpoint_ns: string;
970
+ checkpoint_id: string;
971
+ context: TContext;
972
+ metadata: {
973
+ userId: string;
974
+ agentId: string;
975
+ requestId: string;
976
+ graphType: string;
977
+ version: string;
978
+ workflowType: string;
979
+ };
980
+ graphSettings?: TSettings;
981
+ }
960
982
  interface IGraphManifest {
961
983
  companySlug: string;
962
984
  name: string;
@@ -1001,14 +1023,9 @@ declare abstract class AbstractGraphBuilder<V extends string = string> {
1001
1023
  protected manifest?: IGraphManifest;
1002
1024
  constructor();
1003
1025
  abstract buildGraph(config: any): Promise<any>;
1004
- protected createGraphContext(payload: IGraphRequestPayload): {
1005
- messageId?: string;
1006
- threadId: string;
1007
- userId: string;
1008
- agentId: string;
1009
- companyId?: string;
1010
- };
1026
+ protected createGraphContext(payload: IGraphRequestPayload): BaseGraphContext;
1011
1027
  prepareConfig(payload: IGraphRequestPayload): Promise<any>;
1028
+ protected customizeConfig(config: any, payload: IGraphRequestPayload): Promise<any>;
1012
1029
  protected loadManifest(): Promise<IGraphManifest | null>;
1013
1030
  protected loadManifestSync(): IGraphManifest | null;
1014
1031
  protected validateManifest(manifest: IGraphManifest): void;
@@ -1181,14 +1198,25 @@ declare class GraphEngineFactory {
1181
1198
  getEngine(engineType: GraphEngineType): IGraphEngine;
1182
1199
  }
1183
1200
 
1201
+ declare function createStaticMessage(content: string, config: LangGraphRunnableConfig): Promise<AIMessage>;
1202
+
1203
+ interface MongoDBConfig {
1204
+ uri?: string;
1205
+ dbName?: string;
1206
+ checkpointCollectionName?: string;
1207
+ checkpointWritesCollectionName?: string;
1208
+ }
1184
1209
  interface UniversalGraphModuleOptions {
1185
1210
  engineType?: GraphEngineType;
1186
1211
  versioning?: VersioningConfig[];
1212
+ mongodb?: MongoDBConfig;
1187
1213
  }
1188
1214
  declare class UniversalGraphModule {
1189
1215
  static forRoot(options: UniversalGraphModuleOptions): DynamicModule;
1190
1216
  }
1191
1217
 
1218
+ declare function createMongoClientAdapter(mongooseClient: any): MongoClient;
1219
+
1192
1220
  declare enum ModelProvider {
1193
1221
  FLUTCH = "flutch",
1194
1222
  FLUTCH_MISTRAL = "flutch-mistral",
@@ -1569,4 +1597,4 @@ declare class StaticDiscovery implements ServiceDiscoveryProvider {
1569
1597
  }>>;
1570
1598
  }
1571
1599
 
1572
- export { type ACLValidationResult, AbstractGraphBuilder, type ApiCallTracerOptions, AttachmentType, type AuditEntry, GraphController as BaseGraphServiceController, UniversalGraphModule as BaseGraphServiceModule, type BaseGraphState, BuilderRegistryService, Callback, CallbackACL, CallbackAuditAction, CallbackAuditor, type CallbackContext, CallbackController, type CallbackEntry, type CallbackHandler, type CallbackMetadata, CallbackMetrics, type CallbackPatch, type CallbackPatchHandler, CallbackPatchService, CallbackRateLimiter, type CallbackRecord, CallbackRegistry, type CallbackRequest, type CallbackResult, CallbackStore, CallbackTokenGuard, type CallbackUser, type ChannelState, type ChartType, ChatFeature, type ChatModelCreator, type ChatModelOrRunnable, type ChatModelWithTools, type CitationValue, type CompiledGraphFor, type ConcreteModels, type CustomDocument, DEFAULT_TRACER_OPTIONS, type DataEnvelope, ENDPOINT_METADATA_KEY, type EmbeddingModelCreator, Endpoint, type EndpointDescriptor, type EndpointHandler, type EndpointMetadata, type EndpointOptions, EndpointRegistry, EventProcessor, type ExtendedCallbackContext, type ExtendedCallbackHandler, FileBasedDiscovery, GraphController, GraphEngineFactory, GraphEngineType, GraphManifestSchema, GraphManifestValidator, GraphServiceTokens, GraphTypeUtils, type IAgentToolConfig, type IAgentToolConfiguration, type IAttachment, type IBaseEntity, type IChartDataPoint, type IChartDataset, type IChartValue, type IContentBlock, type IContentChain, type IDeletionInfo, type IGenericGraphType, type IGraphBuilder, type IGraphCompiler, type IGraphConfigurable, type IGraphEngine, type IGraphManifest, type IGraphMetadata, type IGraphMetadataRegistry, type IGraphRequestPayload, type IGraphResponsePayload, type IGraphRunnableConfig, type IGraphService, type IGraphServiceRegistry, type IGraphSettingsRepository, type IGraphTraceEvent, type IGraphTracer, type IGraphTypeMetadata, type IGraphTypeRegistry, type IModelInitializer, type IReasoningChain, type IReasoningStep, type IStoredMessageContent, type ISystemToolCredentials, type IToolCall, type IToolCatalog, type IToolConfigOption, type IToolExecutionContext, type ITracingEvent, type IUsageMetrics, type IUsageRecorder, type IdempotencyConfig, type IdempotencyEntry, IdempotencyManager, IdempotencyStatus, type KnowledgeBaseInfo, type LLMCallRecord, type LLMConfig, type LLModel, LangGraphEngine, type MappedChannels, McpConverter, type McpRuntimeClient, McpRuntimeHttpClient, type McpTool, McpToolFilter, type Model, type ModelByIdConfig, type ModelByIdWithTypeConfig, type ModelConfig, type ModelConfigFetcher, type ModelConfigWithToken, type ModelConfigWithTokenAndType, type ModelCreator, type ModelCreators, ModelInitializer, ModelProvider, ModelType, type RateLimitConfig, type RateLimitResult, type RequestContext, type RerankModelCreator, type RetrieveQueryOptions, type RetrieverConfig, RetrieverSearchType, RetrieverService, type RouterConfig, type ServiceDiscoveryProvider, SmartCallbackRouter, StaticDiscovery, type StreamAccumulator, StreamChannel, type StrictGraphRunnableConfig, TelegramPatchHandler, type ToolExecutionResult, type TraceApiCallResult, type TracingLevel, UIDispatchController, type UIDispatchDto, UIEndpoint, type UIEndpointClassMetadata, type UIEndpointMethodMetadata, UIEndpointsDiscoveryService, UniversalCallbackService, UniversalGraphModule, type UniversalGraphModuleOptions, UniversalGraphService, type VersionResolution, type VersionResolutionOptions, type VersionRoute, VersionedGraphService, type VersioningConfig, VoyageAIRerank, type VoyageAIRerankConfig, WebPatchHandler, WithCallbacks, WithEndpoints, WithUIEndpoints, bootstrap, createEndpointDescriptors, findCallbackMethod, findEndpointMethod, getCallbackMetadata, getEndpointMetadata, getUIEndpointClassMetadata, getUIEndpointMethodsMetadata, hasCallbacks, hasUIEndpoints, registerFinanceExampleCallback, registerUIEndpointsFromClass, sanitizeTraceData, traceApiCall };
1600
+ export { type ACLValidationResult, AbstractGraphBuilder, type ApiCallTracerOptions, AttachmentType, type AuditEntry, type BaseGraphConfig, type BaseGraphContext, GraphController as BaseGraphServiceController, UniversalGraphModule as BaseGraphServiceModule, type BaseGraphState, BuilderRegistryService, Callback, CallbackACL, CallbackAuditAction, CallbackAuditor, type CallbackContext, CallbackController, type CallbackEntry, type CallbackHandler, type CallbackMetadata, CallbackMetrics, type CallbackPatch, type CallbackPatchHandler, CallbackPatchService, CallbackRateLimiter, type CallbackRecord, CallbackRegistry, type CallbackRequest, type CallbackResult, CallbackStore, CallbackTokenGuard, type CallbackUser, type ChannelState, type ChartType, ChatFeature, type ChatModelCreator, type ChatModelOrRunnable, type ChatModelWithTools, type CitationValue, type CompiledGraphFor, type ConcreteModels, type CustomDocument, DEFAULT_TRACER_OPTIONS, type DataEnvelope, ENDPOINT_METADATA_KEY, type EmbeddingModelCreator, Endpoint, type EndpointDescriptor, type EndpointHandler, type EndpointMetadata, type EndpointOptions, EndpointRegistry, EventProcessor, type ExtendedCallbackContext, type ExtendedCallbackHandler, FileBasedDiscovery, GraphController, GraphEngineFactory, GraphEngineType, GraphManifestSchema, GraphManifestValidator, GraphServiceTokens, GraphTypeUtils, type IAgentToolConfig, type IAgentToolConfiguration, type IAttachment, type IBaseEntity, type IChartDataPoint, type IChartDataset, type IChartValue, type IContentBlock, type IContentChain, type IDeletionInfo, type IGenericGraphType, type IGraphBuilder, type IGraphCompiler, type IGraphConfigurable, type IGraphEngine, type IGraphManifest, type IGraphMetadata, type IGraphMetadataRegistry, type IGraphRequestPayload, type IGraphResponsePayload, type IGraphRunnableConfig, type IGraphService, type IGraphServiceRegistry, type IGraphSettingsRepository, type IGraphTraceEvent, type IGraphTracer, type IGraphTypeMetadata, type IGraphTypeRegistry, type IModelInitializer, type IReasoningChain, type IReasoningStep, type IStoredMessageContent, type ISystemToolCredentials, type IToolCall, type IToolCatalog, type IToolConfigOption, type IToolExecutionContext, type ITracingEvent, type IUsageMetrics, type IUsageRecorder, type IdempotencyConfig, type IdempotencyEntry, IdempotencyManager, IdempotencyStatus, type KnowledgeBaseInfo, type LLMCallRecord, type LLMConfig, type LLModel, LangGraphEngine, type MappedChannels, McpConverter, type McpRuntimeClient, McpRuntimeHttpClient, type McpTool, McpToolFilter, type Model, type ModelByIdConfig, type ModelByIdWithTypeConfig, type ModelConfig, type ModelConfigFetcher, type ModelConfigWithToken, type ModelConfigWithTokenAndType, type ModelCreator, type ModelCreators, ModelInitializer, ModelProvider, ModelType, type MongoDBConfig, type RateLimitConfig, type RateLimitResult, type RequestContext, type RerankModelCreator, type RetrieveQueryOptions, type RetrieverConfig, RetrieverSearchType, RetrieverService, type RouterConfig, type ServiceDiscoveryProvider, SmartCallbackRouter, StaticDiscovery, type StreamAccumulator, StreamChannel, type StrictGraphRunnableConfig, TelegramPatchHandler, type ToolExecutionResult, type TraceApiCallResult, type TracingLevel, UIDispatchController, type UIDispatchDto, UIEndpoint, type UIEndpointClassMetadata, type UIEndpointMethodMetadata, UIEndpointsDiscoveryService, UniversalCallbackService, UniversalGraphModule, type UniversalGraphModuleOptions, UniversalGraphService, type VersionResolution, type VersionResolutionOptions, type VersionRoute, VersionedGraphService, type VersioningConfig, VoyageAIRerank, type VoyageAIRerankConfig, WebPatchHandler, WithCallbacks, WithEndpoints, WithUIEndpoints, bootstrap, createEndpointDescriptors, createMongoClientAdapter, createStaticMessage, findCallbackMethod, findEndpointMethod, getCallbackMetadata, getEndpointMetadata, getUIEndpointClassMetadata, getUIEndpointMethodsMetadata, hasCallbacks, hasUIEndpoints, registerFinanceExampleCallback, registerUIEndpointsFromClass, sanitizeTraceData, traceApiCall };
package/dist/index.d.ts CHANGED
@@ -2,8 +2,9 @@ import { JSONSchema7 } from 'json-schema';
2
2
  import * as _nestjs_common from '@nestjs/common';
3
3
  import { OnModuleInit, Logger, Type, CanActivate, ExecutionContext, DynamicModule } from '@nestjs/common';
4
4
  import { ConfigService } from '@nestjs/config';
5
- import { HumanMessage, AIMessageChunk } from '@langchain/core/messages';
5
+ import { HumanMessage, AIMessage, AIMessageChunk } from '@langchain/core/messages';
6
6
  import { BaseChannel, CompiledStateGraph, LangGraphRunnableConfig } from '@langchain/langgraph';
7
+ import { MongoClient } from 'mongodb';
7
8
  import Redis from 'ioredis';
8
9
  import { Registry } from 'prom-client';
9
10
  import { Response, Request } from 'express';
@@ -635,7 +636,6 @@ declare class CallbackStore {
635
636
  private readonly redis;
636
637
  private readonly isProduction;
637
638
  constructor(redis: Redis);
638
- private generateToken;
639
639
  issue(entry: CallbackEntry): Promise<string>;
640
640
  getAndLock(token: string): Promise<CallbackRecord | null>;
641
641
  private getAndLockAtomic;
@@ -957,6 +957,28 @@ declare class CallbackController {
957
957
  handleCallback(req: CallbackRequest): Promise<CallbackResult>;
958
958
  }
959
959
 
960
+ interface BaseGraphContext {
961
+ messageId?: string;
962
+ threadId: string;
963
+ userId: string;
964
+ agentId: string;
965
+ companyId?: string;
966
+ }
967
+ interface BaseGraphConfig<TSettings = any, TContext extends BaseGraphContext = BaseGraphContext> {
968
+ thread_id: string;
969
+ checkpoint_ns: string;
970
+ checkpoint_id: string;
971
+ context: TContext;
972
+ metadata: {
973
+ userId: string;
974
+ agentId: string;
975
+ requestId: string;
976
+ graphType: string;
977
+ version: string;
978
+ workflowType: string;
979
+ };
980
+ graphSettings?: TSettings;
981
+ }
960
982
  interface IGraphManifest {
961
983
  companySlug: string;
962
984
  name: string;
@@ -1001,14 +1023,9 @@ declare abstract class AbstractGraphBuilder<V extends string = string> {
1001
1023
  protected manifest?: IGraphManifest;
1002
1024
  constructor();
1003
1025
  abstract buildGraph(config: any): Promise<any>;
1004
- protected createGraphContext(payload: IGraphRequestPayload): {
1005
- messageId?: string;
1006
- threadId: string;
1007
- userId: string;
1008
- agentId: string;
1009
- companyId?: string;
1010
- };
1026
+ protected createGraphContext(payload: IGraphRequestPayload): BaseGraphContext;
1011
1027
  prepareConfig(payload: IGraphRequestPayload): Promise<any>;
1028
+ protected customizeConfig(config: any, payload: IGraphRequestPayload): Promise<any>;
1012
1029
  protected loadManifest(): Promise<IGraphManifest | null>;
1013
1030
  protected loadManifestSync(): IGraphManifest | null;
1014
1031
  protected validateManifest(manifest: IGraphManifest): void;
@@ -1181,14 +1198,25 @@ declare class GraphEngineFactory {
1181
1198
  getEngine(engineType: GraphEngineType): IGraphEngine;
1182
1199
  }
1183
1200
 
1201
+ declare function createStaticMessage(content: string, config: LangGraphRunnableConfig): Promise<AIMessage>;
1202
+
1203
+ interface MongoDBConfig {
1204
+ uri?: string;
1205
+ dbName?: string;
1206
+ checkpointCollectionName?: string;
1207
+ checkpointWritesCollectionName?: string;
1208
+ }
1184
1209
  interface UniversalGraphModuleOptions {
1185
1210
  engineType?: GraphEngineType;
1186
1211
  versioning?: VersioningConfig[];
1212
+ mongodb?: MongoDBConfig;
1187
1213
  }
1188
1214
  declare class UniversalGraphModule {
1189
1215
  static forRoot(options: UniversalGraphModuleOptions): DynamicModule;
1190
1216
  }
1191
1217
 
1218
+ declare function createMongoClientAdapter(mongooseClient: any): MongoClient;
1219
+
1192
1220
  declare enum ModelProvider {
1193
1221
  FLUTCH = "flutch",
1194
1222
  FLUTCH_MISTRAL = "flutch-mistral",
@@ -1569,4 +1597,4 @@ declare class StaticDiscovery implements ServiceDiscoveryProvider {
1569
1597
  }>>;
1570
1598
  }
1571
1599
 
1572
- export { type ACLValidationResult, AbstractGraphBuilder, type ApiCallTracerOptions, AttachmentType, type AuditEntry, GraphController as BaseGraphServiceController, UniversalGraphModule as BaseGraphServiceModule, type BaseGraphState, BuilderRegistryService, Callback, CallbackACL, CallbackAuditAction, CallbackAuditor, type CallbackContext, CallbackController, type CallbackEntry, type CallbackHandler, type CallbackMetadata, CallbackMetrics, type CallbackPatch, type CallbackPatchHandler, CallbackPatchService, CallbackRateLimiter, type CallbackRecord, CallbackRegistry, type CallbackRequest, type CallbackResult, CallbackStore, CallbackTokenGuard, type CallbackUser, type ChannelState, type ChartType, ChatFeature, type ChatModelCreator, type ChatModelOrRunnable, type ChatModelWithTools, type CitationValue, type CompiledGraphFor, type ConcreteModels, type CustomDocument, DEFAULT_TRACER_OPTIONS, type DataEnvelope, ENDPOINT_METADATA_KEY, type EmbeddingModelCreator, Endpoint, type EndpointDescriptor, type EndpointHandler, type EndpointMetadata, type EndpointOptions, EndpointRegistry, EventProcessor, type ExtendedCallbackContext, type ExtendedCallbackHandler, FileBasedDiscovery, GraphController, GraphEngineFactory, GraphEngineType, GraphManifestSchema, GraphManifestValidator, GraphServiceTokens, GraphTypeUtils, type IAgentToolConfig, type IAgentToolConfiguration, type IAttachment, type IBaseEntity, type IChartDataPoint, type IChartDataset, type IChartValue, type IContentBlock, type IContentChain, type IDeletionInfo, type IGenericGraphType, type IGraphBuilder, type IGraphCompiler, type IGraphConfigurable, type IGraphEngine, type IGraphManifest, type IGraphMetadata, type IGraphMetadataRegistry, type IGraphRequestPayload, type IGraphResponsePayload, type IGraphRunnableConfig, type IGraphService, type IGraphServiceRegistry, type IGraphSettingsRepository, type IGraphTraceEvent, type IGraphTracer, type IGraphTypeMetadata, type IGraphTypeRegistry, type IModelInitializer, type IReasoningChain, type IReasoningStep, type IStoredMessageContent, type ISystemToolCredentials, type IToolCall, type IToolCatalog, type IToolConfigOption, type IToolExecutionContext, type ITracingEvent, type IUsageMetrics, type IUsageRecorder, type IdempotencyConfig, type IdempotencyEntry, IdempotencyManager, IdempotencyStatus, type KnowledgeBaseInfo, type LLMCallRecord, type LLMConfig, type LLModel, LangGraphEngine, type MappedChannels, McpConverter, type McpRuntimeClient, McpRuntimeHttpClient, type McpTool, McpToolFilter, type Model, type ModelByIdConfig, type ModelByIdWithTypeConfig, type ModelConfig, type ModelConfigFetcher, type ModelConfigWithToken, type ModelConfigWithTokenAndType, type ModelCreator, type ModelCreators, ModelInitializer, ModelProvider, ModelType, type RateLimitConfig, type RateLimitResult, type RequestContext, type RerankModelCreator, type RetrieveQueryOptions, type RetrieverConfig, RetrieverSearchType, RetrieverService, type RouterConfig, type ServiceDiscoveryProvider, SmartCallbackRouter, StaticDiscovery, type StreamAccumulator, StreamChannel, type StrictGraphRunnableConfig, TelegramPatchHandler, type ToolExecutionResult, type TraceApiCallResult, type TracingLevel, UIDispatchController, type UIDispatchDto, UIEndpoint, type UIEndpointClassMetadata, type UIEndpointMethodMetadata, UIEndpointsDiscoveryService, UniversalCallbackService, UniversalGraphModule, type UniversalGraphModuleOptions, UniversalGraphService, type VersionResolution, type VersionResolutionOptions, type VersionRoute, VersionedGraphService, type VersioningConfig, VoyageAIRerank, type VoyageAIRerankConfig, WebPatchHandler, WithCallbacks, WithEndpoints, WithUIEndpoints, bootstrap, createEndpointDescriptors, findCallbackMethod, findEndpointMethod, getCallbackMetadata, getEndpointMetadata, getUIEndpointClassMetadata, getUIEndpointMethodsMetadata, hasCallbacks, hasUIEndpoints, registerFinanceExampleCallback, registerUIEndpointsFromClass, sanitizeTraceData, traceApiCall };
1600
+ export { type ACLValidationResult, AbstractGraphBuilder, type ApiCallTracerOptions, AttachmentType, type AuditEntry, type BaseGraphConfig, type BaseGraphContext, GraphController as BaseGraphServiceController, UniversalGraphModule as BaseGraphServiceModule, type BaseGraphState, BuilderRegistryService, Callback, CallbackACL, CallbackAuditAction, CallbackAuditor, type CallbackContext, CallbackController, type CallbackEntry, type CallbackHandler, type CallbackMetadata, CallbackMetrics, type CallbackPatch, type CallbackPatchHandler, CallbackPatchService, CallbackRateLimiter, type CallbackRecord, CallbackRegistry, type CallbackRequest, type CallbackResult, CallbackStore, CallbackTokenGuard, type CallbackUser, type ChannelState, type ChartType, ChatFeature, type ChatModelCreator, type ChatModelOrRunnable, type ChatModelWithTools, type CitationValue, type CompiledGraphFor, type ConcreteModels, type CustomDocument, DEFAULT_TRACER_OPTIONS, type DataEnvelope, ENDPOINT_METADATA_KEY, type EmbeddingModelCreator, Endpoint, type EndpointDescriptor, type EndpointHandler, type EndpointMetadata, type EndpointOptions, EndpointRegistry, EventProcessor, type ExtendedCallbackContext, type ExtendedCallbackHandler, FileBasedDiscovery, GraphController, GraphEngineFactory, GraphEngineType, GraphManifestSchema, GraphManifestValidator, GraphServiceTokens, GraphTypeUtils, type IAgentToolConfig, type IAgentToolConfiguration, type IAttachment, type IBaseEntity, type IChartDataPoint, type IChartDataset, type IChartValue, type IContentBlock, type IContentChain, type IDeletionInfo, type IGenericGraphType, type IGraphBuilder, type IGraphCompiler, type IGraphConfigurable, type IGraphEngine, type IGraphManifest, type IGraphMetadata, type IGraphMetadataRegistry, type IGraphRequestPayload, type IGraphResponsePayload, type IGraphRunnableConfig, type IGraphService, type IGraphServiceRegistry, type IGraphSettingsRepository, type IGraphTraceEvent, type IGraphTracer, type IGraphTypeMetadata, type IGraphTypeRegistry, type IModelInitializer, type IReasoningChain, type IReasoningStep, type IStoredMessageContent, type ISystemToolCredentials, type IToolCall, type IToolCatalog, type IToolConfigOption, type IToolExecutionContext, type ITracingEvent, type IUsageMetrics, type IUsageRecorder, type IdempotencyConfig, type IdempotencyEntry, IdempotencyManager, IdempotencyStatus, type KnowledgeBaseInfo, type LLMCallRecord, type LLMConfig, type LLModel, LangGraphEngine, type MappedChannels, McpConverter, type McpRuntimeClient, McpRuntimeHttpClient, type McpTool, McpToolFilter, type Model, type ModelByIdConfig, type ModelByIdWithTypeConfig, type ModelConfig, type ModelConfigFetcher, type ModelConfigWithToken, type ModelConfigWithTokenAndType, type ModelCreator, type ModelCreators, ModelInitializer, ModelProvider, ModelType, type MongoDBConfig, type RateLimitConfig, type RateLimitResult, type RequestContext, type RerankModelCreator, type RetrieveQueryOptions, type RetrieverConfig, RetrieverSearchType, RetrieverService, type RouterConfig, type ServiceDiscoveryProvider, SmartCallbackRouter, StaticDiscovery, type StreamAccumulator, StreamChannel, type StrictGraphRunnableConfig, TelegramPatchHandler, type ToolExecutionResult, type TraceApiCallResult, type TracingLevel, UIDispatchController, type UIDispatchDto, UIEndpoint, type UIEndpointClassMetadata, type UIEndpointMethodMetadata, UIEndpointsDiscoveryService, UniversalCallbackService, UniversalGraphModule, type UniversalGraphModuleOptions, UniversalGraphService, type VersionResolution, type VersionResolutionOptions, type VersionRoute, VersionedGraphService, type VersioningConfig, VoyageAIRerank, type VoyageAIRerankConfig, WebPatchHandler, WithCallbacks, WithEndpoints, WithUIEndpoints, bootstrap, createEndpointDescriptors, createMongoClientAdapter, createStaticMessage, findCallbackMethod, findEndpointMethod, getCallbackMetadata, getEndpointMetadata, getUIEndpointClassMetadata, getUIEndpointMethodsMetadata, hasCallbacks, hasUIEndpoints, registerFinanceExampleCallback, registerUIEndpointsFromClass, sanitizeTraceData, traceApiCall };