Skip to content

Graphorin API reference v0.13.8


Graphorin API reference / @graphorin/agent / / ApprovalDecision

Interface: ApprovalDecision

Defined in: packages/agent/src/types.ts:522

Stable

Single approval decision attached to a ResumeDirective. Mirrors the directive surface the HITL caller supplies on resume (per Command(approval: { granted, reason? }) in the agent-loop reference, renamed to Directive per Graphorin's own naming).

Properties

PropertyModifierTypeDescriptionDefined in
grantedreadonlyboolean-packages/agent/src/types.ts:524
reason?readonlystring-packages/agent/src/types.ts:525
subRunToolCallId?readonlystringEcho of ToolApproval.subRunToolCallId for approvals that belong to a parked sub-agent run. Operators read the pair (toolCallId, subRunToolCallId) from RunState.pendingApprovals and return BOTH fields; decisions match on the composite key, so child-local toolCallId collisions across two parked children never cross-apply. A decision without this field applies only to the parent's own (unparked) approvals.packages/agent/src/types.ts:535
toolCallIdreadonlystring-packages/agent/src/types.ts:523