Skip to main content

Interface: IResumeDecision

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

The human's decision.

Properties​

action​

action: EResumeAction

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

What the human decided; must be among the envelope's allowed.


answers?​

optional answers?: IUserAnswer[]

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

The answers for ANSWER, one per question of the user question (D62).


callId?​

optional callId?: string

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

The tool call this decision is for: the callId of its envelope.

One pause may carry several cards; the id says which one this answers.

May be omitted when the pause carries one envelope; required when it carries several. Never set on a RESULT_REVIEW.

Example​

"call_8f2a" - the id the approval envelope's `toolCall` carries

editedInput?​

optional editedInput?: unknown

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

What EDIT delivers instead: the new tool input on a TOOL_APPROVAL, the edited answer text (a string) on a RESULT_REVIEW.

The human corrects the model instead of refusing it.

On a review with an outputSchema, the edited text is parsed through the schema again; a text the schema rejects is a 400 and the run stays paused.


text?​

optional text?: string

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

The reason for REJECT: on a TOOL_APPROVAL the model reads it after the rejectionText; on a RESULT_REVIEW the FAILED response carries it.