API Reference
executorOutcomeViewProjector()
Creates an executor outcome view projector.
Import
import { executorOutcomeViewProjector } from "@graphrefly/ts/orchestration";
Signature
function executorOutcomeViewProjector(
graph: Graph,
opts: {
readonly name?: string;
readonly outcomes: Node<ExecutorOutcome>;
readonly policy?: ExecutorOutcomeViewPolicy;
},
): ExecutorOutcomeViewBundle
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
A node bundle that emits the projected records.
Example
import { executorOutcomeViewProjector } from "@graphrefly/ts/orchestration";
Source
packages/ts/src/orchestration/agent-runtime-outcome-view.ts