pub enum Command {
StartRun {
plan_id: String,
binding_context: String,
},
BeginAttempt {
attempt_id: String,
continuation_id: String,
occurrence_binding: String,
epoch: u64,
},
YieldAttempt {
attempt_id: String,
epoch: u64,
},
AdvanceEpoch,
OpenScope {
scope_id: String,
parent_scope: String,
},
ProposeEffect {
scope_id: String,
invocation_id: String,
site_id: String,
occurrence: String,
operation: String,
args: ArtifactRef,
occurrence_binding: String,
},
TransitionEffect {
intent_id: String,
transition: EffectTransition,
},
CommitScope {
scope_id: String,
},
AbortScope {
scope_id: String,
},
UpdateBinding {
binding_context: String,
},
RecordFact {
key: String,
value: String,
},
CompleteRun {
result: Option<ArtifactRef>,
},
}Expand description
Commands admitted by the semantic kernel.
Variants§
StartRun
Start a new Run under an immutable plan and future-default binding context.
Fields
BeginAttempt
Begin a fenced Attempt.
Fields
YieldAttempt
Yield the active Attempt at a safe point.
AdvanceEpoch
Advance the Run epoch and fence prior attempts.
OpenScope
Open a nested state/evidence scope.
ProposeEffect
Propose a structurally identified external effect.
Fields
§
args: ArtifactRefCanonical argument artifact.
TransitionEffect
Advance one axis of an existing effect.
Fields
§
transition: EffectTransitionLegal next transition.
CommitScope
Commit internal scope state and transfer unresolved effect obligations.
AbortScope
Abort a scope before release.
UpdateBinding
Change the realization default for future occurrences.
RecordFact
Append an independent immutable fact for causal conformance tests.
CompleteRun
Finish a Run after required obligations have settled.
Fields
§
result: Option<ArtifactRef>Optional typed Result artifact.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
Mutably borrows from an owned value. Read more