pub struct CompiledSkillPackage {Show 16 fields
pub id: String,
pub legacy_behavior_rule_id: String,
pub source_description: String,
pub trigger: String,
pub normalized_trigger: String,
pub response: String,
pub rule_id: String,
pub handler_id: String,
pub skill_name: String,
pub inputs: Vec<CompiledSkillInput>,
pub preconditions: Vec<CompiledSkillPrecondition>,
pub steps: Vec<CompiledSkillStep>,
pub effects: Vec<CompiledSkillEffect>,
pub expected_tests: Vec<CompiledSkillExpectedTest>,
pub required_permissions: Vec<CompiledSkillPermission>,
pub handler_stubs: Vec<CompiledSkillHandlerStub>,
}Expand description
A reusable, reviewable package compiled from one natural-language skill.
Fields§
§id: StringStable package id used as the cache key.
legacy_behavior_rule_id: StringLegacy dialog-local behavior-rule id kept for existing UI wording.
source_description: StringOriginal prose instruction supplied by the user or seed data.
trigger: StringSurface form that triggers the compiled package.
normalized_trigger: StringNormalized trigger used by the deterministic replay matcher.
response: StringResponse emitted by the compiled handler.
rule_id: StringStable id of the generated trigger/substitution rule.
handler_id: StringStable id of the generated compiled handler.
skill_name: StringHuman-readable skill name from the structured definition, when present.
inputs: Vec<CompiledSkillInput>Typed arguments accepted by the compiled skill subset.
preconditions: Vec<CompiledSkillPrecondition>Preconditions checked before a generated handler is considered valid.
steps: Vec<CompiledSkillStep>Ordered procedure steps lowered from the skill definition.
effects: Vec<CompiledSkillEffect>Declared deterministic effects of the procedure.
expected_tests: Vec<CompiledSkillExpectedTest>Generated replay tests used both as examples and deterministic fixtures.
required_permissions: Vec<CompiledSkillPermission>Explicit package/tool permissions required by the compiled skill.
handler_stubs: Vec<CompiledSkillHandlerStub>Target-specific handler stubs that can be reviewed before implementation.
Implementations§
Source§impl CompiledSkillPackage
impl CompiledSkillPackage
Sourcepub fn new(source_description: &str, trigger: &str, response: &str) -> Self
pub fn new(source_description: &str, trigger: &str, response: &str) -> Self
Create a compiled package from a verified trigger/response pair.
Sourcepub fn replay(&self, prompt: &str) -> Option<CompiledSkillReplay>
pub fn replay(&self, prompt: &str) -> Option<CompiledSkillReplay>
Replay the package when prompt matches the compiled trigger.
Sourcepub fn links_notation(&self) -> String
pub fn links_notation(&self) -> String
Export the compiled package as reviewable Links Notation.
Sourcepub fn link_records(&self) -> Vec<LinkRecord>
pub fn link_records(&self) -> Vec<LinkRecord>
Project the package, trigger rule, and handler to E1-style link records.
Trait Implementations§
Source§impl Clone for CompiledSkillPackage
impl Clone for CompiledSkillPackage
Source§fn clone(&self) -> CompiledSkillPackage
fn clone(&self) -> CompiledSkillPackage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompiledSkillPackage
impl Debug for CompiledSkillPackage
impl Eq for CompiledSkillPackage
Source§impl PartialEq for CompiledSkillPackage
impl PartialEq for CompiledSkillPackage
impl StructuralPartialEq for CompiledSkillPackage
Auto Trait Implementations§
impl Freeze for CompiledSkillPackage
impl RefUnwindSafe for CompiledSkillPackage
impl Send for CompiledSkillPackage
impl Sync for CompiledSkillPackage
impl Unpin for CompiledSkillPackage
impl UnsafeUnpin for CompiledSkillPackage
impl UnwindSafe for CompiledSkillPackage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.