neurocore.skills.base

Skill base class and SkillMeta — the core abstraction of NeuroCore.

A Skill is a FlowEngine BaseComponent enhanced with declarative metadata (SkillMeta). The metadata enables discovery, validation, documentation, configuration injection, and dependency tracking.

Usage:

from neurocore.skills import Skill, SkillMeta

class EchoSkill(Skill):
skill_meta = SkillMeta(

name=”echo”, version=”0.1.0”, description=”Echoes input to output”, provides=[“echo_output”], consumes=[“echo_input”],

)

def process(self, context):

value = context.get(“echo_input”, “”) context.set(“echo_output”, value) return context

Classes

SkillMeta

Declarative metadata for a Skill.

Skill

Base class for all NeuroCore skills.

AsyncSkill

Skill whose process() is an async coroutine.

Functions

is_async_skill(→ bool)

Return True if the skill's process() is a coroutine function.

Module Contents

neurocore.skills.base.is_async_skill(skill_instance: Skill) bool[source]

Return True if the skill’s process() is a coroutine function.