pub enum CauseKind {
HumanPrompt {
prompt_summary: String,
},
BlockOutput {
block_id: BlockId,
},
ToolResult {
tool_name: String,
},
ApprovalGranted {
approval_block_id: BlockId,
},
AgentPlan {
plan_description: String,
},
System {
reason: String,
},
}Expand description
The kind of causal link in the provenance chain.
Variants§
HumanPrompt
Triggered by a human user prompt.
BlockOutput
Triggered by another block’s content.
ToolResult
Triggered by a tool call result.
ApprovalGranted
Authorized by a human approval action.
AgentPlan
Triggered by agent’s own planning.
System
System-initiated (e.g., startup, auto-resume).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CauseKind
impl<'de> Deserialize<'de> for CauseKind
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
Auto Trait Implementations§
impl Freeze for CauseKind
impl RefUnwindSafe for CauseKind
impl Send for CauseKind
impl Sync for CauseKind
impl Unpin for CauseKind
impl UnsafeUnpin for CauseKind
impl UnwindSafe for CauseKind
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