GraphReFlyTS

API Reference

toolProviderAdapterInputProjector()

Creates a tool provider adapter input projector.

Import

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

Signature

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

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>[]; readonly policyResolutions: readonly Node<ToolProviderPolicyResolution>[]; }Options that configure the helper.

Returns

A node bundle that emits the projected records.

Example

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

Source

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