Skip to main content

Interface: IResultReviewEnvelope

Defined in: internal/human-gate/types.ts:259

The final answer of a run awaits a human's review before the end user sees it (D99): the run finished and the answer passed the output checks, and the profile (IAIProfile.reviewAnswers) asks a human to read it first. APPROVE delivers it, EDIT delivers the reviewer's text instead, REJECT drops it; none of them calls the model.

Extends​

  • IPauseEnvelopeBase

Properties​

allowed​

allowed: EResumeAction[]

Defined in: internal/human-gate/types.ts:213

Decisions the UI may offer.

Inherited from​

IPauseEnvelopeBase.allowed


expiresAt​

expiresAt: Date

Defined in: internal/human-gate/types.ts:215

After this the pause expires.

Inherited from​

IPauseEnvelopeBase.expiresAt


kind​

kind: RESULT_REVIEW

Defined in: internal/human-gate/types.ts:261

The discriminator: the answer waits.


pauseId​

pauseId: string

Defined in: internal/human-gate/types.ts:211

Names this pause of the run: resume must pass it, and a decision for an earlier pause of the same run is refused.

A run can pause again under the same runId (a tool, then its answer's review): the same request body must not decide both.

Inherited from​

IPauseEnvelopeBase.pauseId


result?​

optional result?: IReviewedAnswer

Defined in: internal/human-gate/types.ts:269

The answer that waits for the reviewer.

The draft is for the reviewer only: what the asker gets (the PAUSED response, listPausedRuns) leaves it out.

Present on the stored run (AIGateway.getPausedRun, the reviewer's read); absent where the asker can see the pause (D111).


runId​

runId: string

Defined in: internal/human-gate/types.ts:205

The run that paused; what resume, cancelRun and getPausedRun take.

Inherited from​

IPauseEnvelopeBase.runId