structuredAgentDecisionInterpreter()
Creates a structured agent decision interpreter.
Import
Section titled “Import”import { structuredAgentDecisionInterpreter } from "@graphrefly/ts/orchestration";Signature
Section titled “Signature”function structuredAgentDecisionInterpreter( graph: Graph, outcomes: Node<ExecutorOutcome>, opts: { readonly name?: string; readonly schemaRef?: string; readonly requestFacts?: readonly Node<AgentRequestFact>[]; } = {},): StructuredAgentDecisionInterpreterBundleParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
outcomes | Node<ExecutorOutcome> | outcomes value used by the helper. |
opts | { readonly name?: string; readonly schemaRef?: string; readonly requestFacts?: readonly Node<AgentRequestFact>[]; } | Options that configure the helper. |
Returns
Section titled “Returns”The structured agent decision interpreter result.
Example
Section titled “Example”import { structuredAgentDecisionInterpreter } from "@graphrefly/ts/orchestration";Source
Section titled “Source”packages/ts/src/orchestration/agent-runtime-decision-interpreter.ts