SkillBundle class
A skill bundle containing procedures and resources.
This represents the complete schema for a skill bundle as defined in the spec. A skill bundle is the primary packaging format for skills.
Constructors
-
SkillBundle({required String schemaVersion, required SkillManifest manifest, required List<
Procedure> procedures, List<Asset> ? assets, List<KnowledgeSource> ? knowledgeSources, List<RetrieverConfig> ? retrievers, List<IndexConfig> ? indexes, List<BundleRubric> ? rubrics, List<BundleValidator> ? validators, UiSection? ui, TestSection? tests, Map<String, dynamic> ? extensions}) -
const
-
SkillBundle.fromJson(Map<
String, dynamic> json) -
Create from JSON.
factory
Properties
-
assets
→ List<
Asset> ? -
Embedded files/data.
final
-
extensions
→ Map<
String, dynamic> ? -
Custom data.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
indexes
→ List<
IndexConfig> ? -
Search index configurations.
final
-
knowledgeSources
→ List<
KnowledgeSource> ? -
External data sources.
final
- manifest → SkillManifest
-
Skill manifest (identity and metadata).
final
-
procedures
→ List<
Procedure> -
Execution procedures (at least one required).
final
-
retrievers
→ List<
RetrieverConfig> ? -
RAG/search configurations.
final
-
rubrics
→ List<
BundleRubric> ? -
Evaluation criteria.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schemaVersion → String
-
Schema version (e.g., "0.1.0").
final
- tests → TestSection?
-
Eval sets and regression tests.
final
- ui → UiSection?
-
UI DSL definitions.
final
-
validators
→ List<
BundleValidator> ? -
Consistency/evidence rules.
final
Methods
-
getProcedure(
String procedureId) → Procedure? - Get procedure by ID.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert to JSON.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited