@flutchai/flutch-sdk 0.7.14 → 0.7.16
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 +86 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +84 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1398,6 +1398,17 @@ interface IToolConfigOption {
|
|
|
1398
1398
|
includeInSchema?: boolean;
|
|
1399
1399
|
}
|
|
1400
1400
|
|
|
1401
|
+
interface IToolUsageMetadata {
|
|
1402
|
+
total_cost: number;
|
|
1403
|
+
}
|
|
1404
|
+
interface IToolEndOutput {
|
|
1405
|
+
content: string;
|
|
1406
|
+
usage_metadata: IToolUsageMetadata;
|
|
1407
|
+
}
|
|
1408
|
+
declare function toolUsageOf(value: unknown): IToolUsageMetadata | undefined;
|
|
1409
|
+
declare function toolEndOutput(content: string, usage?: IToolUsageMetadata): string | IToolEndOutput;
|
|
1410
|
+
declare function toolEndContent(output: unknown): string | undefined;
|
|
1411
|
+
|
|
1401
1412
|
interface McpTool {
|
|
1402
1413
|
name: string;
|
|
1403
1414
|
description: string;
|
|
@@ -1411,6 +1422,7 @@ interface ToolExecutionResult {
|
|
|
1411
1422
|
success: boolean;
|
|
1412
1423
|
result?: any;
|
|
1413
1424
|
error?: string;
|
|
1425
|
+
usage_metadata?: IToolUsageMetadata;
|
|
1414
1426
|
}
|
|
1415
1427
|
interface McpRuntimeClient {
|
|
1416
1428
|
getTools(): Promise<McpTool[]>;
|
|
@@ -1461,6 +1473,7 @@ declare class McpRuntimeHttpClient implements McpRuntimeClient {
|
|
|
1461
1473
|
content: string;
|
|
1462
1474
|
success: boolean;
|
|
1463
1475
|
rawResult?: any;
|
|
1476
|
+
usageMetadata?: IToolUsageMetadata;
|
|
1464
1477
|
}>;
|
|
1465
1478
|
}
|
|
1466
1479
|
|
|
@@ -1720,6 +1733,7 @@ declare class EventProcessor {
|
|
|
1720
1733
|
private processContentStream;
|
|
1721
1734
|
private mapReasoningSteps;
|
|
1722
1735
|
processEvent(acc: StreamAccumulator, event: any, onPartial?: (chunk: string) => void): void;
|
|
1736
|
+
private closeToolBlock;
|
|
1723
1737
|
getResult(acc: StreamAccumulator): {
|
|
1724
1738
|
content: IStoredMessageContent;
|
|
1725
1739
|
trace: {
|
|
@@ -1999,4 +2013,4 @@ declare class MongoTokenStore implements IOAuthTokenStore {
|
|
|
1999
2013
|
private ensureIndex;
|
|
2000
2014
|
}
|
|
2001
2015
|
|
|
2002
|
-
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, dispatchAttachmentUpdate, dispatchAttachments, dispatchToolLabel, 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 };
|
|
2016
|
+
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 IToolEndOutput, type IToolExecutionContext, type IToolUsageMetadata, 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, dispatchAttachmentUpdate, dispatchAttachments, dispatchToolLabel, 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, toolEndContent, toolEndOutput, toolSearchApplies, toolSearchTerms, toolUsageOf, traceApiCall, withFlutchContext, withToolReferences, wrapCohereFetcher };
|
package/dist/index.d.ts
CHANGED
|
@@ -1398,6 +1398,17 @@ interface IToolConfigOption {
|
|
|
1398
1398
|
includeInSchema?: boolean;
|
|
1399
1399
|
}
|
|
1400
1400
|
|
|
1401
|
+
interface IToolUsageMetadata {
|
|
1402
|
+
total_cost: number;
|
|
1403
|
+
}
|
|
1404
|
+
interface IToolEndOutput {
|
|
1405
|
+
content: string;
|
|
1406
|
+
usage_metadata: IToolUsageMetadata;
|
|
1407
|
+
}
|
|
1408
|
+
declare function toolUsageOf(value: unknown): IToolUsageMetadata | undefined;
|
|
1409
|
+
declare function toolEndOutput(content: string, usage?: IToolUsageMetadata): string | IToolEndOutput;
|
|
1410
|
+
declare function toolEndContent(output: unknown): string | undefined;
|
|
1411
|
+
|
|
1401
1412
|
interface McpTool {
|
|
1402
1413
|
name: string;
|
|
1403
1414
|
description: string;
|
|
@@ -1411,6 +1422,7 @@ interface ToolExecutionResult {
|
|
|
1411
1422
|
success: boolean;
|
|
1412
1423
|
result?: any;
|
|
1413
1424
|
error?: string;
|
|
1425
|
+
usage_metadata?: IToolUsageMetadata;
|
|
1414
1426
|
}
|
|
1415
1427
|
interface McpRuntimeClient {
|
|
1416
1428
|
getTools(): Promise<McpTool[]>;
|
|
@@ -1461,6 +1473,7 @@ declare class McpRuntimeHttpClient implements McpRuntimeClient {
|
|
|
1461
1473
|
content: string;
|
|
1462
1474
|
success: boolean;
|
|
1463
1475
|
rawResult?: any;
|
|
1476
|
+
usageMetadata?: IToolUsageMetadata;
|
|
1464
1477
|
}>;
|
|
1465
1478
|
}
|
|
1466
1479
|
|
|
@@ -1720,6 +1733,7 @@ declare class EventProcessor {
|
|
|
1720
1733
|
private processContentStream;
|
|
1721
1734
|
private mapReasoningSteps;
|
|
1722
1735
|
processEvent(acc: StreamAccumulator, event: any, onPartial?: (chunk: string) => void): void;
|
|
1736
|
+
private closeToolBlock;
|
|
1723
1737
|
getResult(acc: StreamAccumulator): {
|
|
1724
1738
|
content: IStoredMessageContent;
|
|
1725
1739
|
trace: {
|
|
@@ -1999,4 +2013,4 @@ declare class MongoTokenStore implements IOAuthTokenStore {
|
|
|
1999
2013
|
private ensureIndex;
|
|
2000
2014
|
}
|
|
2001
2015
|
|
|
2002
|
-
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, dispatchAttachmentUpdate, dispatchAttachments, dispatchToolLabel, 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 };
|
|
2016
|
+
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 IToolEndOutput, type IToolExecutionContext, type IToolUsageMetadata, 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, dispatchAttachmentUpdate, dispatchAttachments, dispatchToolLabel, 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, toolEndContent, toolEndOutput, toolSearchApplies, toolSearchTerms, toolUsageOf, traceApiCall, withFlutchContext, withToolReferences, wrapCohereFetcher };
|
package/dist/index.js
CHANGED
|
@@ -5173,6 +5173,29 @@ function sanitizeTraceError(error, options) {
|
|
|
5173
5173
|
}
|
|
5174
5174
|
__name(sanitizeTraceError, "sanitizeTraceError");
|
|
5175
5175
|
|
|
5176
|
+
// src/tools/tool-usage.ts
|
|
5177
|
+
function toolUsageOf(value) {
|
|
5178
|
+
const cost = value?.total_cost;
|
|
5179
|
+
return typeof cost === "number" && Number.isFinite(cost) && cost >= 0 ? {
|
|
5180
|
+
total_cost: cost
|
|
5181
|
+
} : void 0;
|
|
5182
|
+
}
|
|
5183
|
+
__name(toolUsageOf, "toolUsageOf");
|
|
5184
|
+
function toolEndOutput(content, usage) {
|
|
5185
|
+
return usage ? {
|
|
5186
|
+
content,
|
|
5187
|
+
usage_metadata: usage
|
|
5188
|
+
} : content;
|
|
5189
|
+
}
|
|
5190
|
+
__name(toolEndOutput, "toolEndOutput");
|
|
5191
|
+
function toolEndContent(output) {
|
|
5192
|
+
if (!output || typeof output !== "object") return void 0;
|
|
5193
|
+
const o = output;
|
|
5194
|
+
if (typeof o.content !== "string") return void 0;
|
|
5195
|
+
return toolUsageOf(o.usage_metadata) || toolUsageOf(o.artifact?.usage_metadata) ? o.content : void 0;
|
|
5196
|
+
}
|
|
5197
|
+
__name(toolEndContent, "toolEndContent");
|
|
5198
|
+
|
|
5176
5199
|
// src/engines/langgraph/stream-thinking.ts
|
|
5177
5200
|
function splitThinking(blocks) {
|
|
5178
5201
|
const thoughts = [];
|
|
@@ -5238,6 +5261,7 @@ function joinTextSteps(parts) {
|
|
|
5238
5261
|
__name(joinTextSteps, "joinTextSteps");
|
|
5239
5262
|
var MIN_DUPLICATE_WORDS = 8;
|
|
5240
5263
|
var DUPLICATE_SIMILARITY = 0.75;
|
|
5264
|
+
var NO_TOOL_END = "No result: the call's end was not received.";
|
|
5241
5265
|
function paragraphsOf(text) {
|
|
5242
5266
|
return text.split(/\n\s*\n/).map((p) => p.trim()).filter(Boolean);
|
|
5243
5267
|
}
|
|
@@ -5658,25 +5682,11 @@ var EventProcessor = class _EventProcessor {
|
|
|
5658
5682
|
const output = event.data?.output;
|
|
5659
5683
|
let outputString;
|
|
5660
5684
|
try {
|
|
5661
|
-
outputString = typeof output === "string" ? output : JSON.stringify(output, null, 2);
|
|
5685
|
+
outputString = typeof output === "string" ? output : toolEndContent(output) ?? JSON.stringify(output, null, 2);
|
|
5662
5686
|
} catch {
|
|
5663
5687
|
outputString = typeof output?.content === "string" ? output.content : "[Output too large to display]";
|
|
5664
5688
|
}
|
|
5665
|
-
|
|
5666
|
-
if (outputString.length > MAX_TOOL_OUTPUT_LENGTH) {
|
|
5667
|
-
let cutAt = outputString.lastIndexOf("\n", MAX_TOOL_OUTPUT_LENGTH);
|
|
5668
|
-
if (cutAt < MAX_TOOL_OUTPUT_LENGTH * 0.8) {
|
|
5669
|
-
cutAt = MAX_TOOL_OUTPUT_LENGTH;
|
|
5670
|
-
}
|
|
5671
|
-
outputString = outputString.slice(0, cutAt) + `
|
|
5672
|
-
... [truncated: ${outputString.length - cutAt} chars]`;
|
|
5673
|
-
}
|
|
5674
|
-
toolBlock.output = outputString;
|
|
5675
|
-
this.sendDelta(channel, {
|
|
5676
|
-
type: "tool_output_chunk",
|
|
5677
|
-
stepId: toolBlock.id,
|
|
5678
|
-
chunk: outputString
|
|
5679
|
-
}, onPartial);
|
|
5689
|
+
this.closeToolBlock(channel, toolBlock, outputString, onPartial);
|
|
5680
5690
|
this.logger.log("\u2705 Tool completed", {
|
|
5681
5691
|
toolName: event.name,
|
|
5682
5692
|
toolBlockId: toolBlock.id,
|
|
@@ -5693,8 +5703,18 @@ var EventProcessor = class _EventProcessor {
|
|
|
5693
5703
|
if (event.event === "on_tool_error") {
|
|
5694
5704
|
const channel = event.metadata?.stream_channel ?? StreamChannel.TEXT;
|
|
5695
5705
|
const state = acc.channels.get(channel);
|
|
5696
|
-
|
|
5706
|
+
let toolBlock;
|
|
5707
|
+
if (state && event.run_id && state.toolBlocksByRunId.has(event.run_id)) {
|
|
5708
|
+
toolBlock = state.toolBlocksByRunId.get(event.run_id);
|
|
5697
5709
|
state.toolBlocksByRunId.delete(event.run_id);
|
|
5710
|
+
} else if (state) {
|
|
5711
|
+
const idx = state.pendingToolBlocks.findIndex((b) => b.name === event.name);
|
|
5712
|
+
if (idx !== -1) toolBlock = state.pendingToolBlocks.splice(idx, 1)[0];
|
|
5713
|
+
}
|
|
5714
|
+
if (toolBlock && toolBlock.type === "tool_use") {
|
|
5715
|
+
const error = event.data?.error;
|
|
5716
|
+
const message = error instanceof Error ? error.message : String(error ?? "failed");
|
|
5717
|
+
this.closeToolBlock(channel, toolBlock, `Error: ${message}`, onPartial);
|
|
5698
5718
|
}
|
|
5699
5719
|
this.logger.error("\u274C Tool failed", {
|
|
5700
5720
|
toolName: event.name,
|
|
@@ -5735,6 +5755,28 @@ var EventProcessor = class _EventProcessor {
|
|
|
5735
5755
|
}
|
|
5736
5756
|
}
|
|
5737
5757
|
/**
|
|
5758
|
+
* A call's result on its block and to the client: the client closes the
|
|
5759
|
+
* step on it. Cut to keep the message document under MongoDB's 16MB.
|
|
5760
|
+
*/
|
|
5761
|
+
closeToolBlock(channel, toolBlock, output, onPartial) {
|
|
5762
|
+
const MAX_TOOL_OUTPUT_LENGTH = 5e4;
|
|
5763
|
+
let outputString = output;
|
|
5764
|
+
if (outputString.length > MAX_TOOL_OUTPUT_LENGTH) {
|
|
5765
|
+
let cutAt = outputString.lastIndexOf("\n", MAX_TOOL_OUTPUT_LENGTH);
|
|
5766
|
+
if (cutAt < MAX_TOOL_OUTPUT_LENGTH * 0.8) {
|
|
5767
|
+
cutAt = MAX_TOOL_OUTPUT_LENGTH;
|
|
5768
|
+
}
|
|
5769
|
+
outputString = outputString.slice(0, cutAt) + `
|
|
5770
|
+
... [truncated: ${outputString.length - cutAt} chars]`;
|
|
5771
|
+
}
|
|
5772
|
+
toolBlock.output = outputString;
|
|
5773
|
+
this.sendDelta(channel, {
|
|
5774
|
+
type: "tool_output_chunk",
|
|
5775
|
+
stepId: toolBlock.id,
|
|
5776
|
+
chunk: outputString
|
|
5777
|
+
}, onPartial);
|
|
5778
|
+
}
|
|
5779
|
+
/**
|
|
5738
5780
|
* Build final result from accumulator
|
|
5739
5781
|
* Returns unified content chains from all channels
|
|
5740
5782
|
*/
|
|
@@ -5747,6 +5789,12 @@ var EventProcessor = class _EventProcessor {
|
|
|
5747
5789
|
pendingCount: state.pendingToolBlocks.length,
|
|
5748
5790
|
mappedCount: state.toolBlocksByRunId.size
|
|
5749
5791
|
});
|
|
5792
|
+
for (const block of [
|
|
5793
|
+
...state.pendingToolBlocks,
|
|
5794
|
+
...state.toolBlocksByRunId.values()
|
|
5795
|
+
]) if (block.type === "tool_use" && !block.output) block.output = NO_TOOL_END;
|
|
5796
|
+
state.pendingToolBlocks = [];
|
|
5797
|
+
state.toolBlocksByRunId.clear();
|
|
5750
5798
|
}
|
|
5751
5799
|
if (state.currentBlock) {
|
|
5752
5800
|
state.contentChain.push(state.currentBlock);
|
|
@@ -6927,6 +6975,9 @@ ${paramDescriptions.join("\n")}`;
|
|
|
6927
6975
|
name: mcpTool.name,
|
|
6928
6976
|
description: enhancedDescription,
|
|
6929
6977
|
schema,
|
|
6978
|
+
// The call's cost rides on the ToolMessage's artifact, which the model
|
|
6979
|
+
// never sees and the trace keeps (see tool-usage.ts).
|
|
6980
|
+
responseFormat: "content_and_artifact",
|
|
6930
6981
|
func: /* @__PURE__ */ __name(async (input, _runManager, config) => {
|
|
6931
6982
|
logger3.log(`\u{1F527} [${mcpTool.name}] LLM INPUT: ${JSON.stringify(input)}`);
|
|
6932
6983
|
const configurable = config?.configurable;
|
|
@@ -6955,7 +7006,13 @@ ${paramDescriptions.join("\n")}`;
|
|
|
6955
7006
|
}
|
|
6956
7007
|
const output = typeof result.result === "string" ? result.result : JSON.stringify(result.result, null, 2);
|
|
6957
7008
|
logger3.log(`\u{1F527} [${mcpTool.name}] TOOL OUTPUT: ${output.length > 200 ? output.substring(0, 200) + "..." : output}`);
|
|
6958
|
-
|
|
7009
|
+
const usage = toolUsageOf(result.usage_metadata);
|
|
7010
|
+
return [
|
|
7011
|
+
output,
|
|
7012
|
+
usage ? {
|
|
7013
|
+
usage_metadata: usage
|
|
7014
|
+
} : void 0
|
|
7015
|
+
];
|
|
6959
7016
|
} catch (error) {
|
|
6960
7017
|
logger3.error(`\u{1F527} [${mcpTool.name}] Exception during execution`, error);
|
|
6961
7018
|
if (axios2.isAxiosError(error)) {
|
|
@@ -7275,12 +7332,17 @@ var McpRuntimeHttpClient = class _McpRuntimeHttpClient {
|
|
|
7275
7332
|
]
|
|
7276
7333
|
}, JSON.stringify(enrichedArgs), parsedConfig.runId, void 0, parsedConfig.tags, parsedConfig.metadata, toolName);
|
|
7277
7334
|
const result = await this.executeTool(toolName, enrichedArgs, executionContext, mcpServers, config?.signal);
|
|
7278
|
-
const
|
|
7279
|
-
|
|
7335
|
+
const { usage_metadata: rawUsage, ...shown } = result;
|
|
7336
|
+
const usageMetadata = toolUsageOf(rawUsage);
|
|
7337
|
+
const content = shown.success ? JSON.stringify(shown) : shown.error || JSON.stringify(shown);
|
|
7338
|
+
await runManager?.handleToolEnd(toolEndOutput(content, usageMetadata));
|
|
7280
7339
|
return {
|
|
7281
7340
|
content,
|
|
7282
7341
|
success: result.success,
|
|
7283
|
-
rawResult: result.success ? result.result : void 0
|
|
7342
|
+
rawResult: result.success ? result.result : void 0,
|
|
7343
|
+
...usageMetadata && {
|
|
7344
|
+
usageMetadata
|
|
7345
|
+
}
|
|
7284
7346
|
};
|
|
7285
7347
|
} catch (error) {
|
|
7286
7348
|
this.logger.error(`Error executing tool ${toolName}:`, error);
|
|
@@ -9353,6 +9415,6 @@ var MongoTokenStore = class {
|
|
|
9353
9415
|
}
|
|
9354
9416
|
};
|
|
9355
9417
|
|
|
9356
|
-
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, dispatchAttachmentUpdate, dispatchAttachments, dispatchToolLabel, 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 };
|
|
9418
|
+
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, dispatchAttachmentUpdate, dispatchAttachments, dispatchToolLabel, 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, toolEndContent, toolEndOutput, toolSearchApplies, toolSearchTerms, toolUsageOf, traceApiCall, withFlutchContext, withToolReferences, wrapCohereFetcher };
|
|
9357
9419
|
//# sourceMappingURL=index.js.map
|
|
9358
9420
|
//# sourceMappingURL=index.js.map
|