effectRunCompletionProjector()
Creates an effect run completion projector.
Import
Section titled “Import”import { effectRunCompletionProjector } from "@graphrefly/ts/orchestration";Signature
Section titled “Signature”function effectRunCompletionProjector( graph: Graph, opts: { readonly name?: string; readonly effectRuns: Node<EffectRun>; readonly decisions?: readonly Node<AgentDecision>[]; readonly requestStatuses?: readonly Node<AgentRequestStatusChanged>[]; readonly requestFacts?: readonly Node<AgentRequestFact>[]; readonly resultCandidates?: readonly Node<EffectRunResult>[]; readonly now?: () => number; },): EffectRunCompletionBundleParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | { readonly name?: string; readonly effectRuns: Node<EffectRun>; readonly decisions?: readonly Node<AgentDecision>[]; readonly requestStatuses?: readonly Node<AgentRequestStatusChanged>[]; readonly requestFacts?: readonly Node<AgentRequestFact>[]; readonly resultCandidates?: readonly Node<EffectRunResult>[]; readonly now?: () => number; } | Options that configure the helper. |
Returns
Section titled “Returns”A node bundle that emits the projected records.
Example
Section titled “Example”import { effectRunCompletionProjector } from "@graphrefly/ts/orchestration";Source
Section titled “Source”packages/ts/src/orchestration/agent-runtime-effect-completion.ts