@flutchai/flutch-sdk 0.7.10 → 0.7.12
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.cjs +106 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +106 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -293,6 +293,12 @@ declare enum StreamChannel {
|
|
|
293
293
|
PROCESSING = "processing"
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
+
interface ThinkingSource {
|
|
297
|
+
content?: unknown;
|
|
298
|
+
additional_kwargs?: Record<string, unknown> | undefined;
|
|
299
|
+
}
|
|
300
|
+
declare function extractThinking(message: ThinkingSource): string;
|
|
301
|
+
|
|
296
302
|
interface IGraphService {
|
|
297
303
|
healthCheck(): Promise<boolean>;
|
|
298
304
|
getSupportedGraphTypes(): Promise<string[]>;
|
|
@@ -366,8 +372,9 @@ declare class GraphController {
|
|
|
366
372
|
timestamp: string;
|
|
367
373
|
}>;
|
|
368
374
|
getSupportedGraphTypes(): Promise<string[]>;
|
|
369
|
-
generateAnswer(payload: IGraphRequestPayload, res: Response): Promise<
|
|
375
|
+
generateAnswer(payload: IGraphRequestPayload, res: Response): Promise<void>;
|
|
370
376
|
streamAnswer(payload: IGraphRequestPayload, res: Response): Promise<void>;
|
|
377
|
+
private heartbeat;
|
|
371
378
|
private cancelOnDisconnect;
|
|
372
379
|
cancelGeneration(requestId: string): Promise<{
|
|
373
380
|
message: string;
|
|
@@ -1668,6 +1675,12 @@ interface TraceApiCallResult<TResult> {
|
|
|
1668
1675
|
declare function traceApiCall<TResult>(execute: () => Promise<TResult>, options?: ApiCallTracerOptions): Promise<TraceApiCallResult<TResult>>;
|
|
1669
1676
|
declare function sanitizeTraceData(value: unknown, depth?: number, seen?: WeakSet<object>, options?: ApiCallTracerOptions): unknown;
|
|
1670
1677
|
|
|
1678
|
+
interface ThinkingStream {
|
|
1679
|
+
runId: string | null;
|
|
1680
|
+
index: unknown;
|
|
1681
|
+
shown: boolean;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1671
1684
|
interface LLMCallRecord {
|
|
1672
1685
|
modelId: string;
|
|
1673
1686
|
promptTokens: number;
|
|
@@ -1690,6 +1703,7 @@ interface StreamAccumulator {
|
|
|
1690
1703
|
traceMessages: TraceMessageStore;
|
|
1691
1704
|
traceStartedAt: number | null;
|
|
1692
1705
|
traceCompletedAt: number | null;
|
|
1706
|
+
thinking?: ThinkingStream;
|
|
1693
1707
|
}
|
|
1694
1708
|
declare function joinTextSteps(parts: string[]): string;
|
|
1695
1709
|
declare class EventProcessor {
|
|
@@ -1973,4 +1987,4 @@ declare class MongoTokenStore implements IOAuthTokenStore {
|
|
|
1973
1987
|
private ensureIndex;
|
|
1974
1988
|
}
|
|
1975
1989
|
|
|
1976
|
-
export { type ACLValidationResult, AbstractGraphBuilder, type ApiCallTracerOptions, type ApiKeyResolver, 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 CustomDocument, DEFAULT_ATTACHMENT_THRESHOLD, DEFAULT_ROUTER_URL, DEFAULT_TOOL_SEARCH_MIN_TOOLS, DEFAULT_TOOL_SEARCH_RESULTS, DEFAULT_TRACER_OPTIONS, type DataEnvelope, ENDPOINT_METADATA_KEY, type EmbeddingModelCreator, Endpoint, type EndpointDescriptor, type EndpointHandler, type EndpointMetadata, type EndpointOptions, EndpointRegistry, EventProcessor, type ExecuteToolWithAttachmentsParams, type ExecuteToolWithAttachmentsResult, type ExtendedCallbackContext, type ExtendedCallbackHandler, ExternalGraphBuilder, FileBasedDiscovery, FileTokenStore, FlutchChatBedrockConverse, type FlutchContext, 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 IGraphAttachment, type IGraphBuilder, type IGraphCompiler, type IGraphConfigurable, type IGraphEngine, type IGraphLogger, 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 ILangGraphConfig, type IModelInitializer, type IOAuthTokenStore, 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 LangchainReasoningBlock, type MappedChannels, McpConverter, type McpRuntimeClient, McpRuntimeHttpClient, type McpTool, McpToolFilter, type Model, type ModelByIdConfig, type ModelByIdWithTypeConfig, type ModelConfig, type ModelConfigFetcher, type ModelConfigWithToken, type ModelConfigWithTokenAndType, type ModelCreators, ModelInitializer, ModelProvider, ModelType, type MongoDBConfig, MongoTokenStore, type OAuthProviderConfig, type OAuthProviderDef, OAuthTokenManager, type OAuthTokenManagerOptions, type OAuthTokens, PROMPT_CACHE_MIN_VERSIONS, type PostgresConfig, type PromptCacheControl, type PromptCacheTtl, type RateLimitConfig, type RateLimitResult, type ReasoningEffort, type RequestContext, type RequestFields, type RerankModelCreator, type ResolvedSamplingParams, type RetrieveQueryOptions, type RetrieverConfig, RetrieverSearchType, RetrieverService, type RouterConfig, SAMPLING_PARAM_FREE_THRESHOLDS, type SamplingParams, type SanitizedHistory, type ServiceDiscoveryProvider, SmartCallbackRouter, StaticDiscovery, type StreamAccumulator, StreamChannel, type StrictGraphRunnableConfig, TOOL_SEARCH_NAME, TelegramPatchHandler, type ThinkingMode, type ToolConfig, type ToolExecutionResult, ToolSearchCatalog, type ToolSearchEntry, type ToolSearchHit, type ToolSearchMode, type ToolSearchOptions, type TraceApiCallResult, type TraceMessageStore, 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, _internals, bindToolsWithSearch, bootstrap, buildEffortRequestFields, buildOAuthAuthorizationUrl, buildOpenAIModelConfig, buildReasoningRequestFields, clearAttachmentDataStore, createEndpointDescriptors, createGraphAttachment, createMongoClientAdapter, createStaticMessage, createToolSearchTool, decryptTokens, dispatchAttachments, encryptTokens, executeToolWithAttachments, findCallbackMethod, findEndpointMethod, flutchFetch, flutchHeaders, flutchMistralHook, formatToolSearchResult, generateAttachmentSummary, generateModelCacheKey, getAttachmentData, getCallbackMetadata, getEndpointMetadata, getFlutchContext, getOAuthProvider, getOAuthProviderNames, getUIEndpointClassMetadata, getUIEndpointMethodsMetadata, hasCallbacks, hasUIEndpoints, hashToolsConfig, isInternalMode, isReasoningBlock, isReasoningModel, isSendableReasoningBlock, isToolSearchCall, joinTextSteps, loadOAuthProviders, loadedToolNames, mergeRequestFields, modelAcceptsSamplingParams, modelSupportsPromptCache, normalizeToolConfigs, parseToolSearchResult, redactConnectionString, refTraceMessages, registerFinanceExampleCallback, registerUIEndpointsFromClass, resolveOAuthProviderConfig, resolvePromptCacheControl, resolveRouterURL, resolveSamplingParams, rewriteToolReferences, sanitizeMessageReasoning, sanitizeReasoningForBedrock, sanitizeTraceData, splitTools, storeAttachmentData, toOpenAIEffort, toOptionalNumber, toolSearchApplies, toolSearchTerms, traceApiCall, withFlutchContext, withToolReferences, wrapCohereFetcher };
|
|
1990
|
+
export { type ACLValidationResult, AbstractGraphBuilder, type ApiCallTracerOptions, type ApiKeyResolver, 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 CustomDocument, DEFAULT_ATTACHMENT_THRESHOLD, DEFAULT_ROUTER_URL, DEFAULT_TOOL_SEARCH_MIN_TOOLS, DEFAULT_TOOL_SEARCH_RESULTS, DEFAULT_TRACER_OPTIONS, type DataEnvelope, ENDPOINT_METADATA_KEY, type EmbeddingModelCreator, Endpoint, type EndpointDescriptor, type EndpointHandler, type EndpointMetadata, type EndpointOptions, EndpointRegistry, EventProcessor, type ExecuteToolWithAttachmentsParams, type ExecuteToolWithAttachmentsResult, type ExtendedCallbackContext, type ExtendedCallbackHandler, ExternalGraphBuilder, FileBasedDiscovery, FileTokenStore, FlutchChatBedrockConverse, type FlutchContext, 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 IGraphAttachment, type IGraphBuilder, type IGraphCompiler, type IGraphConfigurable, type IGraphEngine, type IGraphLogger, 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 ILangGraphConfig, type IModelInitializer, type IOAuthTokenStore, 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 LangchainReasoningBlock, type MappedChannels, McpConverter, type McpRuntimeClient, McpRuntimeHttpClient, type McpTool, McpToolFilter, type Model, type ModelByIdConfig, type ModelByIdWithTypeConfig, type ModelConfig, type ModelConfigFetcher, type ModelConfigWithToken, type ModelConfigWithTokenAndType, type ModelCreators, ModelInitializer, ModelProvider, ModelType, type MongoDBConfig, MongoTokenStore, type OAuthProviderConfig, type OAuthProviderDef, OAuthTokenManager, type OAuthTokenManagerOptions, type OAuthTokens, PROMPT_CACHE_MIN_VERSIONS, type PostgresConfig, type PromptCacheControl, type PromptCacheTtl, type RateLimitConfig, type RateLimitResult, type ReasoningEffort, type RequestContext, type RequestFields, type RerankModelCreator, type ResolvedSamplingParams, type RetrieveQueryOptions, type RetrieverConfig, RetrieverSearchType, RetrieverService, type RouterConfig, SAMPLING_PARAM_FREE_THRESHOLDS, type SamplingParams, type SanitizedHistory, type ServiceDiscoveryProvider, SmartCallbackRouter, StaticDiscovery, type StreamAccumulator, StreamChannel, type StrictGraphRunnableConfig, TOOL_SEARCH_NAME, TelegramPatchHandler, type ThinkingMode, type ToolConfig, type ToolExecutionResult, ToolSearchCatalog, type ToolSearchEntry, type ToolSearchHit, type ToolSearchMode, type ToolSearchOptions, type TraceApiCallResult, type TraceMessageStore, 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, _internals, bindToolsWithSearch, bootstrap, buildEffortRequestFields, buildOAuthAuthorizationUrl, buildOpenAIModelConfig, buildReasoningRequestFields, clearAttachmentDataStore, createEndpointDescriptors, createGraphAttachment, createMongoClientAdapter, createStaticMessage, createToolSearchTool, decryptTokens, dispatchAttachments, encryptTokens, executeToolWithAttachments, extractThinking, findCallbackMethod, findEndpointMethod, flutchFetch, flutchHeaders, flutchMistralHook, formatToolSearchResult, generateAttachmentSummary, generateModelCacheKey, getAttachmentData, getCallbackMetadata, getEndpointMetadata, getFlutchContext, getOAuthProvider, getOAuthProviderNames, getUIEndpointClassMetadata, getUIEndpointMethodsMetadata, hasCallbacks, hasUIEndpoints, hashToolsConfig, isInternalMode, isReasoningBlock, isReasoningModel, isSendableReasoningBlock, isToolSearchCall, joinTextSteps, loadOAuthProviders, loadedToolNames, mergeRequestFields, modelAcceptsSamplingParams, modelSupportsPromptCache, normalizeToolConfigs, parseToolSearchResult, redactConnectionString, refTraceMessages, registerFinanceExampleCallback, registerUIEndpointsFromClass, resolveOAuthProviderConfig, resolvePromptCacheControl, resolveRouterURL, resolveSamplingParams, rewriteToolReferences, sanitizeMessageReasoning, sanitizeReasoningForBedrock, sanitizeTraceData, splitTools, storeAttachmentData, toOpenAIEffort, toOptionalNumber, toolSearchApplies, toolSearchTerms, traceApiCall, withFlutchContext, withToolReferences, wrapCohereFetcher };
|
package/dist/index.d.ts
CHANGED
|
@@ -293,6 +293,12 @@ declare enum StreamChannel {
|
|
|
293
293
|
PROCESSING = "processing"
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
+
interface ThinkingSource {
|
|
297
|
+
content?: unknown;
|
|
298
|
+
additional_kwargs?: Record<string, unknown> | undefined;
|
|
299
|
+
}
|
|
300
|
+
declare function extractThinking(message: ThinkingSource): string;
|
|
301
|
+
|
|
296
302
|
interface IGraphService {
|
|
297
303
|
healthCheck(): Promise<boolean>;
|
|
298
304
|
getSupportedGraphTypes(): Promise<string[]>;
|
|
@@ -366,8 +372,9 @@ declare class GraphController {
|
|
|
366
372
|
timestamp: string;
|
|
367
373
|
}>;
|
|
368
374
|
getSupportedGraphTypes(): Promise<string[]>;
|
|
369
|
-
generateAnswer(payload: IGraphRequestPayload, res: Response): Promise<
|
|
375
|
+
generateAnswer(payload: IGraphRequestPayload, res: Response): Promise<void>;
|
|
370
376
|
streamAnswer(payload: IGraphRequestPayload, res: Response): Promise<void>;
|
|
377
|
+
private heartbeat;
|
|
371
378
|
private cancelOnDisconnect;
|
|
372
379
|
cancelGeneration(requestId: string): Promise<{
|
|
373
380
|
message: string;
|
|
@@ -1668,6 +1675,12 @@ interface TraceApiCallResult<TResult> {
|
|
|
1668
1675
|
declare function traceApiCall<TResult>(execute: () => Promise<TResult>, options?: ApiCallTracerOptions): Promise<TraceApiCallResult<TResult>>;
|
|
1669
1676
|
declare function sanitizeTraceData(value: unknown, depth?: number, seen?: WeakSet<object>, options?: ApiCallTracerOptions): unknown;
|
|
1670
1677
|
|
|
1678
|
+
interface ThinkingStream {
|
|
1679
|
+
runId: string | null;
|
|
1680
|
+
index: unknown;
|
|
1681
|
+
shown: boolean;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1671
1684
|
interface LLMCallRecord {
|
|
1672
1685
|
modelId: string;
|
|
1673
1686
|
promptTokens: number;
|
|
@@ -1690,6 +1703,7 @@ interface StreamAccumulator {
|
|
|
1690
1703
|
traceMessages: TraceMessageStore;
|
|
1691
1704
|
traceStartedAt: number | null;
|
|
1692
1705
|
traceCompletedAt: number | null;
|
|
1706
|
+
thinking?: ThinkingStream;
|
|
1693
1707
|
}
|
|
1694
1708
|
declare function joinTextSteps(parts: string[]): string;
|
|
1695
1709
|
declare class EventProcessor {
|
|
@@ -1973,4 +1987,4 @@ declare class MongoTokenStore implements IOAuthTokenStore {
|
|
|
1973
1987
|
private ensureIndex;
|
|
1974
1988
|
}
|
|
1975
1989
|
|
|
1976
|
-
export { type ACLValidationResult, AbstractGraphBuilder, type ApiCallTracerOptions, type ApiKeyResolver, 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 CustomDocument, DEFAULT_ATTACHMENT_THRESHOLD, DEFAULT_ROUTER_URL, DEFAULT_TOOL_SEARCH_MIN_TOOLS, DEFAULT_TOOL_SEARCH_RESULTS, DEFAULT_TRACER_OPTIONS, type DataEnvelope, ENDPOINT_METADATA_KEY, type EmbeddingModelCreator, Endpoint, type EndpointDescriptor, type EndpointHandler, type EndpointMetadata, type EndpointOptions, EndpointRegistry, EventProcessor, type ExecuteToolWithAttachmentsParams, type ExecuteToolWithAttachmentsResult, type ExtendedCallbackContext, type ExtendedCallbackHandler, ExternalGraphBuilder, FileBasedDiscovery, FileTokenStore, FlutchChatBedrockConverse, type FlutchContext, 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 IGraphAttachment, type IGraphBuilder, type IGraphCompiler, type IGraphConfigurable, type IGraphEngine, type IGraphLogger, 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 ILangGraphConfig, type IModelInitializer, type IOAuthTokenStore, 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 LangchainReasoningBlock, type MappedChannels, McpConverter, type McpRuntimeClient, McpRuntimeHttpClient, type McpTool, McpToolFilter, type Model, type ModelByIdConfig, type ModelByIdWithTypeConfig, type ModelConfig, type ModelConfigFetcher, type ModelConfigWithToken, type ModelConfigWithTokenAndType, type ModelCreators, ModelInitializer, ModelProvider, ModelType, type MongoDBConfig, MongoTokenStore, type OAuthProviderConfig, type OAuthProviderDef, OAuthTokenManager, type OAuthTokenManagerOptions, type OAuthTokens, PROMPT_CACHE_MIN_VERSIONS, type PostgresConfig, type PromptCacheControl, type PromptCacheTtl, type RateLimitConfig, type RateLimitResult, type ReasoningEffort, type RequestContext, type RequestFields, type RerankModelCreator, type ResolvedSamplingParams, type RetrieveQueryOptions, type RetrieverConfig, RetrieverSearchType, RetrieverService, type RouterConfig, SAMPLING_PARAM_FREE_THRESHOLDS, type SamplingParams, type SanitizedHistory, type ServiceDiscoveryProvider, SmartCallbackRouter, StaticDiscovery, type StreamAccumulator, StreamChannel, type StrictGraphRunnableConfig, TOOL_SEARCH_NAME, TelegramPatchHandler, type ThinkingMode, type ToolConfig, type ToolExecutionResult, ToolSearchCatalog, type ToolSearchEntry, type ToolSearchHit, type ToolSearchMode, type ToolSearchOptions, type TraceApiCallResult, type TraceMessageStore, 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, _internals, bindToolsWithSearch, bootstrap, buildEffortRequestFields, buildOAuthAuthorizationUrl, buildOpenAIModelConfig, buildReasoningRequestFields, clearAttachmentDataStore, createEndpointDescriptors, createGraphAttachment, createMongoClientAdapter, createStaticMessage, createToolSearchTool, decryptTokens, dispatchAttachments, encryptTokens, executeToolWithAttachments, findCallbackMethod, findEndpointMethod, flutchFetch, flutchHeaders, flutchMistralHook, formatToolSearchResult, generateAttachmentSummary, generateModelCacheKey, getAttachmentData, getCallbackMetadata, getEndpointMetadata, getFlutchContext, getOAuthProvider, getOAuthProviderNames, getUIEndpointClassMetadata, getUIEndpointMethodsMetadata, hasCallbacks, hasUIEndpoints, hashToolsConfig, isInternalMode, isReasoningBlock, isReasoningModel, isSendableReasoningBlock, isToolSearchCall, joinTextSteps, loadOAuthProviders, loadedToolNames, mergeRequestFields, modelAcceptsSamplingParams, modelSupportsPromptCache, normalizeToolConfigs, parseToolSearchResult, redactConnectionString, refTraceMessages, registerFinanceExampleCallback, registerUIEndpointsFromClass, resolveOAuthProviderConfig, resolvePromptCacheControl, resolveRouterURL, resolveSamplingParams, rewriteToolReferences, sanitizeMessageReasoning, sanitizeReasoningForBedrock, sanitizeTraceData, splitTools, storeAttachmentData, toOpenAIEffort, toOptionalNumber, toolSearchApplies, toolSearchTerms, traceApiCall, withFlutchContext, withToolReferences, wrapCohereFetcher };
|
|
1990
|
+
export { type ACLValidationResult, AbstractGraphBuilder, type ApiCallTracerOptions, type ApiKeyResolver, 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 CustomDocument, DEFAULT_ATTACHMENT_THRESHOLD, DEFAULT_ROUTER_URL, DEFAULT_TOOL_SEARCH_MIN_TOOLS, DEFAULT_TOOL_SEARCH_RESULTS, DEFAULT_TRACER_OPTIONS, type DataEnvelope, ENDPOINT_METADATA_KEY, type EmbeddingModelCreator, Endpoint, type EndpointDescriptor, type EndpointHandler, type EndpointMetadata, type EndpointOptions, EndpointRegistry, EventProcessor, type ExecuteToolWithAttachmentsParams, type ExecuteToolWithAttachmentsResult, type ExtendedCallbackContext, type ExtendedCallbackHandler, ExternalGraphBuilder, FileBasedDiscovery, FileTokenStore, FlutchChatBedrockConverse, type FlutchContext, 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 IGraphAttachment, type IGraphBuilder, type IGraphCompiler, type IGraphConfigurable, type IGraphEngine, type IGraphLogger, 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 ILangGraphConfig, type IModelInitializer, type IOAuthTokenStore, 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 LangchainReasoningBlock, type MappedChannels, McpConverter, type McpRuntimeClient, McpRuntimeHttpClient, type McpTool, McpToolFilter, type Model, type ModelByIdConfig, type ModelByIdWithTypeConfig, type ModelConfig, type ModelConfigFetcher, type ModelConfigWithToken, type ModelConfigWithTokenAndType, type ModelCreators, ModelInitializer, ModelProvider, ModelType, type MongoDBConfig, MongoTokenStore, type OAuthProviderConfig, type OAuthProviderDef, OAuthTokenManager, type OAuthTokenManagerOptions, type OAuthTokens, PROMPT_CACHE_MIN_VERSIONS, type PostgresConfig, type PromptCacheControl, type PromptCacheTtl, type RateLimitConfig, type RateLimitResult, type ReasoningEffort, type RequestContext, type RequestFields, type RerankModelCreator, type ResolvedSamplingParams, type RetrieveQueryOptions, type RetrieverConfig, RetrieverSearchType, RetrieverService, type RouterConfig, SAMPLING_PARAM_FREE_THRESHOLDS, type SamplingParams, type SanitizedHistory, type ServiceDiscoveryProvider, SmartCallbackRouter, StaticDiscovery, type StreamAccumulator, StreamChannel, type StrictGraphRunnableConfig, TOOL_SEARCH_NAME, TelegramPatchHandler, type ThinkingMode, type ToolConfig, type ToolExecutionResult, ToolSearchCatalog, type ToolSearchEntry, type ToolSearchHit, type ToolSearchMode, type ToolSearchOptions, type TraceApiCallResult, type TraceMessageStore, 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, _internals, bindToolsWithSearch, bootstrap, buildEffortRequestFields, buildOAuthAuthorizationUrl, buildOpenAIModelConfig, buildReasoningRequestFields, clearAttachmentDataStore, createEndpointDescriptors, createGraphAttachment, createMongoClientAdapter, createStaticMessage, createToolSearchTool, decryptTokens, dispatchAttachments, encryptTokens, executeToolWithAttachments, extractThinking, findCallbackMethod, findEndpointMethod, flutchFetch, flutchHeaders, flutchMistralHook, formatToolSearchResult, generateAttachmentSummary, generateModelCacheKey, getAttachmentData, getCallbackMetadata, getEndpointMetadata, getFlutchContext, getOAuthProvider, getOAuthProviderNames, getUIEndpointClassMetadata, getUIEndpointMethodsMetadata, hasCallbacks, hasUIEndpoints, hashToolsConfig, isInternalMode, isReasoningBlock, isReasoningModel, isSendableReasoningBlock, isToolSearchCall, joinTextSteps, loadOAuthProviders, loadedToolNames, mergeRequestFields, modelAcceptsSamplingParams, modelSupportsPromptCache, normalizeToolConfigs, parseToolSearchResult, redactConnectionString, refTraceMessages, registerFinanceExampleCallback, registerUIEndpointsFromClass, resolveOAuthProviderConfig, resolvePromptCacheControl, resolveRouterURL, resolveSamplingParams, rewriteToolReferences, sanitizeMessageReasoning, sanitizeReasoningForBedrock, sanitizeTraceData, splitTools, storeAttachmentData, toOpenAIEffort, toOptionalNumber, toolSearchApplies, toolSearchTerms, traceApiCall, withFlutchContext, withToolReferences, wrapCohereFetcher };
|
package/dist/index.js
CHANGED
|
@@ -2103,11 +2103,28 @@ var GraphController = class _GraphController {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
async generateAnswer(payload, res) {
|
|
2105
2105
|
this.cancelOnDisconnect(res, payload.requestId);
|
|
2106
|
+
let beating = false;
|
|
2107
|
+
const stop = this.heartbeat(() => {
|
|
2108
|
+
if (!beating) {
|
|
2109
|
+
res.status(HttpStatus.CREATED).setHeader("Content-Type", "application/json");
|
|
2110
|
+
beating = true;
|
|
2111
|
+
}
|
|
2112
|
+
res.write(" ");
|
|
2113
|
+
});
|
|
2106
2114
|
try {
|
|
2107
|
-
|
|
2115
|
+
const result = await this.graphService.generateAnswer(payload);
|
|
2116
|
+
stop();
|
|
2117
|
+
if (beating) res.end(JSON.stringify(result));
|
|
2118
|
+
else res.status(HttpStatus.CREATED).json(result);
|
|
2108
2119
|
} catch (error) {
|
|
2120
|
+
stop();
|
|
2109
2121
|
this.logger.error(`Generation failed: ${error.message}`);
|
|
2110
|
-
|
|
2122
|
+
const failure = {
|
|
2123
|
+
statusCode: HttpStatus.INTERNAL_SERVER_ERROR,
|
|
2124
|
+
message: `Generation failed: ${error.message}`
|
|
2125
|
+
};
|
|
2126
|
+
if (beating) res.end(JSON.stringify(failure));
|
|
2127
|
+
else res.status(HttpStatus.INTERNAL_SERVER_ERROR).json(failure);
|
|
2111
2128
|
}
|
|
2112
2129
|
}
|
|
2113
2130
|
async streamAnswer(payload, res) {
|
|
@@ -2116,6 +2133,7 @@ var GraphController = class _GraphController {
|
|
|
2116
2133
|
res.setHeader("Cache-Control", "no-cache");
|
|
2117
2134
|
res.setHeader("Connection", "keep-alive");
|
|
2118
2135
|
this.cancelOnDisconnect(res, payload.requestId);
|
|
2136
|
+
const stop = this.heartbeat(() => res.write(": ping\n\n"));
|
|
2119
2137
|
try {
|
|
2120
2138
|
this.logger.debug(`[CONTROLLER] Starting streamAnswer for requestId: ${payload.requestId}`);
|
|
2121
2139
|
const result = await this.graphService.streamAnswer(payload, (chunk) => {
|
|
@@ -2133,6 +2151,7 @@ var GraphController = class _GraphController {
|
|
|
2133
2151
|
reasoningChainsCount: result.reasoningChains?.length || 0,
|
|
2134
2152
|
resultKeys: Object.keys(result || {})
|
|
2135
2153
|
});
|
|
2154
|
+
stop();
|
|
2136
2155
|
res.write(`event: final
|
|
2137
2156
|
`);
|
|
2138
2157
|
res.write(`data: ${JSON.stringify(result)}
|
|
@@ -2141,6 +2160,7 @@ var GraphController = class _GraphController {
|
|
|
2141
2160
|
res.end();
|
|
2142
2161
|
this.logger.debug(`[CONTROLLER] Stream completed successfully`);
|
|
2143
2162
|
} catch (error) {
|
|
2163
|
+
stop();
|
|
2144
2164
|
this.logger.error(`[CONTROLLER] Streaming failed: ${error.message}`);
|
|
2145
2165
|
this.logger.error(`[CONTROLLER] Error stack: ${error.stack}`);
|
|
2146
2166
|
res.write(`event: error
|
|
@@ -2154,6 +2174,20 @@ var GraphController = class _GraphController {
|
|
|
2154
2174
|
}
|
|
2155
2175
|
}
|
|
2156
2176
|
/**
|
|
2177
|
+
* Calls `beat` every GRAPH_HEARTBEAT_MS (20 s by default, 0 turns it off)
|
|
2178
|
+
* while a run goes on; returns the function that stops it. A caller drops a
|
|
2179
|
+
* connection that stays silent past its idle limit — the backend's is
|
|
2180
|
+
* GRAPH_SERVICE_TIMEOUT_MS — and a graph waiting on other agents is silent
|
|
2181
|
+
* for minutes: a report pipeline was cut at 15 minutes, 21 seconds before
|
|
2182
|
+
* its report was done (29.10.2026).
|
|
2183
|
+
*/
|
|
2184
|
+
heartbeat(beat) {
|
|
2185
|
+
const ms = Number(process.env.GRAPH_HEARTBEAT_MS ?? 2e4);
|
|
2186
|
+
if (!(ms > 0)) return () => void 0;
|
|
2187
|
+
const timer = setInterval(beat, ms);
|
|
2188
|
+
return () => clearInterval(timer);
|
|
2189
|
+
}
|
|
2190
|
+
/**
|
|
2157
2191
|
* A caller that hangs up before the answer is done — its own timeout, a
|
|
2158
2192
|
* restart, a cancelled parent run — no longer waits for it, so the run is
|
|
2159
2193
|
* cancelled: left going, it keeps calling models and tools nobody reads.
|
|
@@ -2239,9 +2273,7 @@ _ts_decorate8([
|
|
|
2239
2273
|
description: "Answer generated"
|
|
2240
2274
|
}),
|
|
2241
2275
|
_ts_param4(0, Body()),
|
|
2242
|
-
_ts_param4(1, Res(
|
|
2243
|
-
passthrough: true
|
|
2244
|
-
})),
|
|
2276
|
+
_ts_param4(1, Res()),
|
|
2245
2277
|
_ts_metadata6("design:type", Function),
|
|
2246
2278
|
_ts_metadata6("design:paramtypes", [
|
|
2247
2279
|
typeof IGraphRequestPayload === "undefined" ? Object : IGraphRequestPayload,
|
|
@@ -4776,6 +4808,20 @@ var StreamChannel = /* @__PURE__ */ (function(StreamChannel2) {
|
|
|
4776
4808
|
return StreamChannel2;
|
|
4777
4809
|
})({});
|
|
4778
4810
|
|
|
4811
|
+
// src/messages/thinking.ts
|
|
4812
|
+
var textOf = /* @__PURE__ */ __name((part) => typeof part === "string" ? part : part && typeof part.text === "string" ? String(part.text) : "", "textOf");
|
|
4813
|
+
var summaryTexts = /* @__PURE__ */ __name((summary) => Array.isArray(summary) ? summary.map(textOf) : [], "summaryTexts");
|
|
4814
|
+
function extractThinking(message) {
|
|
4815
|
+
const blocks = Array.isArray(message.content) ? message.content : [];
|
|
4816
|
+
const reasoning = message.additional_kwargs?.reasoning;
|
|
4817
|
+
return [
|
|
4818
|
+
...blocks.filter((b) => b?.type === "thinking" && typeof b.thinking === "string").map((b) => String(b.thinking)),
|
|
4819
|
+
...blocks.filter((b) => b?.type === "reasoning").flatMap((b) => summaryTexts(b.summary)),
|
|
4820
|
+
...summaryTexts(reasoning?.summary)
|
|
4821
|
+
].map((t) => t.trim()).filter(Boolean).filter((t, i, all) => all.indexOf(t) === i).join("\n\n");
|
|
4822
|
+
}
|
|
4823
|
+
__name(extractThinking, "extractThinking");
|
|
4824
|
+
|
|
4779
4825
|
// src/tools/attachment-summary.ts
|
|
4780
4826
|
var MAX_SAMPLE_ROWS = 5;
|
|
4781
4827
|
var MAX_TEXT_PREVIEW_LENGTH = 500;
|
|
@@ -5126,6 +5172,45 @@ function sanitizeTraceError(error, options) {
|
|
|
5126
5172
|
};
|
|
5127
5173
|
}
|
|
5128
5174
|
__name(sanitizeTraceError, "sanitizeTraceError");
|
|
5175
|
+
|
|
5176
|
+
// src/engines/langgraph/stream-thinking.ts
|
|
5177
|
+
function splitThinking(blocks) {
|
|
5178
|
+
const thoughts = [];
|
|
5179
|
+
const rest = [];
|
|
5180
|
+
for (const block of blocks) {
|
|
5181
|
+
const part = block;
|
|
5182
|
+
if (part?.type === "thinking" || part?.type === "reasoning") {
|
|
5183
|
+
const text = part.type === "thinking" ? part.thinking : part.reasoning;
|
|
5184
|
+
if (typeof text === "string" && text) thoughts.push({
|
|
5185
|
+
text,
|
|
5186
|
+
index: part.index
|
|
5187
|
+
});
|
|
5188
|
+
continue;
|
|
5189
|
+
}
|
|
5190
|
+
rest.push(block);
|
|
5191
|
+
}
|
|
5192
|
+
return {
|
|
5193
|
+
thoughts,
|
|
5194
|
+
rest
|
|
5195
|
+
};
|
|
5196
|
+
}
|
|
5197
|
+
__name(splitThinking, "splitThinking");
|
|
5198
|
+
function thinkingTexts(state, runId, deltas) {
|
|
5199
|
+
const out = [];
|
|
5200
|
+
for (const delta of deltas) {
|
|
5201
|
+
const another = runId !== state.runId || state.index !== void 0 && delta.index !== state.index;
|
|
5202
|
+
out.push(state.shown && another ? `
|
|
5203
|
+
|
|
5204
|
+
${delta.text}` : delta.text);
|
|
5205
|
+
state.runId = runId;
|
|
5206
|
+
state.index = delta.index;
|
|
5207
|
+
state.shown = true;
|
|
5208
|
+
}
|
|
5209
|
+
return out;
|
|
5210
|
+
}
|
|
5211
|
+
__name(thinkingTexts, "thinkingTexts");
|
|
5212
|
+
|
|
5213
|
+
// src/engines/langgraph/event-processor.utils.ts
|
|
5129
5214
|
function _ts_decorate21(decorators, target, key, desc) {
|
|
5130
5215
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5131
5216
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5433,7 +5518,21 @@ var EventProcessor = class _EventProcessor {
|
|
|
5433
5518
|
const chunk = event.data.chunk;
|
|
5434
5519
|
const blocks = [];
|
|
5435
5520
|
if (chunk.content) {
|
|
5436
|
-
|
|
5521
|
+
const { thoughts, rest } = splitThinking(this.normalizeContentBlocks(chunk.content));
|
|
5522
|
+
blocks.push(...rest);
|
|
5523
|
+
if (thoughts.length && event.metadata?.stream_thinking === true) {
|
|
5524
|
+
acc.thinking ??= {
|
|
5525
|
+
runId: null,
|
|
5526
|
+
index: void 0,
|
|
5527
|
+
shown: false
|
|
5528
|
+
};
|
|
5529
|
+
for (const text of thinkingTexts(acc.thinking, event.run_id ?? null, thoughts)) this.processContentStream(acc, StreamChannel.PROCESSING, [
|
|
5530
|
+
{
|
|
5531
|
+
type: "text",
|
|
5532
|
+
text
|
|
5533
|
+
}
|
|
5534
|
+
], onPartial);
|
|
5535
|
+
}
|
|
5437
5536
|
}
|
|
5438
5537
|
const contentHasToolBlocks = blocks.some((block) => block?.type === "tool_use" || block?.type === "tool_call" || block?.type === "input_json_delta");
|
|
5439
5538
|
if (!contentHasToolBlocks && Array.isArray(chunk.tool_call_chunks) && chunk.tool_call_chunks.length > 0) {
|
|
@@ -9188,6 +9287,6 @@ var MongoTokenStore = class {
|
|
|
9188
9287
|
}
|
|
9189
9288
|
};
|
|
9190
9289
|
|
|
9191
|
-
export { AbstractGraphBuilder, AttachmentType, GraphController as BaseGraphServiceController, UniversalGraphModule as BaseGraphServiceModule, BuilderRegistryService, Callback, CallbackACL, CallbackAuditAction, CallbackAuditor, CallbackController, CallbackMetrics, CallbackPatchService, CallbackRateLimiter, CallbackRegistry, CallbackStore, CallbackTokenGuard, ChatFeature, DEFAULT_ATTACHMENT_THRESHOLD, DEFAULT_ROUTER_URL, DEFAULT_TOOL_SEARCH_MIN_TOOLS, DEFAULT_TOOL_SEARCH_RESULTS, DEFAULT_TRACER_OPTIONS, ENDPOINT_METADATA_KEY, Endpoint, EndpointRegistry, EventProcessor, ExternalGraphBuilder, FileBasedDiscovery, FileTokenStore, FlutchChatBedrockConverse, GraphController, GraphEngineFactory, GraphEngineType, GraphManifestSchema, GraphManifestValidator, GraphServiceTokens, GraphTypeUtils, IdempotencyManager, IdempotencyStatus, LangGraphEngine, McpConverter, McpRuntimeHttpClient, McpToolFilter, ModelInitializer, ModelProvider, ModelType, MongoTokenStore, OAuthTokenManager, PROMPT_CACHE_MIN_VERSIONS, RetrieverSearchType, RetrieverService, SAMPLING_PARAM_FREE_THRESHOLDS, SmartCallbackRouter, StaticDiscovery, StreamChannel, TOOL_SEARCH_NAME, TelegramPatchHandler, ToolSearchCatalog, UIDispatchController, UIEndpoint, UIEndpointsDiscoveryService, UniversalCallbackService, UniversalGraphModule, UniversalGraphService, VersionedGraphService, VoyageAIRerank, WebPatchHandler, WithCallbacks, WithEndpoints, WithUIEndpoints, _internals, bindToolsWithSearch, bootstrap, buildEffortRequestFields, buildOAuthAuthorizationUrl, buildOpenAIModelConfig, buildReasoningRequestFields, clearAttachmentDataStore, createEndpointDescriptors, createGraphAttachment, createMongoClientAdapter, createStaticMessage, createToolSearchTool, decryptTokens, dispatchAttachments, encryptTokens, executeToolWithAttachments, findCallbackMethod, findEndpointMethod, flutchFetch, flutchHeaders, flutchMistralHook, formatToolSearchResult, generateAttachmentSummary, generateModelCacheKey, getAttachmentData, getCallbackMetadata, getEndpointMetadata, getFlutchContext, getOAuthProvider, getOAuthProviderNames, getUIEndpointClassMetadata, getUIEndpointMethodsMetadata, hasCallbacks, hasUIEndpoints, hashToolsConfig, isInternalMode, isReasoningBlock, isReasoningModel, isSendableReasoningBlock, isToolSearchCall, joinTextSteps, loadOAuthProviders, loadedToolNames, mergeRequestFields, modelAcceptsSamplingParams, modelSupportsPromptCache, normalizeToolConfigs, parseToolSearchResult, redactConnectionString, refTraceMessages, registerFinanceExampleCallback, registerUIEndpointsFromClass, resolveOAuthProviderConfig, resolvePromptCacheControl, resolveRouterURL, resolveSamplingParams, rewriteToolReferences, sanitizeMessageReasoning, sanitizeReasoningForBedrock, sanitizeTraceData, splitTools, storeAttachmentData, toOpenAIEffort, toOptionalNumber, toolSearchApplies, toolSearchTerms, traceApiCall, withFlutchContext, withToolReferences, wrapCohereFetcher };
|
|
9290
|
+
export { AbstractGraphBuilder, AttachmentType, GraphController as BaseGraphServiceController, UniversalGraphModule as BaseGraphServiceModule, BuilderRegistryService, Callback, CallbackACL, CallbackAuditAction, CallbackAuditor, CallbackController, CallbackMetrics, CallbackPatchService, CallbackRateLimiter, CallbackRegistry, CallbackStore, CallbackTokenGuard, ChatFeature, DEFAULT_ATTACHMENT_THRESHOLD, DEFAULT_ROUTER_URL, DEFAULT_TOOL_SEARCH_MIN_TOOLS, DEFAULT_TOOL_SEARCH_RESULTS, DEFAULT_TRACER_OPTIONS, ENDPOINT_METADATA_KEY, Endpoint, EndpointRegistry, EventProcessor, ExternalGraphBuilder, FileBasedDiscovery, FileTokenStore, FlutchChatBedrockConverse, GraphController, GraphEngineFactory, GraphEngineType, GraphManifestSchema, GraphManifestValidator, GraphServiceTokens, GraphTypeUtils, IdempotencyManager, IdempotencyStatus, LangGraphEngine, McpConverter, McpRuntimeHttpClient, McpToolFilter, ModelInitializer, ModelProvider, ModelType, MongoTokenStore, OAuthTokenManager, PROMPT_CACHE_MIN_VERSIONS, RetrieverSearchType, RetrieverService, SAMPLING_PARAM_FREE_THRESHOLDS, SmartCallbackRouter, StaticDiscovery, StreamChannel, TOOL_SEARCH_NAME, TelegramPatchHandler, ToolSearchCatalog, UIDispatchController, UIEndpoint, UIEndpointsDiscoveryService, UniversalCallbackService, UniversalGraphModule, UniversalGraphService, VersionedGraphService, VoyageAIRerank, WebPatchHandler, WithCallbacks, WithEndpoints, WithUIEndpoints, _internals, bindToolsWithSearch, bootstrap, buildEffortRequestFields, buildOAuthAuthorizationUrl, buildOpenAIModelConfig, buildReasoningRequestFields, clearAttachmentDataStore, createEndpointDescriptors, createGraphAttachment, createMongoClientAdapter, createStaticMessage, createToolSearchTool, decryptTokens, dispatchAttachments, encryptTokens, executeToolWithAttachments, extractThinking, findCallbackMethod, findEndpointMethod, flutchFetch, flutchHeaders, flutchMistralHook, formatToolSearchResult, generateAttachmentSummary, generateModelCacheKey, getAttachmentData, getCallbackMetadata, getEndpointMetadata, getFlutchContext, getOAuthProvider, getOAuthProviderNames, getUIEndpointClassMetadata, getUIEndpointMethodsMetadata, hasCallbacks, hasUIEndpoints, hashToolsConfig, isInternalMode, isReasoningBlock, isReasoningModel, isSendableReasoningBlock, isToolSearchCall, joinTextSteps, loadOAuthProviders, loadedToolNames, mergeRequestFields, modelAcceptsSamplingParams, modelSupportsPromptCache, normalizeToolConfigs, parseToolSearchResult, redactConnectionString, refTraceMessages, registerFinanceExampleCallback, registerUIEndpointsFromClass, resolveOAuthProviderConfig, resolvePromptCacheControl, resolveRouterURL, resolveSamplingParams, rewriteToolReferences, sanitizeMessageReasoning, sanitizeReasoningForBedrock, sanitizeTraceData, splitTools, storeAttachmentData, toOpenAIEffort, toOptionalNumber, toolSearchApplies, toolSearchTerms, traceApiCall, withFlutchContext, withToolReferences, wrapCohereFetcher };
|
|
9192
9291
|
//# sourceMappingURL=index.js.map
|
|
9193
9292
|
//# sourceMappingURL=index.js.map
|