Skip to content
1 min read · 87 words

Type Alias: OpenGateFn ​

ts
type OpenGateFn = <T>(
  raw: Omit<RawTurnGate, "turnId" | "abortSignal">,
) => Promise<T>;

Defined in: src/lib/types/turn_runner.ts:262

A function that opens a @nhtio/adk!TurnGate for the current turn.

Type Parameters ​

Type ParameterDescription
TThe expected type of the resolution value.

Parameters ​

ParameterType
rawOmit<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.