neurocore.skills.builtin.approval.ApprovalSkill

class neurocore.skills.builtin.approval.ApprovalSkill(name: str | None = None)

Bases: neurocore.skills.base.AsyncSkill

Suspend the run until a human approval decision is supplied.

Implemented as an AsyncSkill so that any blueprint containing an approval gate runs through NeuroCore’s own async executor, which re-executes the suspended node with resume_data on resume. (flowengine’s sync sequential resume skips the suspended node, which would bypass the decision.)

skill_meta
async process(context: flowengine.FlowContext) flowengine.FlowContext

Execute component logic.

The main processing method. Must be implemented by subclasses.

Parameters:

context – Current flow context with accumulated data

Returns:

Updated flow context (may be the same instance)