Skip to content
1 min read · 84 words

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