API Reference
toolProviderRunAdmissionProjector()
Creates a tool provider run admission projector.
Import
import { toolProviderRunAdmissionProjector } from "@graphrefly/ts/orchestration";
Signature
function toolProviderRunAdmissionProjector(
graph: Graph,
opts: {
readonly name?: string;
readonly inputs: Node<ToolProviderAdapterInput>;
readonly runRequests: readonly Node<ToolProviderAdapterRunRequested>[];
readonly decisions?: readonly Node<ToolProviderRunAdmissionDecision>[];
readonly now?: () => number;
},
): ToolProviderRunAdmissionBundle
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | { readonly name?: string; readonly inputs: Node<ToolProviderAdapterInput>; readonly runRequests: readonly Node<ToolProviderAdapterRunRequested>[]; readonly decisions?: readonly Node<ToolProviderRunAdmissionDecision>[]; readonly now?: () => number; } | Options that configure the helper. |
Returns
A node bundle that emits the projected records.
Example
import { toolProviderRunAdmissionProjector } from "@graphrefly/ts/orchestration";
Source
packages/ts/src/orchestration/agent-runtime-tool-provider-run-admission.ts