pub struct ToolRunReport {
pub accepted: bool,
pub rejection_reasons: Vec<String>,
pub verification_passed: bool,
pub executed: bool,
pub output: Option<String>,
pub metrics: ToolMetrics,
pub destroyed: bool,
pub memory_update: Option<CapabilityMemoryRecord>,
}Expand description
Full result returned by the supervisor after processing one CapabilityRequest.
Fields§
§accepted: boolTrue if the request passed policy checks and a mock was found.
rejection_reasons: Vec<String>Non-empty when the request was rejected — each entry is one violation.
verification_passed: boolAlways true for Phase 2 mocks (no generated source to verify yet).
executed: boolTrue if the mock function ran to completion (even if it returned an error).
output: Option<String>Stdout of the mock tool — a JSON string on success, None on rejection.
metrics: ToolMetrics§destroyed: boolAlways true after execution — marks the lifecycle as complete.
memory_update: Option<CapabilityMemoryRecord>Set when the run succeeds and memory was updated.
Trait Implementations§
Source§impl Clone for ToolRunReport
impl Clone for ToolRunReport
Source§fn clone(&self) -> ToolRunReport
fn clone(&self) -> ToolRunReport
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 ToolRunReport
impl Debug for ToolRunReport
Source§impl<'de> Deserialize<'de> for ToolRunReport
impl<'de> Deserialize<'de> for ToolRunReport
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 ToolRunReport
impl RefUnwindSafe for ToolRunReport
impl Send for ToolRunReport
impl Sync for ToolRunReport
impl Unpin for ToolRunReport
impl UnsafeUnpin for ToolRunReport
impl UnwindSafe for ToolRunReport
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