Skip to content
PACKAGES

executorOutcomeViewProjector()

Creates an executor outcome view projector.

import { executorOutcomeViewProjector } from "@graphrefly/ts/orchestration";
function executorOutcomeViewProjector(
graph: Graph,
opts: {
readonly name?: string;
readonly outcomes: Node<ExecutorOutcome>;
readonly policy?: ExecutorOutcomeViewPolicy;
},
): ExecutorOutcomeViewBundle
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
opts{ readonly name?: string; readonly outcomes: Node<ExecutorOutcome>; readonly policy?: ExecutorOutcomeViewPolicy; }Options that configure the helper.

A node bundle that emits the projected records.

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

packages/ts/src/orchestration/agent-runtime-outcome-view.ts