@ghchinoy/litflow 0.3.0 → 0.4.1
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/CHANGELOG.md +13 -10
- package/dist/breadboard/data/file-system.d.ts +9 -0
- package/dist/breadboard/data/inline-all-content.d.ts +8 -0
- package/dist/breadboard/data/recent-boards.d.ts +17 -0
- package/dist/breadboard/data/save-outputs-as-file.d.ts +9 -0
- package/dist/breadboard/engine/add-run-module.d.ts +9 -0
- package/dist/breadboard/engine/editor/blank.d.ts +15 -0
- package/dist/breadboard/engine/editor/edge.d.ts +8 -0
- package/dist/breadboard/engine/editor/events.d.ts +34 -0
- package/dist/breadboard/engine/editor/graph.d.ts +18 -0
- package/dist/breadboard/engine/editor/history.d.ts +21 -0
- package/dist/breadboard/engine/editor/index.d.ts +6 -0
- package/dist/breadboard/engine/editor/operations/add-asset.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/add-edge.d.ts +11 -0
- package/dist/breadboard/engine/editor/operations/add-graph.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/add-module.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/add-node.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/change-asset-metadata.d.ts +11 -0
- package/dist/breadboard/engine/editor/operations/change-configuration.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/change-edge-metadata.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/change-edge.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/change-graph-metadata.d.ts +9 -0
- package/dist/breadboard/engine/editor/operations/change-metadata.d.ts +11 -0
- package/dist/breadboard/engine/editor/operations/change-module.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/error.d.ts +9 -0
- package/dist/breadboard/engine/editor/operations/remove-asset.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/remove-edge.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/remove-graph.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/remove-integration.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/remove-module.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/remove-node.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/replace-graph.d.ts +9 -0
- package/dist/breadboard/engine/editor/operations/toggle-export.d.ts +9 -0
- package/dist/breadboard/engine/editor/operations/upsert-integration.d.ts +10 -0
- package/dist/breadboard/engine/editor/selection.d.ts +16 -0
- package/dist/breadboard/engine/editor/transforms/configure-sidewire.d.ts +15 -0
- package/dist/breadboard/engine/editor/transforms/isolate-selection.d.ts +12 -0
- package/dist/breadboard/engine/editor/transforms/merge-graph.d.ts +12 -0
- package/dist/breadboard/engine/editor/transforms/move-to-graph.d.ts +12 -0
- package/dist/breadboard/engine/editor/transforms/move-to-new-graph.d.ts +12 -0
- package/dist/breadboard/engine/editor/transforms/sidewire-to-new-graph.d.ts +72 -0
- package/dist/breadboard/engine/file-system/blob-transform.d.ts +8 -0
- package/dist/breadboard/engine/file-system/composed-peristent-backend.d.ts +8 -0
- package/dist/breadboard/engine/file-system/ephemeral-blob-store.d.ts +8 -0
- package/dist/breadboard/engine/file-system/in-memory-blob-store.d.ts +18 -0
- package/dist/breadboard/engine/file-system/index.d.ts +22 -0
- package/dist/breadboard/engine/file-system/partial-persistent-backend.d.ts +19 -0
- package/dist/breadboard/engine/file-system/path.d.ts +23 -0
- package/dist/breadboard/engine/file-system/persistent-file.d.ts +19 -0
- package/dist/breadboard/engine/file-system/readable-stream-file.d.ts +17 -0
- package/dist/breadboard/engine/file-system/stub-file-system.d.ts +18 -0
- package/dist/breadboard/engine/file-system/utils.d.ts +9 -0
- package/dist/breadboard/engine/inspector/graph/bubbled-node.d.ts +34 -0
- package/dist/breadboard/engine/inspector/graph/describe-cache.d.ts +15 -0
- package/dist/breadboard/engine/inspector/graph/describe-type-cache.d.ts +15 -0
- package/dist/breadboard/engine/inspector/graph/edge-cache.d.ts +22 -0
- package/dist/breadboard/engine/inspector/graph/edge.d.ts +40 -0
- package/dist/breadboard/engine/inspector/graph/event.d.ts +16 -0
- package/dist/breadboard/engine/inspector/graph/exports-describer.d.ts +13 -0
- package/dist/breadboard/engine/inspector/graph/graph-cache.d.ts +18 -0
- package/dist/breadboard/engine/inspector/graph/graph-describer-manager.d.ts +21 -0
- package/dist/breadboard/engine/inspector/graph/graph-descriptor-handle.d.ts +17 -0
- package/dist/breadboard/engine/inspector/graph/graph-node-type.d.ts +15 -0
- package/dist/breadboard/engine/inspector/graph/graph-queries.d.ts +31 -0
- package/dist/breadboard/engine/inspector/graph/graph.d.ts +37 -0
- package/dist/breadboard/engine/inspector/graph/inspectable-asset.d.ts +17 -0
- package/dist/breadboard/engine/inspector/graph/kits.d.ts +15 -0
- package/dist/breadboard/engine/inspector/graph/module.d.ts +14 -0
- package/dist/breadboard/engine/inspector/graph/mutable-graph.d.ts +26 -0
- package/dist/breadboard/engine/inspector/graph/node-cache.d.ts +20 -0
- package/dist/breadboard/engine/inspector/graph/node-describer-manager.d.ts +25 -0
- package/dist/breadboard/engine/inspector/graph/node-type-describer-manager.d.ts +19 -0
- package/dist/breadboard/engine/inspector/graph/node.d.ts +27 -0
- package/dist/breadboard/engine/inspector/graph/port-cache.d.ts +18 -0
- package/dist/breadboard/engine/inspector/graph/ports.d.ts +16 -0
- package/dist/breadboard/engine/inspector/graph/schemas.d.ts +24 -0
- package/dist/breadboard/engine/inspector/graph/virtual-node.d.ts +35 -0
- package/dist/breadboard/engine/inspector/graph-store.d.ts +45 -0
- package/dist/breadboard/engine/inspector/index.d.ts +7 -0
- package/dist/breadboard/engine/inspector/utils.d.ts +9 -0
- package/dist/breadboard/engine/loader/index.d.ts +7 -0
- package/dist/breadboard/engine/runtime/harness/diagnostics.d.ts +12 -0
- package/dist/breadboard/engine/runtime/harness/index.d.ts +8 -0
- package/dist/breadboard/engine/runtime/index.d.ts +6 -0
- package/dist/breadboard/engine/runtime/legacy.d.ts +11 -0
- package/dist/breadboard/engine/runtime/static/condense.d.ts +25 -0
- package/dist/breadboard/engine/runtime/static/nodes-to-subgraph.d.ts +18 -0
- package/dist/breadboard/engine/runtime/static/types.d.ts +72 -0
- package/dist/breadboard/engine/telemetry.d.ts +25 -0
- package/dist/breadboard/engine/types.d.ts +9 -0
- package/dist/lit-flow.d.ts +13 -0
- package/dist/lit-node.d.ts +1 -0
- package/dist/litflow.js +6002 -730
- package/dist/litflow.js.map +1 -1
- package/package.json +19 -1
- package/src/lit-flow.ts +133 -2
- package/src/lit-node.ts +34 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { FileSystemBlobTransform, FileSystemPath, LLMContent, Outcome } from "@breadboard-ai/types";
|
|
7
|
+
export { transformBlobs };
|
|
8
|
+
declare function transformBlobs(path: FileSystemPath, data: LLMContent[], pipeline: FileSystemBlobTransform[]): Promise<Outcome<LLMContent[]>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { PersistentBackend } from "@breadboard-ai/types";
|
|
7
|
+
export { composeFileSystemBackends };
|
|
8
|
+
declare function composeFileSystemBackends(backends: Map<string, PersistentBackend>): PersistentBackend;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { FileSystemBlobStore, FileSystemBlobTransform, FileSystemPath, Outcome } from "@breadboard-ai/types";
|
|
7
|
+
export { InMemoryBlobStore };
|
|
8
|
+
declare class InMemoryBlobStore implements FileSystemBlobStore {
|
|
9
|
+
#private;
|
|
10
|
+
handles: Map<FileSystemPath, string[]>;
|
|
11
|
+
constructor();
|
|
12
|
+
delete(): Promise<Outcome<void>>;
|
|
13
|
+
inflator(): FileSystemBlobTransform;
|
|
14
|
+
deflator(): FileSystemBlobTransform;
|
|
15
|
+
copy(): Promise<Outcome<void>>;
|
|
16
|
+
move(): Promise<Outcome<void>>;
|
|
17
|
+
close(): Promise<void>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { FileSystem, FileSystemQueryArguments, FileSystemQueryResult, FileSystemReadArguments, FileSystemEntry, FileSystemReadResult, FileSystemWriteArguments, FileSystemWriteResult, OuterFileSystems, Outcome, CreateRunFileSystemArgs, CreateModuleFileSystemArgs, FileSystemWriteStreamArguments } from "@breadboard-ai/types";
|
|
7
|
+
export { FileSystemImpl, createFileSystem };
|
|
8
|
+
declare function createFileSystem(args: Omit<OuterFileSystems, "graphUrl" | "blobs" | "session" | "run" | "assets">): FileSystem;
|
|
9
|
+
declare class FileSystemImpl implements FileSystem {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(outer: Partial<OuterFileSystems>);
|
|
12
|
+
query({ path, }: FileSystemQueryArguments): Promise<FileSystemQueryResult>;
|
|
13
|
+
read({ path, start, inflate, }: FileSystemReadArguments): Promise<FileSystemReadResult>;
|
|
14
|
+
write(args: FileSystemWriteArguments): Promise<FileSystemWriteResult>;
|
|
15
|
+
addStream({ path, stream, }: FileSystemWriteStreamArguments): Promise<Outcome<void>>;
|
|
16
|
+
close(): Promise<void>;
|
|
17
|
+
onEndRun(): Promise<void>;
|
|
18
|
+
env(): FileSystemEntry[];
|
|
19
|
+
createModuleFileSystem(args: CreateModuleFileSystemArgs): FileSystem;
|
|
20
|
+
updateRunFileSystem(args: CreateRunFileSystemArgs): FileSystem;
|
|
21
|
+
createRunFileSystem(args: CreateRunFileSystemArgs): FileSystem;
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { FileSystemPath, FileSystemQueryResult, FileSystemWriteResult, LLMContent, Outcome, PersistentBackend } from "@breadboard-ai/types";
|
|
7
|
+
export { PartialPersistentBackend };
|
|
8
|
+
declare class PartialPersistentBackend implements PersistentBackend {
|
|
9
|
+
private readonly backend;
|
|
10
|
+
constructor(backend: Partial<PersistentBackend>);
|
|
11
|
+
query(graphUrl: string, path: FileSystemPath): Promise<FileSystemQueryResult>;
|
|
12
|
+
read(graphUrl: string, path: FileSystemPath, inflate: boolean): Promise<Outcome<LLMContent[]>>;
|
|
13
|
+
write(graphUrl: string, path: FileSystemPath, data: LLMContent[]): Promise<FileSystemWriteResult>;
|
|
14
|
+
append(graphUrl: string, path: FileSystemPath, data: LLMContent[]): Promise<FileSystemWriteResult>;
|
|
15
|
+
delete(graphUrl: string, path: FileSystemPath, all: boolean): Promise<FileSystemWriteResult>;
|
|
16
|
+
copy(graphUrl: string, source: FileSystemPath, destination: FileSystemPath): Promise<FileSystemWriteResult>;
|
|
17
|
+
move(graphUrl: string, source: FileSystemPath, destination: FileSystemPath): Promise<FileSystemWriteResult>;
|
|
18
|
+
onEndRun(): Promise<void>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { FileSystemPath, FileSystemReadWritePath, Outcome } from "@breadboard-ai/types";
|
|
7
|
+
export { Path };
|
|
8
|
+
export declare function writablePathFromString(s: string): Outcome<FileSystemReadWritePath>;
|
|
9
|
+
declare class Path {
|
|
10
|
+
readonly root: string;
|
|
11
|
+
readonly path: string[];
|
|
12
|
+
readonly dir: boolean;
|
|
13
|
+
static roots: Set<string>;
|
|
14
|
+
static writableRoots: Set<string>;
|
|
15
|
+
static persistentRoots: Set<string>;
|
|
16
|
+
static mountedRoots: Set<string>;
|
|
17
|
+
readonly writable: boolean;
|
|
18
|
+
readonly persistent: boolean;
|
|
19
|
+
readonly mounted: boolean;
|
|
20
|
+
constructor(root: string, path: string[], dir: boolean);
|
|
21
|
+
static createRoots(): Path[];
|
|
22
|
+
static create(path: FileSystemPath): Outcome<Path>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { FileSystemFile, FileSystemPath, FileSystemQueryEntry, FileSystemReadResult, FileSystemWriteResult, LLMContent, Outcome, PersistentBackend } from "@breadboard-ai/types";
|
|
7
|
+
export { PersistentFile };
|
|
8
|
+
declare class PersistentFile implements FileSystemFile {
|
|
9
|
+
readonly graphUrl: string;
|
|
10
|
+
readonly path: FileSystemPath;
|
|
11
|
+
readonly backend: PersistentBackend;
|
|
12
|
+
constructor(graphUrl: string, path: FileSystemPath, backend: PersistentBackend);
|
|
13
|
+
read(inflate: boolean, start?: number): Promise<FileSystemReadResult>;
|
|
14
|
+
append(data: LLMContent[], done: boolean, receipt?: boolean): Promise<FileSystemWriteResult>;
|
|
15
|
+
copy(): Outcome<FileSystemFile>;
|
|
16
|
+
queryEntry(_path: FileSystemPath): FileSystemQueryEntry;
|
|
17
|
+
delete(): Promise<FileSystemWriteResult>;
|
|
18
|
+
data: LLMContent[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { FileSystemFile, FileSystemPath, FileSystemQueryEntry, FileSystemReadResult, FileSystemWriteResult, LLMContent, Outcome } from "@breadboard-ai/types";
|
|
7
|
+
export { ReadableStreamFile };
|
|
8
|
+
declare class ReadableStreamFile implements FileSystemFile {
|
|
9
|
+
readonly stream: ReadableStream<LLMContent>;
|
|
10
|
+
readonly data: LLMContent[];
|
|
11
|
+
constructor(stream: ReadableStream<LLMContent>);
|
|
12
|
+
read(_inflate: boolean, start?: number): Promise<FileSystemReadResult>;
|
|
13
|
+
append(): Promise<Outcome<void>>;
|
|
14
|
+
copy(): Outcome<FileSystemFile>;
|
|
15
|
+
queryEntry(path: FileSystemPath): FileSystemQueryEntry;
|
|
16
|
+
delete(): Promise<FileSystemWriteResult>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { FileSystem, FileSystemEntry, FileSystemQueryResult, FileSystemReadResult, FileSystemWriteResult, Outcome } from "@breadboard-ai/types";
|
|
7
|
+
export { StubFileSystem };
|
|
8
|
+
declare class StubFileSystem implements FileSystem {
|
|
9
|
+
query(): Promise<FileSystemQueryResult>;
|
|
10
|
+
read(): Promise<FileSystemReadResult>;
|
|
11
|
+
write(): Promise<FileSystemWriteResult>;
|
|
12
|
+
addStream(): Promise<Outcome<void>>;
|
|
13
|
+
close(): Promise<void>;
|
|
14
|
+
updateRunFileSystem(): FileSystem;
|
|
15
|
+
createRunFileSystem(): FileSystem;
|
|
16
|
+
createModuleFileSystem(): FileSystem;
|
|
17
|
+
env(): FileSystemEntry[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { FileSystemPath, FileSystemReadResult, FileSystemWriteResult, LLMContent } from "@breadboard-ai/types";
|
|
7
|
+
export { noStreams, readFromStart };
|
|
8
|
+
declare function readFromStart(path: FileSystemPath, data: LLMContent[] | undefined, start: number): FileSystemReadResult;
|
|
9
|
+
declare function noStreams(done: boolean, receipt?: boolean): FileSystemWriteResult;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { InputValues, InspectableEdge, InspectableNode, InspectableNodePorts, InspectableNodeType, NodeConfiguration, NodeDescriberResult, NodeDescriptor, NodeMetadata, OutputValues } from "@breadboard-ai/types";
|
|
7
|
+
/**
|
|
8
|
+
* This is a special kind of an `InspectableNode`, representing a bubbled
|
|
9
|
+
* node instance. Its key difference is that, when it's type = input,
|
|
10
|
+
* it will narrow down the ports and values to only the ones that bubbled up.
|
|
11
|
+
* For instance, the actual input node might have four parameters, but
|
|
12
|
+
* only one of them bubbled up. This node will make sure that it looks as if
|
|
13
|
+
* it only has that one parameter.
|
|
14
|
+
*/
|
|
15
|
+
export declare class BubbledInspectableNode implements InspectableNode {
|
|
16
|
+
#private;
|
|
17
|
+
descriptor: NodeDescriptor;
|
|
18
|
+
constructor(actual: InspectableNode);
|
|
19
|
+
title(): string;
|
|
20
|
+
description(): string;
|
|
21
|
+
incoming(): InspectableEdge[];
|
|
22
|
+
outgoing(): InspectableEdge[];
|
|
23
|
+
isEntry(): boolean;
|
|
24
|
+
isExit(): boolean;
|
|
25
|
+
isStart(): boolean;
|
|
26
|
+
type(): InspectableNodeType;
|
|
27
|
+
configuration(): NodeConfiguration;
|
|
28
|
+
metadata(): NodeMetadata;
|
|
29
|
+
describe(): Promise<NodeDescriberResult>;
|
|
30
|
+
currentDescribe(): NodeDescriberResult;
|
|
31
|
+
ports(inputValues?: InputValues | undefined, outputValues?: OutputValues | undefined): Promise<InspectableNodePorts>;
|
|
32
|
+
currentPorts(inputValues?: InputValues, outputValues?: OutputValues): InspectableNodePorts;
|
|
33
|
+
deleted(): boolean;
|
|
34
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { AffectedNode, DescribeResultCacheArgs, GraphIdentifier, InspectableDescriberResultCache, InspectableDescriberResultCacheEntry, NodeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
export { DescribeResultCache };
|
|
8
|
+
declare class DescribeResultCache implements InspectableDescriberResultCache {
|
|
9
|
+
#private;
|
|
10
|
+
readonly args: DescribeResultCacheArgs;
|
|
11
|
+
constructor(args: DescribeResultCacheArgs);
|
|
12
|
+
get(id: NodeIdentifier, graphId: GraphIdentifier): InspectableDescriberResultCacheEntry;
|
|
13
|
+
update(affectedNodes: AffectedNode[]): void;
|
|
14
|
+
clear(visualOnly: boolean, affectedNodes: AffectedNode[]): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { DescribeResultTypeCacheArgs, InspectableDescriberResultCacheEntry, InspectableDescriberResultTypeCache, NodeTypeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
export { DescribeResultTypeCache };
|
|
8
|
+
declare class DescribeResultTypeCache implements InspectableDescriberResultTypeCache {
|
|
9
|
+
#private;
|
|
10
|
+
readonly args: DescribeResultTypeCacheArgs;
|
|
11
|
+
constructor(args: DescribeResultTypeCacheArgs);
|
|
12
|
+
get(type: NodeTypeIdentifier): InspectableDescriberResultCacheEntry;
|
|
13
|
+
update(affectedTypes: NodeTypeIdentifier[]): void;
|
|
14
|
+
clear(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Edge as EdgeDescriptor, GraphDescriptor, GraphIdentifier, InspectableEdge, InspectableEdgeCache } from "@breadboard-ai/types";
|
|
7
|
+
type EdgeFactory = (edge: EdgeDescriptor, graphId: GraphIdentifier) => InspectableEdge;
|
|
8
|
+
export declare class EdgeCache implements InspectableEdgeCache {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(factory: EdgeFactory);
|
|
11
|
+
rebuild(graph: GraphDescriptor): void;
|
|
12
|
+
get(edge: EdgeDescriptor, graphId: GraphIdentifier): InspectableEdge | undefined;
|
|
13
|
+
getOrCreate(edge: EdgeDescriptor, graphId: GraphIdentifier): InspectableEdge;
|
|
14
|
+
add(edge: EdgeDescriptor, graphId: GraphIdentifier): void;
|
|
15
|
+
remove(edge: EdgeDescriptor, graphId: GraphIdentifier): void;
|
|
16
|
+
has(edge: EdgeDescriptor, graphId: GraphIdentifier): boolean;
|
|
17
|
+
hasByValue(edge: EdgeDescriptor, graphId: GraphIdentifier): boolean;
|
|
18
|
+
edges(graphId: GraphIdentifier): InspectableEdge[];
|
|
19
|
+
addSubgraphEdges(subgraph: GraphDescriptor, graphId: GraphIdentifier): void;
|
|
20
|
+
removeSubgraphEdges(graphId: GraphIdentifier): void;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { Edge as EdgeDescriptor, EdgeMetadata, GraphIdentifier, InspectableEdge, InspectablePort, MutableGraph } from "@breadboard-ai/types";
|
|
7
|
+
import { InspectableEdgeType } from "@breadboard-ai/types";
|
|
8
|
+
export { Edge };
|
|
9
|
+
/**
|
|
10
|
+
* This helper is necessary because both "*" and "" are valid representations
|
|
11
|
+
* of a wildcard edge tail. This function ensures that the edge is always
|
|
12
|
+
* consistent.
|
|
13
|
+
* @param edge -- the edge to fix up
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare const fixUpStarEdge: (edge: EdgeDescriptor) => EdgeDescriptor;
|
|
17
|
+
/**
|
|
18
|
+
* This is inverse of the helper above, necessary when working with
|
|
19
|
+
* instances of `InspectableEdge` directly, since they will show "*" on both
|
|
20
|
+
* sides of the edge.
|
|
21
|
+
* @param edge -- the edge to un-fix up
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
export declare const unfixUpStarEdge: (edge: EdgeDescriptor) => EdgeDescriptor;
|
|
25
|
+
export declare const fixupConstantEdge: (edge: EdgeDescriptor) => EdgeDescriptor;
|
|
26
|
+
declare class Edge implements InspectableEdge {
|
|
27
|
+
#private;
|
|
28
|
+
constructor(mutable: MutableGraph, edge: EdgeDescriptor, graphId: GraphIdentifier);
|
|
29
|
+
raw(): EdgeDescriptor;
|
|
30
|
+
get from(): import("@breadboard-ai/types").InspectableNode;
|
|
31
|
+
get out(): string;
|
|
32
|
+
get to(): import("@breadboard-ai/types").InspectableNode;
|
|
33
|
+
get in(): string;
|
|
34
|
+
get type(): InspectableEdgeType;
|
|
35
|
+
metadata(): EdgeMetadata | undefined;
|
|
36
|
+
outPort(): Promise<InspectablePort>;
|
|
37
|
+
inPort(): Promise<InspectablePort>;
|
|
38
|
+
setDeleted(): void;
|
|
39
|
+
deleted(): boolean;
|
|
40
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { GraphIdentifier, GraphStoreUpdateEvent, MainGraphIdentifier, NodeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
export { UpdateEvent };
|
|
8
|
+
declare class UpdateEvent extends Event implements GraphStoreUpdateEvent {
|
|
9
|
+
readonly mainGraphId: MainGraphIdentifier;
|
|
10
|
+
readonly graphId: GraphIdentifier;
|
|
11
|
+
readonly nodeId: NodeIdentifier;
|
|
12
|
+
readonly affectedGraphs: MainGraphIdentifier[];
|
|
13
|
+
readonly topologyChange: boolean;
|
|
14
|
+
static eventName: string;
|
|
15
|
+
constructor(mainGraphId: MainGraphIdentifier, graphId: GraphIdentifier, nodeId: NodeIdentifier, affectedGraphs: MainGraphIdentifier[], topologyChange: boolean);
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { GraphDescriberFactory, MutableGraph, NodeDescriberResult } from "@breadboard-ai/types";
|
|
7
|
+
export { ExportsDescriber };
|
|
8
|
+
declare class ExportsDescriber {
|
|
9
|
+
private readonly mutable;
|
|
10
|
+
private readonly describerFactory;
|
|
11
|
+
constructor(mutable: MutableGraph, describerFactory: GraphDescriberFactory);
|
|
12
|
+
transform(result: NodeDescriberResult): Promise<NodeDescriberResult>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { GraphDescriptor, GraphIdentifier, InspectableGraph, InspectableGraphCache, InspectableSubgraphs } from "@breadboard-ai/types";
|
|
7
|
+
export { GraphCache };
|
|
8
|
+
type GraphFactory = (graphId: GraphIdentifier) => InspectableGraph;
|
|
9
|
+
declare class GraphCache implements InspectableGraphCache {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(factory: GraphFactory);
|
|
12
|
+
rebuild(graph: GraphDescriptor): void;
|
|
13
|
+
get(id: GraphIdentifier): InspectableGraph | undefined;
|
|
14
|
+
add(id: GraphIdentifier): void;
|
|
15
|
+
graphs(): InspectableSubgraphs;
|
|
16
|
+
remove(id: GraphIdentifier): void;
|
|
17
|
+
clear(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { GraphDescriber, GraphIdentifier, InputValues, MutableGraph, NodeDescriberContext, NodeDescriberResult, Outcome, Schema } from "@breadboard-ai/types";
|
|
7
|
+
import { GraphDescriptorHandle } from "./graph-descriptor-handle.js";
|
|
8
|
+
export { GraphDescriberManager };
|
|
9
|
+
/**
|
|
10
|
+
* Contains all machinery that allows
|
|
11
|
+
* describing a node or a graph
|
|
12
|
+
*/
|
|
13
|
+
declare class GraphDescriberManager implements GraphDescriber {
|
|
14
|
+
#private;
|
|
15
|
+
readonly handle: GraphDescriptorHandle;
|
|
16
|
+
readonly mutable: MutableGraph;
|
|
17
|
+
private readonly exports;
|
|
18
|
+
private constructor();
|
|
19
|
+
describe(inputs?: InputValues, _inputSchema?: Schema, _outputSchema?: Schema, context?: NodeDescriberContext): Promise<NodeDescriberResult>;
|
|
20
|
+
static create(graphId: GraphIdentifier, cache: MutableGraph): Outcome<GraphDescriberManager>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { GraphDescriptor, GraphIdentifier, Result } from "@breadboard-ai/types";
|
|
7
|
+
export { GraphDescriptorHandle };
|
|
8
|
+
declare class GraphDescriptorHandle {
|
|
9
|
+
#private;
|
|
10
|
+
readonly graphId: GraphIdentifier;
|
|
11
|
+
private constructor();
|
|
12
|
+
main(): string | undefined;
|
|
13
|
+
url(): URL | undefined;
|
|
14
|
+
outerGraph(): GraphDescriptor;
|
|
15
|
+
graph(): GraphDescriptor;
|
|
16
|
+
static create(graph: GraphDescriptor, graphId: GraphIdentifier): Result<GraphDescriptorHandle>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { InspectableNodePorts, InspectableNodeType, MutableGraph, NodeHandlerMetadata } from "@breadboard-ai/types";
|
|
7
|
+
export { GraphNodeType };
|
|
8
|
+
declare class GraphNodeType implements InspectableNodeType {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(type: string, mutable: MutableGraph);
|
|
11
|
+
currentMetadata(): NodeHandlerMetadata;
|
|
12
|
+
metadata(): Promise<NodeHandlerMetadata>;
|
|
13
|
+
type(): string;
|
|
14
|
+
ports(): Promise<InspectableNodePorts>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { AssetPath, GraphIdentifier, ImportIdentifier, InspectableAsset, InspectableAssetEdge, InspectableEdge, InspectableGraph, InspectableNode, InspectableNodeType, ModuleIdentifier, MutableGraph, NodeIdentifier, NodeTypeIdentifier, Outcome } from "@breadboard-ai/types";
|
|
7
|
+
import { TemplatePart } from "@breadboard-ai/utils";
|
|
8
|
+
export { GraphQueries };
|
|
9
|
+
/**
|
|
10
|
+
* Encapsulates common graph operations.
|
|
11
|
+
*/
|
|
12
|
+
declare class GraphQueries {
|
|
13
|
+
#private;
|
|
14
|
+
constructor(cache: MutableGraph, graphId: GraphIdentifier);
|
|
15
|
+
isEntry(id: NodeIdentifier): boolean;
|
|
16
|
+
isExit(id: NodeIdentifier): boolean;
|
|
17
|
+
incoming(id: NodeIdentifier): InspectableEdge[];
|
|
18
|
+
outgoing(id: NodeIdentifier): InspectableEdge[];
|
|
19
|
+
entries(): InspectableNode[];
|
|
20
|
+
isStart(id: NodeIdentifier): boolean;
|
|
21
|
+
nodeById(id: NodeIdentifier): InspectableNode | undefined;
|
|
22
|
+
typeForNode(id: NodeIdentifier): InspectableNodeType | undefined;
|
|
23
|
+
typeById(id: NodeTypeIdentifier): InspectableNodeType | undefined;
|
|
24
|
+
moduleExports(): Set<ModuleIdentifier>;
|
|
25
|
+
graphExports(): Set<GraphIdentifier>;
|
|
26
|
+
imports(): Promise<Map<ImportIdentifier, Outcome<InspectableGraph>>>;
|
|
27
|
+
assets(): Map<AssetPath, InspectableAsset>;
|
|
28
|
+
assetEdges(): Outcome<InspectableAssetEdge[]>;
|
|
29
|
+
tools(): TemplatePart[];
|
|
30
|
+
usesTool(path: string): boolean;
|
|
31
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { AssetPath, Edge, GraphDescriptor, GraphIdentifier, GraphMetadata, ImportIdentifier, InputValues, InspectableAsset, InspectableAssetEdge, InspectableEdge, InspectableGraph, InspectableModules, InspectableNode, InspectableNodeType, InspectableSubgraphs, ModuleIdentifier, MutableGraph, NodeDescriberContext, NodeDescriberResult, NodeIdentifier, NodeTypeIdentifier, Outcome } from "@breadboard-ai/types";
|
|
7
|
+
export { Graph };
|
|
8
|
+
declare class Graph implements InspectableGraph {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(graphId: GraphIdentifier, mutableGraph: MutableGraph);
|
|
11
|
+
raw(): GraphDescriptor;
|
|
12
|
+
mainGraphDescriptor(): GraphDescriptor;
|
|
13
|
+
imperative(): boolean;
|
|
14
|
+
main(): string | undefined;
|
|
15
|
+
metadata(): GraphMetadata | undefined;
|
|
16
|
+
nodesByType(type: NodeTypeIdentifier): InspectableNode[];
|
|
17
|
+
nodeById(id: NodeIdentifier): InspectableNode | undefined;
|
|
18
|
+
nodes(): InspectableNode[];
|
|
19
|
+
moduleById(id: ModuleIdentifier): import("@breadboard-ai/types").InspectableModule | undefined;
|
|
20
|
+
modules(): InspectableModules;
|
|
21
|
+
edges(): InspectableEdge[];
|
|
22
|
+
hasEdge(edge: Edge): boolean;
|
|
23
|
+
typeForNode(id: NodeIdentifier): InspectableNodeType | undefined;
|
|
24
|
+
typeById(id: NodeTypeIdentifier): InspectableNodeType | undefined;
|
|
25
|
+
incomingForNode(id: NodeIdentifier): InspectableEdge[];
|
|
26
|
+
outgoingForNode(id: NodeIdentifier): InspectableEdge[];
|
|
27
|
+
entries(): InspectableNode[];
|
|
28
|
+
describe(inputs?: InputValues, context?: NodeDescriberContext): Promise<NodeDescriberResult>;
|
|
29
|
+
graphs(): InspectableSubgraphs | undefined;
|
|
30
|
+
graphId(): GraphIdentifier;
|
|
31
|
+
moduleExports(): Set<ModuleIdentifier>;
|
|
32
|
+
graphExports(): Set<GraphIdentifier>;
|
|
33
|
+
imports(): Promise<Map<ImportIdentifier, Outcome<InspectableGraph>>>;
|
|
34
|
+
assets(): Map<AssetPath, InspectableAsset>;
|
|
35
|
+
assetEdges(): Outcome<InspectableAssetEdge[]>;
|
|
36
|
+
usesTool(path: string): boolean;
|
|
37
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { Asset, AssetPath, AssetType, InspectableAsset, LLMContent } from "@breadboard-ai/types";
|
|
7
|
+
export { InspectableAssetImpl };
|
|
8
|
+
declare class InspectableAssetImpl implements InspectableAsset {
|
|
9
|
+
readonly title: string;
|
|
10
|
+
readonly description: string;
|
|
11
|
+
readonly type: AssetType;
|
|
12
|
+
readonly subType: string;
|
|
13
|
+
readonly data: LLMContent[];
|
|
14
|
+
readonly visual: Record<string, unknown>;
|
|
15
|
+
readonly managed: boolean;
|
|
16
|
+
constructor(path: AssetPath, asset: Asset);
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { GraphDescriptor, InspectableKitCache, InspectableNodeType, Kit, MutableGraph, NodeTypeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
export { createBuiltInKit, KitCache };
|
|
8
|
+
declare function createBuiltInKit(): Kit;
|
|
9
|
+
declare class KitCache implements InspectableKitCache {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(mutable: MutableGraph);
|
|
12
|
+
getType(id: NodeTypeIdentifier): InspectableNodeType | undefined;
|
|
13
|
+
addType(id: NodeTypeIdentifier, type: InspectableNodeType): void;
|
|
14
|
+
rebuild(graph: GraphDescriptor): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { GraphDescriptor, InspectableModule, InspectableModuleCache, InspectableModules, ModuleIdentifier, Module as ModuleType } from "@breadboard-ai/types";
|
|
7
|
+
export declare class ModuleCache implements InspectableModuleCache {
|
|
8
|
+
#private;
|
|
9
|
+
get(id: ModuleIdentifier): InspectableModule | undefined;
|
|
10
|
+
add(id: ModuleIdentifier, module: ModuleType): void;
|
|
11
|
+
remove(id: ModuleIdentifier): void;
|
|
12
|
+
modules(): InspectableModules;
|
|
13
|
+
rebuild(graph: GraphDescriptor): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { AffectedNode, GraphDescriptor, GraphIdentifier, GraphRepresentation, InspectableDescriberResultCache, InspectableEdgeCache, InspectableGraphCache, InspectableKitCache, InspectableModuleCache, InspectableNodeCache, InspectablePortCache, KitDescriptor, MainGraphIdentifier, ModuleIdentifier, MutableGraph, MutableGraphStore } from "@breadboard-ai/types";
|
|
7
|
+
export { MutableGraphImpl };
|
|
8
|
+
declare class MutableGraphImpl implements MutableGraph {
|
|
9
|
+
readonly store: MutableGraphStore;
|
|
10
|
+
readonly id: MainGraphIdentifier;
|
|
11
|
+
legacyKitMetadata: KitDescriptor | null;
|
|
12
|
+
graph: GraphDescriptor;
|
|
13
|
+
graphs: InspectableGraphCache;
|
|
14
|
+
nodes: InspectableNodeCache;
|
|
15
|
+
edges: InspectableEdgeCache;
|
|
16
|
+
modules: InspectableModuleCache;
|
|
17
|
+
describe: InspectableDescriberResultCache;
|
|
18
|
+
kits: InspectableKitCache;
|
|
19
|
+
ports: InspectablePortCache;
|
|
20
|
+
representation: GraphRepresentation;
|
|
21
|
+
constructor(graph: GraphDescriptor, store: MutableGraphStore);
|
|
22
|
+
update(graph: GraphDescriptor, visualOnly: boolean, affectedNodes: AffectedNode[], affectedModules: ModuleIdentifier[], topologyChange: boolean): void;
|
|
23
|
+
addSubgraph(subgraph: GraphDescriptor, graphId: GraphIdentifier): void;
|
|
24
|
+
removeSubgraph(graphId: GraphIdentifier): void;
|
|
25
|
+
rebuild(graph: GraphDescriptor): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { GraphDescriptor, GraphIdentifier, InspectableNode, InspectableNodeCache, NodeDescriptor, NodeIdentifier, NodeTypeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
type NodeFactory = (node: NodeDescriptor, graphId: GraphIdentifier) => InspectableNode;
|
|
8
|
+
export declare class NodeCache implements InspectableNodeCache {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(factory: NodeFactory);
|
|
11
|
+
rebuild(graph: GraphDescriptor): void;
|
|
12
|
+
addSubgraphNodes(subgraph: GraphDescriptor, graphId: GraphIdentifier): void;
|
|
13
|
+
removeSubgraphNodes(graphId: GraphIdentifier): void;
|
|
14
|
+
byType(type: NodeTypeIdentifier, graphId: GraphIdentifier): InspectableNode[];
|
|
15
|
+
get(id: NodeIdentifier, graphId: GraphIdentifier): InspectableNode | undefined;
|
|
16
|
+
add(node: NodeDescriptor, graphId: GraphIdentifier): void;
|
|
17
|
+
remove(id: NodeIdentifier, graphId: GraphIdentifier): void;
|
|
18
|
+
nodes(graphId: GraphIdentifier): InspectableNode[];
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DescribeResultCacheArgs, GraphIdentifier, InspectableEdge, MutableGraph, NodeDescriberResult, NodeIdentifier, NodeTypeDescriberOptions, NodeTypeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
export { emptyResult, NodeDescriberManager };
|
|
8
|
+
declare function emptyResult(): NodeDescriberResult;
|
|
9
|
+
declare class NodeDescriberManager implements DescribeResultCacheArgs {
|
|
10
|
+
#private;
|
|
11
|
+
readonly mutable: MutableGraph;
|
|
12
|
+
constructor(mutable: MutableGraph);
|
|
13
|
+
initial(graphId: GraphIdentifier, nodeId: NodeIdentifier): NodeDescriberResult;
|
|
14
|
+
latest(graphId: GraphIdentifier, nodeId: NodeIdentifier): Promise<NodeDescriberResult>;
|
|
15
|
+
willUpdate(previous: NodeDescriberResult, current: NodeDescriberResult): void;
|
|
16
|
+
updated(graphId: GraphIdentifier, nodeId: NodeIdentifier): void;
|
|
17
|
+
getLatestDescription(type: NodeTypeIdentifier, graphId: GraphIdentifier, options?: NodeTypeDescriberOptions): Promise<{
|
|
18
|
+
inputSchema: import("@breadboard-ai/types").Schema;
|
|
19
|
+
outputSchema: import("@breadboard-ai/types").Schema;
|
|
20
|
+
}>;
|
|
21
|
+
static asWired(incoming?: InspectableEdge[], outgoing?: InspectableEdge[]): {
|
|
22
|
+
inputSchema: import("@breadboard-ai/types").Schema;
|
|
23
|
+
outputSchema: import("@breadboard-ai/types").Schema;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DescribeResultTypeCacheArgs, MutableGraphStore, NodeDescriberResult, NodeTypeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
export { NodeTypeDescriberManager };
|
|
8
|
+
declare class NodeTypeDescriberManager implements DescribeResultTypeCacheArgs {
|
|
9
|
+
#private;
|
|
10
|
+
readonly store: MutableGraphStore;
|
|
11
|
+
constructor(store: MutableGraphStore);
|
|
12
|
+
initial(): NodeDescriberResult;
|
|
13
|
+
updated(): void;
|
|
14
|
+
latest(type: NodeTypeIdentifier): Promise<NodeDescriberResult>;
|
|
15
|
+
getLatestDescription(type: NodeTypeIdentifier): Promise<{
|
|
16
|
+
inputSchema: import("@breadboard-ai/types").Schema;
|
|
17
|
+
outputSchema: import("@breadboard-ai/types").Schema;
|
|
18
|
+
}>;
|
|
19
|
+
}
|