Skip to content
PACKAGES

toolProviderAdapterRunProjector()

Creates a tool provider adapter run projector.

import { toolProviderAdapterRunProjector } from "@graphrefly/ts/orchestration";
function toolProviderAdapterRunProjector(
graph: Graph,
opts: {
readonly name?: string;
readonly inputs: Node<ToolProviderAdapterInput>;
readonly runRequests?: readonly Node<ToolProviderAdapterRunRequested>[];
readonly autoRunReadyInputs?: boolean;
readonly now?: () => number;
},
): ToolProviderAdapterRunBundle
ParameterTypeDescription
graphGraphGraph 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.

A node bundle that emits the projected records.

import { toolProviderAdapterRunProjector } from "@graphrefly/ts/orchestration";

packages/ts/src/orchestration/agent-runtime-adapter-run.ts