buildToolProviderExecutorOutcome()
Builds a tool provider executor outcome.
Import
Section titled “Import”import { buildToolProviderExecutorOutcome } from "@graphrefly/ts/orchestration";Signature
Section titled “Signature”function buildToolProviderExecutorOutcome( input: ToolProviderAdapterInput, result: ToolProviderAdapterRunResult<T>, opts: { readonly attempt?: number; readonly outcomeId?: string; readonly occurredAtMs?: number; readonly runId?: string; readonly publicText?: ToolProviderPublicTextPolicy; } = {},): ExecutorOutcome<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
input | ToolProviderAdapterInput | Input value to project or validate. |
result | ToolProviderAdapterRunResult<T> | result value used by the helper. |
opts | { readonly attempt?: number; readonly outcomeId?: string; readonly occurredAtMs?: number; readonly runId?: string; readonly publicText?: ToolProviderPublicTextPolicy; } | Options that configure the helper. |
Returns
Section titled “Returns”The build tool provider executor outcome result.
Example
Section titled “Example”import { buildToolProviderExecutorOutcome } from "@graphrefly/ts/orchestration";Source
Section titled “Source”packages/ts/src/orchestration/agent-runtime-executor-outcome.ts