API Reference
toolProviderAdapterRunProjector()
Creates a tool provider adapter run projector.
Import
import { toolProviderAdapterRunProjector } from "@graphrefly/ts/orchestration";
Signature
function toolProviderAdapterRunProjector(
graph: Graph,
opts: {
readonly name?: string;
readonly inputs: Node<ToolProviderAdapterInput>;
readonly runRequests?: readonly Node<ToolProviderAdapterRunRequested>[];
readonly autoRunReadyInputs?: boolean;
readonly now?: () => number;
},
): ToolProviderAdapterRunBundle
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | { readonly name?: string; readonly inputs: Node<ToolProviderAdapterInput>; readonly runRequests?: readonly Node<ToolProviderAdapterRunRequested>[]; readonly autoRunReadyInputs?: boolean; readonly now?: () => number; } | Options that configure the helper. |
Returns
A node bundle that emits the projected records.
Example
import { toolProviderAdapterRunProjector } from "@graphrefly/ts/orchestration";
Source
packages/ts/src/orchestration/agent-runtime-adapter-run.ts