GraphReFlyTS

API Reference

requestSatisfactionProjector()

Creates a request satisfaction projector.

Import

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

Signature

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

Parameters

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.

Returns

A node bundle that emits the projected records.

Example

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

Source

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