SkillRuntime class

Main runtime for executing skills.

Execution Pipeline (7 steps):

  1. Route: Select skill(s) to execute
  2. Build Context: Get FactGraph context if available
  3. Plan: Determine execution strategy
  4. Execute: Run procedures
  5. Validate: Check results against validators
  6. Persist: Write to FactGraph if available
  7. Return: Aggregate and return

Constructors

SkillRuntime({required SkillBundleRegistry registry, required SkillPorts ports, SkillRouter? router, List<RuntimeHook>? hooks})

Properties

hashCode int
The hash code for this object.
no setterinherited
hooks List<RuntimeHook>?
Hooks for observability (optional).
final
ports SkillPorts
Ports for external system access.
final
registry SkillBundleRegistry
Skill registry for looking up skills.
final
router → SkillRouter?
Router for skill selection (optional).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(SkillContext context) Future<SkillResult>
Execute a skill based on context.
runProcedure(String skillId, String procedureId, SkillContext context) Future<SkillResult>
Execute a specific procedure directly.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited