GraphReFlyTS

API Reference

toolProviderPolicyResolutionProjector()

Creates a tool provider policy resolution projector.

Import

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

Signature

function toolProviderPolicyResolutionProjector(
	graph: Graph,
	opts: {
		readonly name?: string;
		readonly requestFacts: Node<AgentRequestFact>;
		readonly executorRoutes?: readonly Node<ExecutorRoute>[];
		readonly toolProviderCatalogs?: readonly Node<ToolProviderCatalog>[];
	},
): ToolProviderPolicyResolutionBundle

Parameters

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.

Returns

A node bundle that emits the projected records.

Example

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

Source

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