Interface: HumanDecisionRequest<TRequest, TResponse>
Defined in: ports/human-decision-request.ts:12
Structured request payload delivered to a bidirectional HumanAdapter when awaiting a human decision.
Carries the run and request identifiers, target human role identifier, typed request brief, Zod validation schema for the human's response, optional keep-alive heartbeat interval, and cancellation signal.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TRequest | unknown | Request brief payload type presented to the human. |
TResponse | unknown | Validated response payload type returned by the human. |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
humanId | readonly | string | Identifier of the P.human role targeted by this decision request. | ports/human-decision-request.ts:18 |
keepAliveSeconds? | readonly | number | Optional heartbeat interval in seconds before yielding the concurrency slot. | ports/human-decision-request.ts:24 |
payload | readonly | TRequest | Structured decision brief payload presented to the human operator. | ports/human-decision-request.ts:20 |
requestId | readonly | string | Deterministic request identifier for idempotency and cancellation tracking. | ports/human-decision-request.ts:16 |
responseSchema | readonly | ZodType<TResponse> | Zod schema used to validate and parse the human operator's response. | ports/human-decision-request.ts:22 |
runId | readonly | string | Unique identifier of the enclosing harness run. | ports/human-decision-request.ts:14 |
signal? | readonly | AbortSignal | Optional abort signal triggered if the decision request is cancelled or superseded. | ports/human-decision-request.ts:26 |