API Reference
structuredAgentDecisionInterpreter()
Creates a structured agent decision interpreter.
Import
import { structuredAgentDecisionInterpreter } from "@graphrefly/ts/orchestration";
Signature
function structuredAgentDecisionInterpreter(
graph: Graph,
outcomes: Node<ExecutorOutcome>,
opts: {
readonly name?: string;
readonly schemaRef?: string;
readonly requestFacts?: readonly Node<AgentRequestFact>[];
} = {},
): StructuredAgentDecisionInterpreterBundle
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
The structured agent decision interpreter result.
Example
import { structuredAgentDecisionInterpreter } from "@graphrefly/ts/orchestration";
Source
packages/ts/src/orchestration/agent-runtime-decision-interpreter.ts