neurocore.skills.builtin.approval.ApprovalSkill¶
- class neurocore.skills.builtin.approval.ApprovalSkill(name: str | None = None)¶
Bases:
neurocore.skills.base.AsyncSkillSuspend the run until a human approval decision is supplied.
Implemented as an
AsyncSkillso that any blueprint containing an approval gate runs through NeuroCore’s own async executor, which re-executes the suspended node withresume_dataon 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)