Interface ApprovalDecision

The resolved decision returned by HitlConfig.handler.

interface ApprovalDecision {
    approved: boolean;
    reason?: string;
    modifications?: {
        toolArgs?: unknown;
        output?: string;
        instructions?: string;
    };
}

Properties

approved: boolean

Whether the action was approved.

reason?: string

Optional human-provided rationale for the decision.

modifications?: {
    toolArgs?: unknown;
    output?: string;
    instructions?: string;
}

Optional in-line modifications the approver wishes to apply. The orchestrator merges these on top of the original action before proceeding (only when approved is true).

Type declaration

  • Optional toolArgs?: unknown

    Overridden tool arguments.

  • Optional output?: string

    Overridden output text.

  • Optional instructions?: string

    Additional instructions injected into the agent's system prompt.