pub enum ChildFrame {
Event {
event: Value,
},
ApprovalRequest {
id: String,
body: Value,
},
Terminal {
status: TerminalStatus,
result: Option<String>,
error: Option<String>,
transcript: Vec<Value>,
},
}Expand description
Child → parent event/terminal frames.
Variants§
Event
One agent event, serialized verbatim (the real AgentEvent lands here as JSON).
ApprovalRequest
The worker hit a tool needing human approval (Phase 2 child→parent
approval delegation). Proxied to the host — which surfaces it to the
human via the parent session’s pending-question / notification path. The
host answers with ParentFrame::ApprovalReply carrying the same id.
body carries {tool_name, permission_type, resource, question}.
Terminal
Implementations§
Trait Implementations§
Source§impl Clone for ChildFrame
impl Clone for ChildFrame
Source§fn clone(&self) -> ChildFrame
fn clone(&self) -> ChildFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChildFrame
impl Debug for ChildFrame
Source§impl<'de> Deserialize<'de> for ChildFrame
impl<'de> Deserialize<'de> for ChildFrame
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
Source§impl PartialEq for ChildFrame
impl PartialEq for ChildFrame
Source§fn eq(&self, other: &ChildFrame) -> bool
fn eq(&self, other: &ChildFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChildFrame
impl Serialize for ChildFrame
impl StructuralPartialEq for ChildFrame
Auto Trait Implementations§
impl Freeze for ChildFrame
impl RefUnwindSafe for ChildFrame
impl Send for ChildFrame
impl Sync for ChildFrame
impl Unpin for ChildFrame
impl UnsafeUnpin for ChildFrame
impl UnwindSafe for ChildFrame
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