pub struct ChildApprovalRequest {
pub child_session_id: String,
pub parent_session_id: String,
pub child_tool_call_id: String,
pub tool_name: String,
pub permission_type: String,
pub resource: String,
pub question: String,
pub approval_payload: Value,
}Expand description
A child sub-agent’s request to have a gated tool approved by its parent.
A non-bypassed child cannot answer its own permission prompt (no human is attached to a child session), so the request is delegated up to the parent.
Fields§
§child_session_id: String§parent_session_id: String§child_tool_call_id: StringThe gated tool call on the child to re-execute once approved.
tool_name: String§permission_type: StringPermission type as a string (e.g. “WriteFile”, “ExecuteCommand”).
resource: StringThe concrete resource the permission applies to (path, command, …).
question: StringHuman-facing approval question to surface on the parent.
approval_payload: ValueThe raw awaiting_permission_approval payload the child’s executor built,
so the parent can reuse the existing grant-extraction path verbatim.
Trait Implementations§
Source§impl Clone for ChildApprovalRequest
impl Clone for ChildApprovalRequest
Source§fn clone(&self) -> ChildApprovalRequest
fn clone(&self) -> ChildApprovalRequest
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 moreAuto Trait Implementations§
impl Freeze for ChildApprovalRequest
impl RefUnwindSafe for ChildApprovalRequest
impl Send for ChildApprovalRequest
impl Sync for ChildApprovalRequest
impl Unpin for ChildApprovalRequest
impl UnsafeUnpin for ChildApprovalRequest
impl UnwindSafe for ChildApprovalRequest
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