Skip to content
PACKAGES

toolProviderAdapterInputProjector()

Creates a tool provider adapter input projector.

import { toolProviderAdapterInputProjector } from "@graphrefly/ts/orchestration";
function toolProviderAdapterInputProjector(
graph: Graph,
opts: {
readonly name?: string;
readonly requestFacts: Node<AgentRequestFact>;
readonly executorRoutes?: readonly Node<ExecutorRoute>[];
readonly toolProviderCatalogs?: readonly Node<ToolProviderCatalog>[];
readonly policyResolutions: readonly Node<ToolProviderPolicyResolution>[];
},
): ToolProviderAdapterInputBundle
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>[]; readonly policyResolutions: readonly Node<ToolProviderPolicyResolution>[]; }Options that configure the helper.

A node bundle that emits the projected records.

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

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