pub enum Disposition {
Allow,
Refused(String),
}Expand description
Disposition returned by Observer::should_dispatch — whether a tool
call should proceed, be refused, or be intercepted.
v0.3 C2. Added as the canonical extension point for trust tier enforcement,
human-in-the-loop approval, and policy gating. The agent treats
Disposition::Refused as a synthetic tool result (fed back to the model
as an error) so the loop continues instead of aborting.
Variants§
Allow
The tool call may proceed normally.
Refused(String)
The tool call is refused. The provided message becomes the tool
result passed back to the model (“wrapped” in the standard
<tool_output> envelope by the agent).
Trait Implementations§
Source§impl Clone for Disposition
impl Clone for Disposition
Source§fn clone(&self) -> Disposition
fn clone(&self) -> Disposition
Returns a duplicate of the value. Read more
1.0.0 · 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 Disposition
impl RefUnwindSafe for Disposition
impl Send for Disposition
impl Sync for Disposition
impl Unpin for Disposition
impl UnsafeUnpin for Disposition
impl UnwindSafe for Disposition
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