@valerypopoff/rivet2-core 2.8.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bundle.cjs +508 -320
- package/dist/cjs/bundle.cjs.map +4 -4
- package/dist/cjs/interpolationRuntime.cjs.map +2 -2
- package/dist/esm/model/GraphPreprocessor.js +11 -0
- package/dist/esm/model/GraphProcessor.js +60 -3
- package/dist/esm/model/LegacyChatEditorCache.js +50 -0
- package/dist/esm/model/NodeExclusionPolicy.js +1 -0
- package/dist/esm/model/Nodes.js +6 -0
- package/dist/esm/model/StreamingOutputWatch.js +18 -18
- package/dist/esm/model/chat-v2/chatV2Shared.js +2 -1
- package/dist/esm/model/chat-v2/llmChatV2NodeEditors.js +2 -1
- package/dist/esm/model/nodes/ChatNodeBase.js +18 -13
- package/dist/esm/model/nodes/CoalesceNewNode.js +22 -0
- package/dist/esm/model/nodes/CoalesceNode.js +15 -133
- package/dist/esm/model/nodes/CoalesceNodeBase.js +131 -0
- package/dist/esm/model/nodes/GraphCallPathNode.js +42 -0
- package/dist/esm/model/nodes/StopWatchingStreamingOutputNode.js +2 -0
- package/dist/esm/plugins/anthropic/nodes/ChatAnthropicNode.js +17 -15
- package/dist/esm/plugins/google/google.js +8 -128
- package/dist/esm/plugins/google/googleGenerativeAi.js +101 -0
- package/dist/esm/plugins/google/nodes/ChatGoogleNode.js +36 -15
- package/dist/types/model/GraphPreprocessor.d.ts +2 -0
- package/dist/types/model/GraphProcessor.d.ts +3 -1
- package/dist/types/model/LegacyChatEditorCache.d.ts +39 -0
- package/dist/types/model/Nodes.d.ts +4 -2
- package/dist/types/model/ProcessContext.d.ts +2 -0
- package/dist/types/model/StreamingOutputWatch.d.ts +13 -11
- package/dist/types/model/chat-v2/chatV2Shared.d.ts +1 -0
- package/dist/types/model/nodes/CoalesceNewNode.d.ts +10 -0
- package/dist/types/model/nodes/CoalesceNode.d.ts +9 -15
- package/dist/types/model/nodes/CoalesceNodeBase.d.ts +19 -0
- package/dist/types/model/nodes/GraphCallPathNode.d.ts +12 -0
- package/dist/types/plugins/google/google.d.ts +3 -110
- package/dist/types/plugins/google/googleGenerativeAi.d.ts +110 -0
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ import { mapValues } from 'lodash-es';
|
|
|
14
14
|
import { coercePromptToChatMessages } from '../../../model/chat/chatMessages.js';
|
|
15
15
|
import { clampMaxTokensToModelLimit, setRequestAndResponseTokenOutputs } from '../../../model/chat/tokenBudget.js';
|
|
16
16
|
import { createAssistantMessagesOutput } from '../../../model/chat/streamChatResponse.js';
|
|
17
|
+
import { resolveLegacyChatEditorCache, writeLegacyChatEditorCache } from '../../../model/LegacyChatEditorCache.js';
|
|
17
18
|
function toGoogleSchemaType(type) {
|
|
18
19
|
switch (type) {
|
|
19
20
|
case 'string':
|
|
@@ -31,8 +32,6 @@ function toGoogleSchemaType(type) {
|
|
|
31
32
|
return undefined;
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
// Temporary
|
|
35
|
-
const cache = new Map();
|
|
36
35
|
export const ChatGoogleNodeImpl = {
|
|
37
36
|
create() {
|
|
38
37
|
const chartNode = {
|
|
@@ -241,8 +240,9 @@ export const ChatGoogleNodeImpl = {
|
|
|
241
240
|
},
|
|
242
241
|
{
|
|
243
242
|
type: 'toggle',
|
|
244
|
-
label: 'Cache (
|
|
243
|
+
label: 'Cache outputs (editor only)',
|
|
245
244
|
dataKey: 'cache',
|
|
245
|
+
helperMessage: 'Reuses a matching ordinary chat response while this project remains open. Tool-capable requests always run normally.',
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
type: 'toggle',
|
|
@@ -445,13 +445,22 @@ export const ChatGoogleNodeImpl = {
|
|
|
445
445
|
thinkingBudget,
|
|
446
446
|
additionalHeaders: allAdditionalHeaders,
|
|
447
447
|
};
|
|
448
|
-
const
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
448
|
+
const { cache, cachedOutputs } = resolveLegacyChatEditorCache({
|
|
449
|
+
context,
|
|
450
|
+
enabled: data.cache && !data.useToolCalling,
|
|
451
|
+
providerIdentity: apiKey
|
|
452
|
+
? { apiKey, headers: allAdditionalHeaders, transport: 'generative-ai' }
|
|
453
|
+
: {
|
|
454
|
+
applicationCredentials,
|
|
455
|
+
location,
|
|
456
|
+
project,
|
|
457
|
+
transport: 'vertex-ai',
|
|
458
|
+
},
|
|
459
|
+
request: options,
|
|
460
|
+
});
|
|
461
|
+
if (cachedOutputs != null) {
|
|
462
|
+
context.markResultAsEditorCacheHit?.();
|
|
463
|
+
return cachedOutputs;
|
|
455
464
|
}
|
|
456
465
|
const startTime = Date.now();
|
|
457
466
|
let chunks;
|
|
@@ -547,7 +556,7 @@ export const ChatGoogleNodeImpl = {
|
|
|
547
556
|
const duration = endTime - startTime;
|
|
548
557
|
output['duration'] = { type: 'number', value: duration };
|
|
549
558
|
Object.freeze(output);
|
|
550
|
-
cache
|
|
559
|
+
writeLegacyChatEditorCache(cache, output);
|
|
551
560
|
return output;
|
|
552
561
|
}, {
|
|
553
562
|
retries: 10,
|
|
@@ -559,13 +568,25 @@ export const ChatGoogleNodeImpl = {
|
|
|
559
568
|
signal: context.signal,
|
|
560
569
|
onFailedAttempt(err) {
|
|
561
570
|
context.trace(`ChatGoogleNode failed, retrying: ${err.toString()}`);
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
571
|
+
// p-retry gives this callback a failed-attempt wrapper. Reading
|
|
572
|
+
// status from the wrapper makes a provider's deterministic 4xx
|
|
573
|
+
// failure look retryable, even though the original error is
|
|
574
|
+
// available as `error`.
|
|
575
|
+
const providerError = err.error ?? err;
|
|
576
|
+
const googleError = providerError;
|
|
577
|
+
const message = googleError.message ?? String(providerError);
|
|
578
|
+
// Older browser versions of @google/genai expose 4xx failures as
|
|
579
|
+
// `ClientError` with the HTTP status only in the message. Keep
|
|
580
|
+
// the structured fields first for newer SDKs, then recover that
|
|
581
|
+
// documented message shape so invalid requests do not retry.
|
|
582
|
+
const messageStatus = /\bstatus:\s*(\d{3})\b/.exec(message)?.[1];
|
|
583
|
+
const status = googleError.status ?? googleError.code ?? (messageStatus ? Number(messageStatus) : undefined);
|
|
584
|
+
if (status && status >= 400 && status < 500) {
|
|
585
|
+
if (status === 429) {
|
|
565
586
|
context.trace('Google API rate limit exceeded, retrying...');
|
|
566
587
|
}
|
|
567
588
|
else {
|
|
568
|
-
throw new Error(`Google API error: ${
|
|
589
|
+
throw new Error(`Google API error: ${status} ${message}`);
|
|
569
590
|
}
|
|
570
591
|
}
|
|
571
592
|
if (context.signal.aborted) {
|
|
@@ -41,6 +41,8 @@ export type GraphExecutionPlan = Omit<GraphPreprocessorResult, 'nodeInstances'>
|
|
|
41
41
|
export type GraphPreprocessorExecutionPlanResult = GraphPreprocessorResult & GraphExecutionPlan;
|
|
42
42
|
export type GraphPreprocessedState = GraphPreprocessorResult | GraphPreprocessorExecutionPlanResult;
|
|
43
43
|
type GraphPreprocessorOptions = {
|
|
44
|
+
/** Original definitions for inert input anchors in an internally sliced graph. */
|
|
45
|
+
inputAnchorDefinitions?: GraphNodeDefinitions;
|
|
44
46
|
buildExecutionPlan?: boolean;
|
|
45
47
|
definitionContext?: NodeDefinitionContext;
|
|
46
48
|
graph: NodeGraph;
|
|
@@ -8,7 +8,7 @@ import type { GraphExecutionMetadata, InternalProcessContext, ProcessContext, Pr
|
|
|
8
8
|
import type { ExecutionRecorder } from '../recording/ExecutionRecorder.js';
|
|
9
9
|
import type { Tagged } from 'type-fest';
|
|
10
10
|
import type { NodeRegistration } from './NodeRegistration.js';
|
|
11
|
-
import { type GraphExecutionPlan } from './GraphPreprocessor.js';
|
|
11
|
+
import { type GraphExecutionPlan, type GraphNodeDefinitions } from './GraphPreprocessor.js';
|
|
12
12
|
import { type GraphBoundaryCache } from './GraphBoundaryCache.js';
|
|
13
13
|
import { type GraphProgress } from './GraphProgress.js';
|
|
14
14
|
import { type RivetStoredValueStore } from './StoredValueStore.js';
|
|
@@ -35,6 +35,7 @@ type WithExecution<T extends object> = T & {
|
|
|
35
35
|
} & ReplayEventTiming & EventOccurrenceTiming;
|
|
36
36
|
declare const graphProcessorGraphOverride: unique symbol;
|
|
37
37
|
declare const consumedAsyncBranchTriggerOverride: unique symbol;
|
|
38
|
+
declare const asyncBranchInputAnchorsOverride: unique symbol;
|
|
38
39
|
declare const consumedStreamingWatchNodeOverride: unique symbol;
|
|
39
40
|
export type NodeResultOrigin = 'executed' | 'preloaded' | 'frozen' | 'editor-cache' | 'unknown';
|
|
40
41
|
export type ProcessEvents = {
|
|
@@ -315,6 +316,7 @@ export declare class GraphProcessor {
|
|
|
315
316
|
scheduler?: GraphProcessorScheduler;
|
|
316
317
|
[graphProcessorGraphOverride]?: NodeGraph;
|
|
317
318
|
[consumedAsyncBranchTriggerOverride]?: NodeId;
|
|
319
|
+
[asyncBranchInputAnchorsOverride]?: GraphNodeDefinitions;
|
|
318
320
|
[consumedStreamingWatchNodeOverride]?: NodeId;
|
|
319
321
|
});
|
|
320
322
|
on: Emittery<ProcessEvents>["on"];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Outputs } from './GraphProcessor.js';
|
|
2
|
+
import type { InternalProcessContext } from './ProcessContext.js';
|
|
3
|
+
type LegacyChatEditorCacheKeyParts = {
|
|
4
|
+
graphId: string | undefined;
|
|
5
|
+
nodeId: string;
|
|
6
|
+
nodeType: string;
|
|
7
|
+
providerIdentity: unknown;
|
|
8
|
+
request: unknown;
|
|
9
|
+
};
|
|
10
|
+
export type LegacyChatEditorCache = {
|
|
11
|
+
cache: Map<string, unknown>;
|
|
12
|
+
cacheKey: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Builds an opaque cache key for a legacy chat request.
|
|
16
|
+
*
|
|
17
|
+
* Legacy chat nodes may receive credentials and request headers from settings,
|
|
18
|
+
* neither of which belongs in a process-global key (or in clear text in any
|
|
19
|
+
* cache key). The digest scopes entries to the graph/node and all effective
|
|
20
|
+
* request/provider inputs without retaining those values in the Map key.
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildLegacyChatEditorCacheKey(parts: LegacyChatEditorCacheKeyParts): string;
|
|
23
|
+
/**
|
|
24
|
+
* Resolves the existing host-owned editor cache for a legacy chat request.
|
|
25
|
+
* Programmatic callers that do not supply an editor cache remain isolated to
|
|
26
|
+
* their GraphProcessor's execution cache instead of sharing process state.
|
|
27
|
+
*/
|
|
28
|
+
export declare function resolveLegacyChatEditorCache(params: {
|
|
29
|
+
context: InternalProcessContext;
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
providerIdentity: unknown;
|
|
32
|
+
request: unknown;
|
|
33
|
+
}): {
|
|
34
|
+
cache: LegacyChatEditorCache | undefined;
|
|
35
|
+
cachedOutputs: Outputs | undefined;
|
|
36
|
+
};
|
|
37
|
+
/** Stores a private snapshot so downstream execution cannot mutate a cache entry. */
|
|
38
|
+
export declare function writeLegacyChatEditorCache(cache: LegacyChatEditorCache | undefined, outputs: Outputs): void;
|
|
39
|
+
export {};
|
|
@@ -30,7 +30,9 @@ export * from './nodes/ExtractObjectPathNode.js';
|
|
|
30
30
|
export * from './nodes/RaiseEventNode.js';
|
|
31
31
|
export * from './nodes/ReportProgressNode.js';
|
|
32
32
|
export * from './nodes/ContextNode.js';
|
|
33
|
+
export * from './nodes/GraphCallPathNode.js';
|
|
33
34
|
export * from './nodes/CoalesceNode.js';
|
|
35
|
+
export * from './nodes/CoalesceNewNode.js';
|
|
34
36
|
export * from './nodes/DidRunNode.js';
|
|
35
37
|
export * from './nodes/PassthroughNode.js';
|
|
36
38
|
export * from './nodes/DataBusNode.js';
|
|
@@ -105,12 +107,12 @@ export * from './nodes/MCPToolCallNode.js';
|
|
|
105
107
|
export * from './nodes/MCPGetPromptNode.js';
|
|
106
108
|
export * from './nodes/ReferencedGraphAliasNode.js';
|
|
107
109
|
export * from './nodes/NodePrefabInstanceNode.js';
|
|
108
|
-
export declare const registerBuiltInNodes: (registry: NodeRegistration) => NodeRegistration<"number" | "boolean" | "object" | "pop" | "join" | "slice" | "filter" | "match" | "split" | "image" | "audio" | "document" | "if" | "text" | "chat" | "array" | "code" | "context" | "graphInput" | "setGlobal" | "setStoredValue" | "graphOutput" | "delegateFunctionCall" | "raiseEvent" | "reportProgress" | "getGlobal" | "getStoredValue" | "abortGraph" | "prompt" | "llmChatV2" | "userInput" | "llmProfile" | "extractRegex" | "codeNew" | "expression" | "readDirectory" | "readFile" | "ifElse" | "chunk" | "subGraph" | "extractJson" | "assemblePrompt" | "extractYaml" | "loopController" | "trimChatMessages" | "externalCall" | "extractObjectPath" | "coalesce" | "didRun" | "passthrough" | "dataBus" | "startBackgroundBranch" | "watchStreamingOutput" | "stopWatchingStreamingOutput" | "waitForEvent" | "gptFunction" | "toYaml" | "getEmbedding" | "vectorStore" | "vectorNearestNeighbors" | "knowledgeSource" | "knowledgeDocument" | "syncKnowledgeSource" | "getKnowledgeSourceStatus" | "searchKnowledge" | "buildKnowledgeContext" | "hash" | "raceInputs" | "toJson" | "jsFilter" | "jsMap" | "compare" | "evaluate" | "randomNumber" | "shuffle" | "comment" | "httpCall" | "delay" | "appendToDataset" | "createDataset" | "loadDataset" | "getAllDatasets" | "datasetNearestNeighbors" | "getDatasetRow" | "extractMarkdownCodeBlocks" | "assembleMessage" | "urlReference" | "destructure" | "replaceDataset" | "listGraphs" | "graphReference" | "callGraph" | "playAudio" | "chatLoop" | "readAllFiles" | "toMarkdownTable" | "cron" | "toTree" | "loopUntil" | "mcpDiscovery" | "mcpToolCall" | "mcpGetPrompt" | "referencedGraphAlias" | "nodePrefabInstance", import("./nodes/GraphInputNode.js").GraphInputNode | import("./nodes/GraphOutputNode.js").GraphOutputNode | import("./chat-v2/llmChatV2NodeData.js").LLMChatV2Node | import("./nodes/UserInputNode.js").UserInputNode | import("./nodes/TextNode.js").TextNode | import("./nodes/ChatNode.js").ChatNode | import("./nodes/LLMProfileNode.js").LLMProfileNode | import("./nodes/PromptNode.js").PromptNode | import("./nodes/ExtractRegexNode.js").ExtractRegexNode | import("./nodes/CodeNode.js").CodeNode | import("./nodes/CodeNewNode.js").CodeNewNode | import("./nodes/ExpressionNode.js").ExpressionNode | import("./nodes/MatchNode.js").MatchNode | import("./nodes/IfNode.js").IfNode | import("./nodes/ReadDirectoryNode.js").ReadDirectoryNode | import("./nodes/ReadFileNode.js").ReadFileNode | import("./nodes/IfElseNode.js").IfElseNode | import("./nodes/ChunkNode.js").ChunkNode | import("./nodes/SubGraphNode.js").SubGraphNode | import("./nodes/ArrayNode.js").ArrayNode | import("./nodes/ExtractJsonNode.js").ExtractJsonNode | import("./nodes/AssemblePromptNode.js").AssemblePromptNode | import("./nodes/ExtractYamlNode.js").ExtractYamlNode | import("./nodes/LoopControllerNode.js").LoopControllerNode | import("./nodes/TrimChatMessagesNode.js").TrimChatMessagesNode | import("./nodes/ExternalCallNode.js").ExternalCallNode | import("./nodes/ExtractObjectPathNode.js").ExtractObjectPathNode | import("./nodes/RaiseEventNode.js").RaiseEventNode | import("./nodes/ReportProgressNode.js").ReportProgressNode | import("./nodes/ContextNode.js").ContextNode | import("./nodes/CoalesceNode.js").CoalesceNode | import("./nodes/DidRunNode.js").DidRunNode | import("./nodes/PassthroughNode.js").PassthroughNode | import("./nodes/DataBusNode.js").DataBusNode | import("./nodes/StartBackgroundBranchNode.js").StartBackgroundBranchNode | import("./nodes/WatchStreamingOutputNode.js").WatchStreamingOutputNode | import("./nodes/StopWatchingStreamingOutputNode.js").StopWatchingStreamingOutputNode | import("./nodes/PopNode.js").PopNode | import("./nodes/SetGlobalNode.js").SetGlobalNode | import("./nodes/GetGlobalNode.js").GetGlobalNode | import("./nodes/SetStoredValueNode.js").SetStoredValueNode | import("./nodes/GetStoredValueNode.js").GetStoredValueNode | import("./nodes/WaitForEventNode.js").WaitForEventNode | import("./nodes/ToolNode.js").GptFunctionNode | import("./nodes/ToYamlNode.js").ToYamlNode | import("./nodes/GetEmbeddingNode.js").GetEmbeddingNode | import("./nodes/VectorStoreNode.js").VectorStoreNode | import("./nodes/VectorNearestNeighborsNode.js").VectorNearestNeighborsNode | import("./nodes/KnowledgeSourceNode.js").KnowledgeSourceNode | import("./nodes/KnowledgeDocumentNode.js").KnowledgeDocumentNode | import("./nodes/SyncKnowledgeSourceNode.js").SyncKnowledgeSourceNode | import("./nodes/GetKnowledgeSourceStatusNode.js").GetKnowledgeSourceStatusNode | import("./nodes/SearchKnowledgeNode.js").SearchKnowledgeNode | import("./nodes/BuildKnowledgeContextNode.js").BuildKnowledgeContextNode | import("./nodes/HashNode.js").HashNode | import("./nodes/AbortGraphNode.js").AbortGraphNode | import("./nodes/RaceInputsNode.js").RaceInputsNode | import("./nodes/ToJsonNode.js").ToJsonNode | import("./nodes/JoinNode.js").JoinNode | import("./nodes/FilterNode.js").FilterNode | import("./nodes/JSFilterNode.js").JSFilterNode | import("./nodes/JSMapNode.js").JSMapNode | import("./nodes/ObjectNode.js").ObjectNode | import("./nodes/BooleanNode.js").BooleanNode | import("./nodes/CompareNode.js").CompareNode | import("./nodes/EvaluateNode.js").EvaluateNode | import("./nodes/NumberNode.js").NumberNode | import("./nodes/RandomNumberNode.js").RandomNumberNode | import("./nodes/ShuffleNode.js").ShuffleNode | import("./nodes/CommentNode.js").CommentNode | import("./nodes/ImageNode.js").ImageNode | import("./nodes/AudioNode.js").AudioNode | import("./nodes/HttpCallNode.js").HttpCallNode | import("./nodes/DelayNode.js").DelayNode | import("./nodes/AppendToDatasetNode.js").AppendToDatasetNode | import("./nodes/CreateDatasetNode.js").CreateDatasetNode | import("./nodes/LoadDatasetNode.js").LoadDatasetNode | import("./nodes/GetAllDatasetsNode.js").GetAllDatasetsNode | import("./nodes/SplitNode.js").SplitNode | import("./nodes/DatasetNearestNeigborsNode.js").DatasetNearestNeighborsNode | import("./nodes/GetDatasetRowNode.js").GetDatasetRowNode | import("./nodes/SliceNode.js").SliceNode | import("./nodes/ExtractMarkdownCodeBlocksNode.js").ExtractMarkdownCodeBlocksNode | import("./nodes/AssembleMessageNode.js").AssembleMessageNode | import("./nodes/URLReferenceNode.js").UrlReferenceNode | import("./nodes/DestructureNode.js").DestructureNode | import("./nodes/ReplaceDatasetNode.js").ReplaceDatasetNode | import("./nodes/ListGraphsNode.js").ListGraphsNode | import("./nodes/GraphReferenceNode.js").GraphReferenceNode | import("./nodes/CallGraphNode.js").CallGraphNode | import("./nodes/DelegateFunctionCallNode.js").DelegateFunctionCallNode | import("./nodes/PlayAudioNode.js").PlayAudioNode | import("./nodes/DocumentNode.js").DocumentNode | import("./nodes/ChatLoopNode.js").ChatLoopNode | import("./nodes/ReadAllFilesNode.js").ReadAllFilesNode | import("./nodes/ToMarkdownTableNode.js").ToMarkdownTableNode | import("./nodes/CronNode.js").CronNode | import("./nodes/ToTreeNode.js").ToTreeNode | import("./nodes/LoopUntilNode.js").LoopUntilNode | (import("./NodeBase.js").NodeBase & {
|
|
110
|
+
export declare const registerBuiltInNodes: (registry: NodeRegistration) => NodeRegistration<"number" | "boolean" | "object" | "pop" | "join" | "slice" | "filter" | "match" | "split" | "image" | "audio" | "document" | "if" | "text" | "chat" | "array" | "code" | "context" | "graphInput" | "setGlobal" | "setStoredValue" | "graphOutput" | "delegateFunctionCall" | "graphCallPath" | "raiseEvent" | "reportProgress" | "getGlobal" | "getStoredValue" | "abortGraph" | "prompt" | "llmChatV2" | "userInput" | "llmProfile" | "extractRegex" | "codeNew" | "expression" | "readDirectory" | "readFile" | "ifElse" | "chunk" | "subGraph" | "extractJson" | "assemblePrompt" | "extractYaml" | "loopController" | "trimChatMessages" | "externalCall" | "extractObjectPath" | "coalesce" | "coalesceNew" | "didRun" | "passthrough" | "dataBus" | "startBackgroundBranch" | "watchStreamingOutput" | "stopWatchingStreamingOutput" | "waitForEvent" | "gptFunction" | "toYaml" | "getEmbedding" | "vectorStore" | "vectorNearestNeighbors" | "knowledgeSource" | "knowledgeDocument" | "syncKnowledgeSource" | "getKnowledgeSourceStatus" | "searchKnowledge" | "buildKnowledgeContext" | "hash" | "raceInputs" | "toJson" | "jsFilter" | "jsMap" | "compare" | "evaluate" | "randomNumber" | "shuffle" | "comment" | "httpCall" | "delay" | "appendToDataset" | "createDataset" | "loadDataset" | "getAllDatasets" | "datasetNearestNeighbors" | "getDatasetRow" | "extractMarkdownCodeBlocks" | "assembleMessage" | "urlReference" | "destructure" | "replaceDataset" | "listGraphs" | "graphReference" | "callGraph" | "playAudio" | "chatLoop" | "readAllFiles" | "toMarkdownTable" | "cron" | "toTree" | "loopUntil" | "mcpDiscovery" | "mcpToolCall" | "mcpGetPrompt" | "referencedGraphAlias" | "nodePrefabInstance", import("./nodes/GraphInputNode.js").GraphInputNode | import("./nodes/GraphOutputNode.js").GraphOutputNode | import("./chat-v2/llmChatV2NodeData.js").LLMChatV2Node | import("./nodes/UserInputNode.js").UserInputNode | import("./nodes/TextNode.js").TextNode | import("./nodes/ChatNode.js").ChatNode | import("./nodes/LLMProfileNode.js").LLMProfileNode | import("./nodes/PromptNode.js").PromptNode | import("./nodes/ExtractRegexNode.js").ExtractRegexNode | import("./nodes/CodeNode.js").CodeNode | import("./nodes/CodeNewNode.js").CodeNewNode | import("./nodes/ExpressionNode.js").ExpressionNode | import("./nodes/MatchNode.js").MatchNode | import("./nodes/IfNode.js").IfNode | import("./nodes/ReadDirectoryNode.js").ReadDirectoryNode | import("./nodes/ReadFileNode.js").ReadFileNode | import("./nodes/IfElseNode.js").IfElseNode | import("./nodes/ChunkNode.js").ChunkNode | import("./nodes/SubGraphNode.js").SubGraphNode | import("./nodes/ArrayNode.js").ArrayNode | import("./nodes/ExtractJsonNode.js").ExtractJsonNode | import("./nodes/AssemblePromptNode.js").AssemblePromptNode | import("./nodes/ExtractYamlNode.js").ExtractYamlNode | import("./nodes/LoopControllerNode.js").LoopControllerNode | import("./nodes/TrimChatMessagesNode.js").TrimChatMessagesNode | import("./nodes/ExternalCallNode.js").ExternalCallNode | import("./nodes/ExtractObjectPathNode.js").ExtractObjectPathNode | import("./nodes/RaiseEventNode.js").RaiseEventNode | import("./nodes/ReportProgressNode.js").ReportProgressNode | import("./nodes/ContextNode.js").ContextNode | import("./nodes/GraphCallPathNode.js").GraphCallPathNode | import("./nodes/CoalesceNode.js").CoalesceNode | import("./nodes/CoalesceNewNode.js").CoalesceNewNode | import("./nodes/DidRunNode.js").DidRunNode | import("./nodes/PassthroughNode.js").PassthroughNode | import("./nodes/DataBusNode.js").DataBusNode | import("./nodes/StartBackgroundBranchNode.js").StartBackgroundBranchNode | import("./nodes/WatchStreamingOutputNode.js").WatchStreamingOutputNode | import("./nodes/StopWatchingStreamingOutputNode.js").StopWatchingStreamingOutputNode | import("./nodes/PopNode.js").PopNode | import("./nodes/SetGlobalNode.js").SetGlobalNode | import("./nodes/GetGlobalNode.js").GetGlobalNode | import("./nodes/SetStoredValueNode.js").SetStoredValueNode | import("./nodes/GetStoredValueNode.js").GetStoredValueNode | import("./nodes/WaitForEventNode.js").WaitForEventNode | import("./nodes/ToolNode.js").GptFunctionNode | import("./nodes/ToYamlNode.js").ToYamlNode | import("./nodes/GetEmbeddingNode.js").GetEmbeddingNode | import("./nodes/VectorStoreNode.js").VectorStoreNode | import("./nodes/VectorNearestNeighborsNode.js").VectorNearestNeighborsNode | import("./nodes/KnowledgeSourceNode.js").KnowledgeSourceNode | import("./nodes/KnowledgeDocumentNode.js").KnowledgeDocumentNode | import("./nodes/SyncKnowledgeSourceNode.js").SyncKnowledgeSourceNode | import("./nodes/GetKnowledgeSourceStatusNode.js").GetKnowledgeSourceStatusNode | import("./nodes/SearchKnowledgeNode.js").SearchKnowledgeNode | import("./nodes/BuildKnowledgeContextNode.js").BuildKnowledgeContextNode | import("./nodes/HashNode.js").HashNode | import("./nodes/AbortGraphNode.js").AbortGraphNode | import("./nodes/RaceInputsNode.js").RaceInputsNode | import("./nodes/ToJsonNode.js").ToJsonNode | import("./nodes/JoinNode.js").JoinNode | import("./nodes/FilterNode.js").FilterNode | import("./nodes/JSFilterNode.js").JSFilterNode | import("./nodes/JSMapNode.js").JSMapNode | import("./nodes/ObjectNode.js").ObjectNode | import("./nodes/BooleanNode.js").BooleanNode | import("./nodes/CompareNode.js").CompareNode | import("./nodes/EvaluateNode.js").EvaluateNode | import("./nodes/NumberNode.js").NumberNode | import("./nodes/RandomNumberNode.js").RandomNumberNode | import("./nodes/ShuffleNode.js").ShuffleNode | import("./nodes/CommentNode.js").CommentNode | import("./nodes/ImageNode.js").ImageNode | import("./nodes/AudioNode.js").AudioNode | import("./nodes/HttpCallNode.js").HttpCallNode | import("./nodes/DelayNode.js").DelayNode | import("./nodes/AppendToDatasetNode.js").AppendToDatasetNode | import("./nodes/CreateDatasetNode.js").CreateDatasetNode | import("./nodes/LoadDatasetNode.js").LoadDatasetNode | import("./nodes/GetAllDatasetsNode.js").GetAllDatasetsNode | import("./nodes/SplitNode.js").SplitNode | import("./nodes/DatasetNearestNeigborsNode.js").DatasetNearestNeighborsNode | import("./nodes/GetDatasetRowNode.js").GetDatasetRowNode | import("./nodes/SliceNode.js").SliceNode | import("./nodes/ExtractMarkdownCodeBlocksNode.js").ExtractMarkdownCodeBlocksNode | import("./nodes/AssembleMessageNode.js").AssembleMessageNode | import("./nodes/URLReferenceNode.js").UrlReferenceNode | import("./nodes/DestructureNode.js").DestructureNode | import("./nodes/ReplaceDatasetNode.js").ReplaceDatasetNode | import("./nodes/ListGraphsNode.js").ListGraphsNode | import("./nodes/GraphReferenceNode.js").GraphReferenceNode | import("./nodes/CallGraphNode.js").CallGraphNode | import("./nodes/DelegateFunctionCallNode.js").DelegateFunctionCallNode | import("./nodes/PlayAudioNode.js").PlayAudioNode | import("./nodes/DocumentNode.js").DocumentNode | import("./nodes/ChatLoopNode.js").ChatLoopNode | import("./nodes/ReadAllFilesNode.js").ReadAllFilesNode | import("./nodes/ToMarkdownTableNode.js").ToMarkdownTableNode | import("./nodes/CronNode.js").CronNode | import("./nodes/ToTreeNode.js").ToTreeNode | import("./nodes/LoopUntilNode.js").LoopUntilNode | (import("./NodeBase.js").NodeBase & {
|
|
109
111
|
type: "mcpDiscovery";
|
|
110
112
|
data: import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData;
|
|
111
113
|
variants?: import("./NodeBase.js").ChartNodeVariant<import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData>[] | undefined;
|
|
112
114
|
}) | import("./nodes/MCPToolCallNode.js").MCPToolCallNode | import("./nodes/MCPGetPromptNode.js").MCPGetPromptNode | import("./nodes/ReferencedGraphAliasNode.js").ReferencedGraphAliasNode | import("./NodePrefabResolver.js").NodePrefabInstanceNode>;
|
|
113
|
-
declare let globalRivetNodeRegistry: NodeRegistration<"number" | "boolean" | "object" | "pop" | "join" | "slice" | "filter" | "match" | "split" | "image" | "audio" | "document" | "if" | "text" | "chat" | "array" | "code" | "context" | "graphInput" | "setGlobal" | "setStoredValue" | "graphOutput" | "delegateFunctionCall" | "raiseEvent" | "reportProgress" | "getGlobal" | "getStoredValue" | "abortGraph" | "prompt" | "llmChatV2" | "userInput" | "llmProfile" | "extractRegex" | "codeNew" | "expression" | "readDirectory" | "readFile" | "ifElse" | "chunk" | "subGraph" | "extractJson" | "assemblePrompt" | "extractYaml" | "loopController" | "trimChatMessages" | "externalCall" | "extractObjectPath" | "coalesce" | "didRun" | "passthrough" | "dataBus" | "startBackgroundBranch" | "watchStreamingOutput" | "stopWatchingStreamingOutput" | "waitForEvent" | "gptFunction" | "toYaml" | "getEmbedding" | "vectorStore" | "vectorNearestNeighbors" | "knowledgeSource" | "knowledgeDocument" | "syncKnowledgeSource" | "getKnowledgeSourceStatus" | "searchKnowledge" | "buildKnowledgeContext" | "hash" | "raceInputs" | "toJson" | "jsFilter" | "jsMap" | "compare" | "evaluate" | "randomNumber" | "shuffle" | "comment" | "httpCall" | "delay" | "appendToDataset" | "createDataset" | "loadDataset" | "getAllDatasets" | "datasetNearestNeighbors" | "getDatasetRow" | "extractMarkdownCodeBlocks" | "assembleMessage" | "urlReference" | "destructure" | "replaceDataset" | "listGraphs" | "graphReference" | "callGraph" | "playAudio" | "chatLoop" | "readAllFiles" | "toMarkdownTable" | "cron" | "toTree" | "loopUntil" | "mcpDiscovery" | "mcpToolCall" | "mcpGetPrompt" | "referencedGraphAlias" | "nodePrefabInstance", import("./nodes/GraphInputNode.js").GraphInputNode | import("./nodes/GraphOutputNode.js").GraphOutputNode | import("./chat-v2/llmChatV2NodeData.js").LLMChatV2Node | import("./nodes/UserInputNode.js").UserInputNode | import("./nodes/TextNode.js").TextNode | import("./nodes/ChatNode.js").ChatNode | import("./nodes/LLMProfileNode.js").LLMProfileNode | import("./nodes/PromptNode.js").PromptNode | import("./nodes/ExtractRegexNode.js").ExtractRegexNode | import("./nodes/CodeNode.js").CodeNode | import("./nodes/CodeNewNode.js").CodeNewNode | import("./nodes/ExpressionNode.js").ExpressionNode | import("./nodes/MatchNode.js").MatchNode | import("./nodes/IfNode.js").IfNode | import("./nodes/ReadDirectoryNode.js").ReadDirectoryNode | import("./nodes/ReadFileNode.js").ReadFileNode | import("./nodes/IfElseNode.js").IfElseNode | import("./nodes/ChunkNode.js").ChunkNode | import("./nodes/SubGraphNode.js").SubGraphNode | import("./nodes/ArrayNode.js").ArrayNode | import("./nodes/ExtractJsonNode.js").ExtractJsonNode | import("./nodes/AssemblePromptNode.js").AssemblePromptNode | import("./nodes/ExtractYamlNode.js").ExtractYamlNode | import("./nodes/LoopControllerNode.js").LoopControllerNode | import("./nodes/TrimChatMessagesNode.js").TrimChatMessagesNode | import("./nodes/ExternalCallNode.js").ExternalCallNode | import("./nodes/ExtractObjectPathNode.js").ExtractObjectPathNode | import("./nodes/RaiseEventNode.js").RaiseEventNode | import("./nodes/ReportProgressNode.js").ReportProgressNode | import("./nodes/ContextNode.js").ContextNode | import("./nodes/CoalesceNode.js").CoalesceNode | import("./nodes/DidRunNode.js").DidRunNode | import("./nodes/PassthroughNode.js").PassthroughNode | import("./nodes/DataBusNode.js").DataBusNode | import("./nodes/StartBackgroundBranchNode.js").StartBackgroundBranchNode | import("./nodes/WatchStreamingOutputNode.js").WatchStreamingOutputNode | import("./nodes/StopWatchingStreamingOutputNode.js").StopWatchingStreamingOutputNode | import("./nodes/PopNode.js").PopNode | import("./nodes/SetGlobalNode.js").SetGlobalNode | import("./nodes/GetGlobalNode.js").GetGlobalNode | import("./nodes/SetStoredValueNode.js").SetStoredValueNode | import("./nodes/GetStoredValueNode.js").GetStoredValueNode | import("./nodes/WaitForEventNode.js").WaitForEventNode | import("./nodes/ToolNode.js").GptFunctionNode | import("./nodes/ToYamlNode.js").ToYamlNode | import("./nodes/GetEmbeddingNode.js").GetEmbeddingNode | import("./nodes/VectorStoreNode.js").VectorStoreNode | import("./nodes/VectorNearestNeighborsNode.js").VectorNearestNeighborsNode | import("./nodes/KnowledgeSourceNode.js").KnowledgeSourceNode | import("./nodes/KnowledgeDocumentNode.js").KnowledgeDocumentNode | import("./nodes/SyncKnowledgeSourceNode.js").SyncKnowledgeSourceNode | import("./nodes/GetKnowledgeSourceStatusNode.js").GetKnowledgeSourceStatusNode | import("./nodes/SearchKnowledgeNode.js").SearchKnowledgeNode | import("./nodes/BuildKnowledgeContextNode.js").BuildKnowledgeContextNode | import("./nodes/HashNode.js").HashNode | import("./nodes/AbortGraphNode.js").AbortGraphNode | import("./nodes/RaceInputsNode.js").RaceInputsNode | import("./nodes/ToJsonNode.js").ToJsonNode | import("./nodes/JoinNode.js").JoinNode | import("./nodes/FilterNode.js").FilterNode | import("./nodes/JSFilterNode.js").JSFilterNode | import("./nodes/JSMapNode.js").JSMapNode | import("./nodes/ObjectNode.js").ObjectNode | import("./nodes/BooleanNode.js").BooleanNode | import("./nodes/CompareNode.js").CompareNode | import("./nodes/EvaluateNode.js").EvaluateNode | import("./nodes/NumberNode.js").NumberNode | import("./nodes/RandomNumberNode.js").RandomNumberNode | import("./nodes/ShuffleNode.js").ShuffleNode | import("./nodes/CommentNode.js").CommentNode | import("./nodes/ImageNode.js").ImageNode | import("./nodes/AudioNode.js").AudioNode | import("./nodes/HttpCallNode.js").HttpCallNode | import("./nodes/DelayNode.js").DelayNode | import("./nodes/AppendToDatasetNode.js").AppendToDatasetNode | import("./nodes/CreateDatasetNode.js").CreateDatasetNode | import("./nodes/LoadDatasetNode.js").LoadDatasetNode | import("./nodes/GetAllDatasetsNode.js").GetAllDatasetsNode | import("./nodes/SplitNode.js").SplitNode | import("./nodes/DatasetNearestNeigborsNode.js").DatasetNearestNeighborsNode | import("./nodes/GetDatasetRowNode.js").GetDatasetRowNode | import("./nodes/SliceNode.js").SliceNode | import("./nodes/ExtractMarkdownCodeBlocksNode.js").ExtractMarkdownCodeBlocksNode | import("./nodes/AssembleMessageNode.js").AssembleMessageNode | import("./nodes/URLReferenceNode.js").UrlReferenceNode | import("./nodes/DestructureNode.js").DestructureNode | import("./nodes/ReplaceDatasetNode.js").ReplaceDatasetNode | import("./nodes/ListGraphsNode.js").ListGraphsNode | import("./nodes/GraphReferenceNode.js").GraphReferenceNode | import("./nodes/CallGraphNode.js").CallGraphNode | import("./nodes/DelegateFunctionCallNode.js").DelegateFunctionCallNode | import("./nodes/PlayAudioNode.js").PlayAudioNode | import("./nodes/DocumentNode.js").DocumentNode | import("./nodes/ChatLoopNode.js").ChatLoopNode | import("./nodes/ReadAllFilesNode.js").ReadAllFilesNode | import("./nodes/ToMarkdownTableNode.js").ToMarkdownTableNode | import("./nodes/CronNode.js").CronNode | import("./nodes/ToTreeNode.js").ToTreeNode | import("./nodes/LoopUntilNode.js").LoopUntilNode | (import("./NodeBase.js").NodeBase & {
|
|
115
|
+
declare let globalRivetNodeRegistry: NodeRegistration<"number" | "boolean" | "object" | "pop" | "join" | "slice" | "filter" | "match" | "split" | "image" | "audio" | "document" | "if" | "text" | "chat" | "array" | "code" | "context" | "graphInput" | "setGlobal" | "setStoredValue" | "graphOutput" | "delegateFunctionCall" | "graphCallPath" | "raiseEvent" | "reportProgress" | "getGlobal" | "getStoredValue" | "abortGraph" | "prompt" | "llmChatV2" | "userInput" | "llmProfile" | "extractRegex" | "codeNew" | "expression" | "readDirectory" | "readFile" | "ifElse" | "chunk" | "subGraph" | "extractJson" | "assemblePrompt" | "extractYaml" | "loopController" | "trimChatMessages" | "externalCall" | "extractObjectPath" | "coalesce" | "coalesceNew" | "didRun" | "passthrough" | "dataBus" | "startBackgroundBranch" | "watchStreamingOutput" | "stopWatchingStreamingOutput" | "waitForEvent" | "gptFunction" | "toYaml" | "getEmbedding" | "vectorStore" | "vectorNearestNeighbors" | "knowledgeSource" | "knowledgeDocument" | "syncKnowledgeSource" | "getKnowledgeSourceStatus" | "searchKnowledge" | "buildKnowledgeContext" | "hash" | "raceInputs" | "toJson" | "jsFilter" | "jsMap" | "compare" | "evaluate" | "randomNumber" | "shuffle" | "comment" | "httpCall" | "delay" | "appendToDataset" | "createDataset" | "loadDataset" | "getAllDatasets" | "datasetNearestNeighbors" | "getDatasetRow" | "extractMarkdownCodeBlocks" | "assembleMessage" | "urlReference" | "destructure" | "replaceDataset" | "listGraphs" | "graphReference" | "callGraph" | "playAudio" | "chatLoop" | "readAllFiles" | "toMarkdownTable" | "cron" | "toTree" | "loopUntil" | "mcpDiscovery" | "mcpToolCall" | "mcpGetPrompt" | "referencedGraphAlias" | "nodePrefabInstance", import("./nodes/GraphInputNode.js").GraphInputNode | import("./nodes/GraphOutputNode.js").GraphOutputNode | import("./chat-v2/llmChatV2NodeData.js").LLMChatV2Node | import("./nodes/UserInputNode.js").UserInputNode | import("./nodes/TextNode.js").TextNode | import("./nodes/ChatNode.js").ChatNode | import("./nodes/LLMProfileNode.js").LLMProfileNode | import("./nodes/PromptNode.js").PromptNode | import("./nodes/ExtractRegexNode.js").ExtractRegexNode | import("./nodes/CodeNode.js").CodeNode | import("./nodes/CodeNewNode.js").CodeNewNode | import("./nodes/ExpressionNode.js").ExpressionNode | import("./nodes/MatchNode.js").MatchNode | import("./nodes/IfNode.js").IfNode | import("./nodes/ReadDirectoryNode.js").ReadDirectoryNode | import("./nodes/ReadFileNode.js").ReadFileNode | import("./nodes/IfElseNode.js").IfElseNode | import("./nodes/ChunkNode.js").ChunkNode | import("./nodes/SubGraphNode.js").SubGraphNode | import("./nodes/ArrayNode.js").ArrayNode | import("./nodes/ExtractJsonNode.js").ExtractJsonNode | import("./nodes/AssemblePromptNode.js").AssemblePromptNode | import("./nodes/ExtractYamlNode.js").ExtractYamlNode | import("./nodes/LoopControllerNode.js").LoopControllerNode | import("./nodes/TrimChatMessagesNode.js").TrimChatMessagesNode | import("./nodes/ExternalCallNode.js").ExternalCallNode | import("./nodes/ExtractObjectPathNode.js").ExtractObjectPathNode | import("./nodes/RaiseEventNode.js").RaiseEventNode | import("./nodes/ReportProgressNode.js").ReportProgressNode | import("./nodes/ContextNode.js").ContextNode | import("./nodes/GraphCallPathNode.js").GraphCallPathNode | import("./nodes/CoalesceNode.js").CoalesceNode | import("./nodes/CoalesceNewNode.js").CoalesceNewNode | import("./nodes/DidRunNode.js").DidRunNode | import("./nodes/PassthroughNode.js").PassthroughNode | import("./nodes/DataBusNode.js").DataBusNode | import("./nodes/StartBackgroundBranchNode.js").StartBackgroundBranchNode | import("./nodes/WatchStreamingOutputNode.js").WatchStreamingOutputNode | import("./nodes/StopWatchingStreamingOutputNode.js").StopWatchingStreamingOutputNode | import("./nodes/PopNode.js").PopNode | import("./nodes/SetGlobalNode.js").SetGlobalNode | import("./nodes/GetGlobalNode.js").GetGlobalNode | import("./nodes/SetStoredValueNode.js").SetStoredValueNode | import("./nodes/GetStoredValueNode.js").GetStoredValueNode | import("./nodes/WaitForEventNode.js").WaitForEventNode | import("./nodes/ToolNode.js").GptFunctionNode | import("./nodes/ToYamlNode.js").ToYamlNode | import("./nodes/GetEmbeddingNode.js").GetEmbeddingNode | import("./nodes/VectorStoreNode.js").VectorStoreNode | import("./nodes/VectorNearestNeighborsNode.js").VectorNearestNeighborsNode | import("./nodes/KnowledgeSourceNode.js").KnowledgeSourceNode | import("./nodes/KnowledgeDocumentNode.js").KnowledgeDocumentNode | import("./nodes/SyncKnowledgeSourceNode.js").SyncKnowledgeSourceNode | import("./nodes/GetKnowledgeSourceStatusNode.js").GetKnowledgeSourceStatusNode | import("./nodes/SearchKnowledgeNode.js").SearchKnowledgeNode | import("./nodes/BuildKnowledgeContextNode.js").BuildKnowledgeContextNode | import("./nodes/HashNode.js").HashNode | import("./nodes/AbortGraphNode.js").AbortGraphNode | import("./nodes/RaceInputsNode.js").RaceInputsNode | import("./nodes/ToJsonNode.js").ToJsonNode | import("./nodes/JoinNode.js").JoinNode | import("./nodes/FilterNode.js").FilterNode | import("./nodes/JSFilterNode.js").JSFilterNode | import("./nodes/JSMapNode.js").JSMapNode | import("./nodes/ObjectNode.js").ObjectNode | import("./nodes/BooleanNode.js").BooleanNode | import("./nodes/CompareNode.js").CompareNode | import("./nodes/EvaluateNode.js").EvaluateNode | import("./nodes/NumberNode.js").NumberNode | import("./nodes/RandomNumberNode.js").RandomNumberNode | import("./nodes/ShuffleNode.js").ShuffleNode | import("./nodes/CommentNode.js").CommentNode | import("./nodes/ImageNode.js").ImageNode | import("./nodes/AudioNode.js").AudioNode | import("./nodes/HttpCallNode.js").HttpCallNode | import("./nodes/DelayNode.js").DelayNode | import("./nodes/AppendToDatasetNode.js").AppendToDatasetNode | import("./nodes/CreateDatasetNode.js").CreateDatasetNode | import("./nodes/LoadDatasetNode.js").LoadDatasetNode | import("./nodes/GetAllDatasetsNode.js").GetAllDatasetsNode | import("./nodes/SplitNode.js").SplitNode | import("./nodes/DatasetNearestNeigborsNode.js").DatasetNearestNeighborsNode | import("./nodes/GetDatasetRowNode.js").GetDatasetRowNode | import("./nodes/SliceNode.js").SliceNode | import("./nodes/ExtractMarkdownCodeBlocksNode.js").ExtractMarkdownCodeBlocksNode | import("./nodes/AssembleMessageNode.js").AssembleMessageNode | import("./nodes/URLReferenceNode.js").UrlReferenceNode | import("./nodes/DestructureNode.js").DestructureNode | import("./nodes/ReplaceDatasetNode.js").ReplaceDatasetNode | import("./nodes/ListGraphsNode.js").ListGraphsNode | import("./nodes/GraphReferenceNode.js").GraphReferenceNode | import("./nodes/CallGraphNode.js").CallGraphNode | import("./nodes/DelegateFunctionCallNode.js").DelegateFunctionCallNode | import("./nodes/PlayAudioNode.js").PlayAudioNode | import("./nodes/DocumentNode.js").DocumentNode | import("./nodes/ChatLoopNode.js").ChatLoopNode | import("./nodes/ReadAllFilesNode.js").ReadAllFilesNode | import("./nodes/ToMarkdownTableNode.js").ToMarkdownTableNode | import("./nodes/CronNode.js").CronNode | import("./nodes/ToTreeNode.js").ToTreeNode | import("./nodes/LoopUntilNode.js").LoopUntilNode | (import("./NodeBase.js").NodeBase & {
|
|
114
116
|
type: "mcpDiscovery";
|
|
115
117
|
data: import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData;
|
|
116
118
|
variants?: import("./NodeBase.js").ChartNodeVariant<import("./nodes/MCPDiscoveryNode.js").MCPDiscoveryNodeData>[] | undefined;
|
|
@@ -262,6 +262,8 @@ export type InternalProcessContext<T extends ChartNode = ChartNode> = ProcessCon
|
|
|
262
262
|
isDirectRunTarget: boolean;
|
|
263
263
|
/** Stable execution lineage for the current graph invocation. */
|
|
264
264
|
execution: GraphExecutionMetadata;
|
|
265
|
+
/** Names of real graph calls, from the executed entry graph through this graph. */
|
|
266
|
+
graphCallPath: readonly string[];
|
|
265
267
|
/**
|
|
266
268
|
* Marks this invocation's terminal result as an editor-cache replay.
|
|
267
269
|
* Cache-aware node implementations call this only after confirming a hit.
|
|
@@ -15,7 +15,10 @@ export type StreamingOutputWatchRuntimeSummary = {
|
|
|
15
15
|
coalescedUpdates: number;
|
|
16
16
|
droppedUpdates: number;
|
|
17
17
|
maximumQueuedUpdates: number;
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* A coordinator failure that is not necessarily a failed child iteration.
|
|
20
|
+
* `missing-stop` is retained only to read historical recording summaries.
|
|
21
|
+
*/
|
|
19
22
|
failureKind?: StreamingOutputWatchFailureKind;
|
|
20
23
|
};
|
|
21
24
|
export type StreamingOutputWatchFailureKind = 'branch-failure' | 'missing-stop' | 'queue-overflow';
|
|
@@ -46,26 +49,25 @@ export declare const streamingOutputWatchLimits: {
|
|
|
46
49
|
/**
|
|
47
50
|
* Owns bounded, cancellable delivery of a streaming node's immutable output
|
|
48
51
|
* snapshots. It deliberately knows nothing about graph topology: the owning
|
|
49
|
-
* GraphProcessor decides how a snapshot runs and whether
|
|
50
|
-
*
|
|
52
|
+
* GraphProcessor decides how a snapshot runs and whether a Stop boundary
|
|
53
|
+
* must be resolved after the stream completes.
|
|
51
54
|
*/
|
|
52
55
|
export declare class StreamingOutputWatch {
|
|
53
56
|
#private;
|
|
54
|
-
constructor(options: Partial<StreamingOutputWatchOptions>, run: (snapshot: StreamingOutputWatchSnapshot, registerCancel: (cancel: () => void) => void) => Promise<void>, onFailure: (error: Error) => void
|
|
55
|
-
requiresAcceptedStop?: boolean;
|
|
56
|
-
});
|
|
57
|
+
constructor(options: Partial<StreamingOutputWatchOptions>, run: (snapshot: StreamingOutputWatchSnapshot, registerCancel: (cancel: () => void) => void) => Promise<void>, onFailure: (error: Error) => void);
|
|
57
58
|
get hasPending(): boolean;
|
|
58
59
|
get isAwaitingProducer(): boolean;
|
|
59
60
|
get stopped(): boolean;
|
|
60
61
|
/** True only after this Watch can no longer receive or run a snapshot. */
|
|
61
62
|
get isSettled(): boolean;
|
|
62
|
-
get runtimeSummary(): StreamingOutputWatchRuntimeSummary;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
64
|
+
* The producer delivered its final snapshot and every scheduled invocation
|
|
65
|
+
* settled without cancellation or failure. The scheduler deliberately does
|
|
66
|
+
* not infer graph topology; GraphProcessor decides whether this means a
|
|
67
|
+
* parent Stop must be excluded.
|
|
67
68
|
*/
|
|
68
|
-
get
|
|
69
|
+
get finishedNormally(): boolean;
|
|
70
|
+
get runtimeSummary(): StreamingOutputWatchRuntimeSummary;
|
|
69
71
|
publish(snapshot: StreamingOutputWatchSnapshot): void;
|
|
70
72
|
finish(finalSnapshot: StreamingOutputWatchSnapshot): void;
|
|
71
73
|
/** Preserve the winning invocation's siblings; later owner cancellation cancels all. */
|
|
@@ -26,6 +26,7 @@ export type ChatV2CommonNodeData = {
|
|
|
26
26
|
useAsGraphPartialOutput?: boolean;
|
|
27
27
|
};
|
|
28
28
|
type ChatV2SharedNode = ChartNode<string, ChatV2CommonNodeData>;
|
|
29
|
+
export declare const STREAM_RESPONSE_HELPER_MESSAGE = "Shows streamed response updates in the editor, including direct consumer previews. Ordinary consumers run after the final response; Watch Streaming Output branches can run during streaming.";
|
|
29
30
|
export type CommonChatV2InputOptions = {
|
|
30
31
|
systemPromptPortId?: PortId;
|
|
31
32
|
promptPortId?: PortId;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type NodeUIData } from '../NodeImpl.js';
|
|
2
|
+
import { type ChartNode } from '../NodeBase.js';
|
|
3
|
+
import { CoalesceNodeBase, type CoalesceNodeData } from './CoalesceNodeBase.js';
|
|
4
|
+
export type CoalesceNewNode = ChartNode<'coalesceNew', CoalesceNodeData>;
|
|
5
|
+
export declare class CoalesceNewNodeImpl extends CoalesceNodeBase<CoalesceNewNode> {
|
|
6
|
+
protected readonly includesLegacyConditionalInput = false;
|
|
7
|
+
static create: () => CoalesceNewNode;
|
|
8
|
+
static getUIData(): NodeUIData;
|
|
9
|
+
}
|
|
10
|
+
export declare const coalesceNewNode: import("../NodeDefinition.js").NodeDefinition<CoalesceNewNode>;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type ChartNode
|
|
3
|
-
import {
|
|
4
|
-
import { type EditorDefinition } from '../EditorDefinition.js';
|
|
1
|
+
import { type NodeUIData } from '../NodeImpl.js';
|
|
2
|
+
import { type ChartNode } from '../NodeBase.js';
|
|
3
|
+
import { CoalesceNodeBase, type CoalesceNodeData } from './CoalesceNodeBase.js';
|
|
5
4
|
export type CoalesceNode = ChartNode<'coalesce', CoalesceNodeData>;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
#private;
|
|
5
|
+
/** Display-only label; the persisted node type remains the stable `coalesce`. */
|
|
6
|
+
export declare const coalesceLegacyDisplayName = "Coalesce (legacy)";
|
|
7
|
+
/** The persisted `coalesce` type remains available for existing graphs. */
|
|
8
|
+
export declare class CoalesceNodeImpl extends CoalesceNodeBase<CoalesceNode> {
|
|
9
|
+
protected readonly includesLegacyConditionalInput = true;
|
|
12
10
|
static create: () => CoalesceNode;
|
|
13
|
-
getInputDefinitions(connections: NodeConnection[]): NodeInputDefinition[];
|
|
14
|
-
getOutputDefinitions(): NodeOutputDefinition[];
|
|
15
|
-
getEditors(): EditorDefinition<CoalesceNode>[];
|
|
16
|
-
getBody(): string | undefined;
|
|
17
11
|
static getUIData(): NodeUIData;
|
|
18
|
-
process(inputData: Inputs): Promise<Outputs>;
|
|
19
12
|
}
|
|
13
|
+
export { type CoalesceNodeData } from './CoalesceNodeBase.js';
|
|
20
14
|
export declare const coalesceNode: import("../NodeDefinition.js").NodeDefinition<CoalesceNode>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type EditorDefinition } from '../EditorDefinition.js';
|
|
2
|
+
import { type Inputs, type Outputs } from '../GraphProcessor.js';
|
|
3
|
+
import { NodeImpl } from '../NodeImpl.js';
|
|
4
|
+
import { type ChartNode, type NodeConnection, type NodeInputDefinition, type NodeOutputDefinition } from '../NodeBase.js';
|
|
5
|
+
export type CoalesceNodeData = {
|
|
6
|
+
ignoreNull?: boolean;
|
|
7
|
+
ignoreUndefined?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function createCoalesceNode<T extends string>(type: T, title: string): ChartNode<T, CoalesceNodeData>;
|
|
10
|
+
/** Shared fallback behavior for the current and compatibility Coalesce nodes. */
|
|
11
|
+
export declare abstract class CoalesceNodeBase<T extends ChartNode<string, CoalesceNodeData>> extends NodeImpl<T> {
|
|
12
|
+
#private;
|
|
13
|
+
protected abstract readonly includesLegacyConditionalInput: boolean;
|
|
14
|
+
getInputDefinitions(connections: NodeConnection[]): NodeInputDefinition[];
|
|
15
|
+
getOutputDefinitions(): NodeOutputDefinition[];
|
|
16
|
+
getEditors(): EditorDefinition<T>[];
|
|
17
|
+
getBody(): string | undefined;
|
|
18
|
+
process(inputData: Inputs): Promise<Outputs>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ChartNode, EditorDefinition, Inputs, InternalProcessContext, NodeInputDefinition, NodeOutputDefinition, NodeUIData, Outputs } from '../../index.js';
|
|
2
|
+
import { NodeImpl } from '../NodeImpl.js';
|
|
3
|
+
export type GraphCallPathNode = ChartNode<'graphCallPath', Record<string, never>>;
|
|
4
|
+
export declare class GraphCallPathNodeImpl extends NodeImpl<GraphCallPathNode> {
|
|
5
|
+
static create(): GraphCallPathNode;
|
|
6
|
+
getInputDefinitions(): NodeInputDefinition[];
|
|
7
|
+
getOutputDefinitions(): NodeOutputDefinition[];
|
|
8
|
+
getEditors(): EditorDefinition<GraphCallPathNode>[];
|
|
9
|
+
static getUIData(): NodeUIData;
|
|
10
|
+
process(_inputs: Inputs, context: InternalProcessContext): Promise<Outputs>;
|
|
11
|
+
}
|
|
12
|
+
export declare const graphCallPathNode: import("../NodeDefinition.js").NodeDefinition<GraphCallPathNode>;
|
|
@@ -1,92 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
cost: {
|
|
5
|
-
prompt: number;
|
|
6
|
-
completion: number;
|
|
7
|
-
};
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const googleModelsDeprecated: {
|
|
11
|
-
'gemini-pro': {
|
|
12
|
-
maxTokens: number;
|
|
13
|
-
cost: {
|
|
14
|
-
prompt: number;
|
|
15
|
-
completion: number;
|
|
16
|
-
};
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
19
|
-
'gemini-pro-vision': {
|
|
20
|
-
maxTokens: number;
|
|
21
|
-
cost: {
|
|
22
|
-
prompt: number;
|
|
23
|
-
completion: number;
|
|
24
|
-
};
|
|
25
|
-
displayName: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export type GoogleModelsDeprecated = keyof typeof googleModelsDeprecated;
|
|
29
|
-
export declare const generativeAiGoogleModels: {
|
|
30
|
-
'gemini-2.5-pro': {
|
|
31
|
-
maxTokens: number;
|
|
32
|
-
cost: {
|
|
33
|
-
prompt: number;
|
|
34
|
-
completion: number;
|
|
35
|
-
};
|
|
36
|
-
displayName: string;
|
|
37
|
-
};
|
|
38
|
-
'gemini-2.5-flash': {
|
|
39
|
-
maxTokens: number;
|
|
40
|
-
cost: {
|
|
41
|
-
prompt: number;
|
|
42
|
-
completion: number;
|
|
43
|
-
};
|
|
44
|
-
displayName: string;
|
|
45
|
-
};
|
|
46
|
-
'gemini-2.5-flash-lite-preview-06-17': {
|
|
47
|
-
maxTokens: number;
|
|
48
|
-
cost: {
|
|
49
|
-
prompt: number;
|
|
50
|
-
completion: number;
|
|
51
|
-
};
|
|
52
|
-
displayName: string;
|
|
53
|
-
};
|
|
54
|
-
'gemini-2.0-flash': {
|
|
55
|
-
maxTokens: number;
|
|
56
|
-
cost: {
|
|
57
|
-
prompt: number;
|
|
58
|
-
completion: number;
|
|
59
|
-
};
|
|
60
|
-
displayName: string;
|
|
61
|
-
};
|
|
62
|
-
'gemini-2.0-flash-lite': {
|
|
63
|
-
maxTokens: number;
|
|
64
|
-
cost: {
|
|
65
|
-
prompt: number;
|
|
66
|
-
completion: number;
|
|
67
|
-
};
|
|
68
|
-
displayName: string;
|
|
69
|
-
};
|
|
70
|
-
'gemini-1.5-pro': {
|
|
71
|
-
maxTokens: number;
|
|
72
|
-
displayName: string;
|
|
73
|
-
pricing: "unpriced";
|
|
74
|
-
};
|
|
75
|
-
'gemini-1.5-flash': {
|
|
76
|
-
maxTokens: number;
|
|
77
|
-
displayName: string;
|
|
78
|
-
pricing: "unpriced";
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
export type GenerativeAiGoogleModel = keyof typeof generativeAiGoogleModels;
|
|
82
|
-
export declare const googleModelOptionsDeprecated: {
|
|
83
|
-
value: string;
|
|
84
|
-
label: string;
|
|
85
|
-
}[];
|
|
86
|
-
export declare const generativeAiOptions: {
|
|
87
|
-
value: string;
|
|
88
|
-
label: string;
|
|
89
|
-
}[];
|
|
1
|
+
import type { Content } from '@google/genai';
|
|
2
|
+
import type { ChatCompletionChunk, GoogleModelsDeprecated } from './googleGenerativeAi.js';
|
|
3
|
+
export { type ChatCompletionChunk, type GenerativeAiGoogleModel, type GoogleModelDeprecated, type GoogleModelsDeprecated, type StreamGenerativeAiOptions, generativeAiGoogleModels, generativeAiOptions, googleModelOptionsDeprecated, googleModelsDeprecated, streamGenerativeAi, } from './googleGenerativeAi.js';
|
|
90
4
|
export type ChatCompletionOptions = {
|
|
91
5
|
project: string;
|
|
92
6
|
location: string;
|
|
@@ -100,12 +14,6 @@ export type ChatCompletionOptions = {
|
|
|
100
14
|
top_k?: number;
|
|
101
15
|
signal?: AbortSignal;
|
|
102
16
|
};
|
|
103
|
-
export type ChatCompletionChunk = {
|
|
104
|
-
completion?: string;
|
|
105
|
-
function_calls?: FunctionCall[];
|
|
106
|
-
finish_reason: 'FINISH_REASON_UNSPECIFIED' | 'FINISH_REASON_STOP' | 'FINISH_REASON_MAX_TOKENS' | 'FINISH_REASON_SAFETY' | 'FINISH_REASON_RECITATION' | 'FINISH_REASON_OTHER' | undefined;
|
|
107
|
-
model: string;
|
|
108
|
-
};
|
|
109
17
|
export declare function getVertexGenerativeModelOptions(options: Pick<ChatCompletionOptions, 'model' | 'systemPrompt' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k'>): {
|
|
110
18
|
model: "gemini-pro" | "gemini-pro-vision";
|
|
111
19
|
systemInstruction: string | undefined;
|
|
@@ -116,19 +24,4 @@ export declare function getVertexGenerativeModelOptions(options: Pick<ChatComple
|
|
|
116
24
|
topK: number | undefined;
|
|
117
25
|
};
|
|
118
26
|
};
|
|
119
|
-
export type StreamGenerativeAiOptions = {
|
|
120
|
-
apiKey: string;
|
|
121
|
-
model: GenerativeAiGoogleModel;
|
|
122
|
-
systemPrompt: string | undefined;
|
|
123
|
-
prompt: Content[];
|
|
124
|
-
maxOutputTokens: number;
|
|
125
|
-
temperature: number | undefined;
|
|
126
|
-
topP: number | undefined;
|
|
127
|
-
topK: number | undefined;
|
|
128
|
-
signal?: AbortSignal;
|
|
129
|
-
tools: Tool[] | undefined;
|
|
130
|
-
thinkingBudget?: number;
|
|
131
|
-
additionalHeaders?: Record<string, string>;
|
|
132
|
-
};
|
|
133
|
-
export declare function streamGenerativeAi({ apiKey, model, systemPrompt, prompt, maxOutputTokens, temperature, topP, topK, signal, tools, thinkingBudget, additionalHeaders, }: StreamGenerativeAiOptions): AsyncGenerator<ChatCompletionChunk>;
|
|
134
27
|
export declare function streamChatCompletions({ project, location, applicationCredentials, model, signal, max_output_tokens, temperature, top_p, top_k, systemPrompt, prompt, }: ChatCompletionOptions): AsyncGenerator<ChatCompletionChunk>;
|