pub struct Audited<'a> {
pub caller: &'a Caller,
pub action: &'a str,
pub tool: Option<&'a Tool>,
pub args: &'a Value,
pub outcome: Result<(), &'a Error>,
pub origin: &'a Origin,
}Expand description
What the audit hook hears: a tool call, admitted or refused, or a
terminal opening (terminal.open) and closing (terminal.close).
Fields§
§caller: &'a Caller§action: &'a strThe tool’s name, or terminal.open / terminal.close.
tool: Option<&'a Tool>The tool, when the action is one (its annotations say whether it only reads).
args: &'a ValueThe arguments as authorized (for a refusal, as sent). The hook keeps only what it knows is safe to keep.
outcome: Result<(), &'a Error>§origin: &'a OriginAuto Trait Implementations§
impl<'a> !RefUnwindSafe for Audited<'a>
impl<'a> !UnwindSafe for Audited<'a>
impl<'a> Freeze for Audited<'a>
impl<'a> Send for Audited<'a>
impl<'a> Sync for Audited<'a>
impl<'a> Unpin for Audited<'a>
impl<'a> UnsafeUnpin for Audited<'a>
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