Skip to content
PACKAGES

structuredAgentDecisionInterpreter()

Creates a structured agent decision interpreter.

import { structuredAgentDecisionInterpreter } from "@graphrefly/ts/orchestration";
function structuredAgentDecisionInterpreter(
graph: Graph,
outcomes: Node<ExecutorOutcome>,
opts: {
readonly name?: string;
readonly schemaRef?: string;
readonly requestFacts?: readonly Node<AgentRequestFact>[];
} = {},
): StructuredAgentDecisionInterpreterBundle
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
outcomesNode<ExecutorOutcome>outcomes value used by the helper.
opts{ readonly name?: string; readonly schemaRef?: string; readonly requestFacts?: readonly Node<AgentRequestFact>[]; }Options that configure the helper.

The structured agent decision interpreter result.

import { structuredAgentDecisionInterpreter } from "@graphrefly/ts/orchestration";

packages/ts/src/orchestration/agent-runtime-decision-interpreter.ts