Skip to content
PACKAGES

requestSatisfactionProjector()

Creates a request satisfaction projector.

import { requestSatisfactionProjector } from "@graphrefly/ts/orchestration";
function requestSatisfactionProjector(
graph: Graph,
opts: {
readonly name?: string;
readonly requestFacts: Node<AgentRequestFact>;
readonly executorProfiles?: readonly Node<ExecutorProfile>[];
readonly executorRoutes?: readonly Node<ExecutorRoute>[];
readonly executorOutcomes?: readonly Node<ExecutorOutcome>[];
readonly contextContributions?: readonly Node<ContextContribution>[];
readonly promptBundles?: readonly Node<PromptBundle>[];
},
): AgentRequestSatisfactionBundle
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
opts{ readonly name?: string; readonly requestFacts: Node<AgentRequestFact>; readonly executorProfiles?: readonly Node<ExecutorProfile>[]; readonly executorRoutes?: readonly Node<ExecutorRoute>[]; readonly executorOutcomes?: readonly Node<ExecutorOutcome>[]; readonly contextContributions?: readonly Node<ContextContribution>[]; readonly promptBundles?: readonly Node<PromptBundle>[]; }Options that configure the helper.

A node bundle that emits the projected records.

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

packages/ts/src/orchestration/agent-runtime-request-satisfaction.ts