executorOutcomeViewProjector()
Creates an executor outcome view projector.
Import
Section titled “Import”import { executorOutcomeViewProjector } from "@graphrefly/ts/orchestration";Signature
Section titled “Signature”function executorOutcomeViewProjector( graph: Graph, opts: { readonly name?: string; readonly outcomes: Node<ExecutorOutcome>; readonly policy?: ExecutorOutcomeViewPolicy; },): ExecutorOutcomeViewBundleParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | { readonly name?: string; readonly outcomes: Node<ExecutorOutcome>; readonly policy?: ExecutorOutcomeViewPolicy; } | Options that configure the helper. |
Returns
Section titled “Returns”A node bundle that emits the projected records.
Example
Section titled “Example”import { executorOutcomeViewProjector } from "@graphrefly/ts/orchestration";Source
Section titled “Source”packages/ts/src/orchestration/agent-runtime-outcome-view.ts