Interface: RawTurnGate
Plain input object supplied to TurnGate at construction time.
Remarks
turnId and abortSignal are injected by the runner — callers constructing a gate via ctx.waitFor() never supply them directly.
abortSignal is AbortSignal (not AbortController) because the gate reacts to turn-level cancellation but cannot trigger it. The gate owns its own internal AbortController for gate.abort().
Properties
| Property | Type | Description |
|---|---|---|
abortSignal? | AbortSignal | The turn's abort signal. When fired the gate self-rejects with @nhtio/adk!E_TURN_GATE_ABORTED. |
createdAt | string | number | Date | DateTime<boolean> | When this gate was created. |
id | string | Stable unique identifier for this gate. |
payload | unknown | Arbitrary data supplied to the gate opener; passed through to turnGateOpen listeners. |
reason | string | Human-readable label describing why this gate was opened (e.g. 'tool_approval'). |
schema? | Schema | Optional validator schema for the resolution value. When present, resolve() validates before settling. |
timeout? | number | Optional timeout in milliseconds. When elapsed the gate self-rejects with @nhtio/adk!E_TURN_GATE_TIMEOUT. |
turnId | string | The ID of the turn that opened this gate. |