Type Alias: OpenGateFn
ts
type OpenGateFn = <T>(
raw: Omit<RawTurnGate, "turnId" | "abortSignal">,
) => Promise<T>;A function that opens a @nhtio/adk!TurnGate for the current turn.
Type Parameters
| Type Parameter | Description |
|---|---|
T | The expected type of the resolution value. |
Parameters
| Parameter | Type |
|---|---|
raw | Omit<RawTurnGate, "turnId" | "abortSignal"> |
Returns
Promise<T>
Remarks
Injected into @nhtio/adk!TurnContext as waitFor. The runner closure supplies turnId and abortSignal automatically — callers only provide the gate-specific fields.