toolProviderRunAdmissionProjector()
Creates a tool provider run admission projector.
Import
Section titled “Import”import { toolProviderRunAdmissionProjector } from "@graphrefly/ts/orchestration";Signature
Section titled “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; },): ToolProviderRunAdmissionBundleParameters
Section titled “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
Section titled “Returns”A node bundle that emits the projected records.
Example
Section titled “Example”import { toolProviderRunAdmissionProjector } from "@graphrefly/ts/orchestration";Source
Section titled “Source”packages/ts/src/orchestration/agent-runtime-tool-provider-run-admission.ts