Skip to content
PACKAGES

toolProviderPolicyResolutionProjector()

Creates a tool provider policy resolution projector.

import { toolProviderPolicyResolutionProjector } from "@graphrefly/ts/orchestration";
function toolProviderPolicyResolutionProjector(
graph: Graph,
opts: {
readonly name?: string;
readonly requestFacts: Node<AgentRequestFact>;
readonly executorRoutes?: readonly Node<ExecutorRoute>[];
readonly toolProviderCatalogs?: readonly Node<ToolProviderCatalog>[];
},
): ToolProviderPolicyResolutionBundle
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
opts{ readonly name?: string; readonly requestFacts: Node<AgentRequestFact>; readonly executorRoutes?: readonly Node<ExecutorRoute>[]; readonly toolProviderCatalogs?: readonly Node<ToolProviderCatalog>[]; }Options that configure the helper.

A node bundle that emits the projected records.

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

packages/ts/src/orchestration/agent-runtime-tool-provider-policy.ts