#[non_exhaustive]pub enum ToolDecision {
Allowed,
Denied,
Declined,
}Expand description
What happened to a tool call (ADR 0011).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Allowed
Sent to the server.
Denied
Refused by the rules (role, room, tool lists).
Declined
A person declined it (or did not answer) when asked to confirm.
Implementations§
Trait Implementations§
Source§impl Clone for ToolDecision
impl Clone for ToolDecision
impl Copy for ToolDecision
Source§impl Debug for ToolDecision
impl Debug for ToolDecision
impl Eq for ToolDecision
Source§impl Hash for ToolDecision
impl Hash for ToolDecision
Source§impl PartialEq for ToolDecision
impl PartialEq for ToolDecision
impl StructuralPartialEq for ToolDecision
Auto Trait Implementations§
impl Freeze for ToolDecision
impl RefUnwindSafe for ToolDecision
impl Send for ToolDecision
impl Sync for ToolDecision
impl Unpin for ToolDecision
impl UnsafeUnpin for ToolDecision
impl UnwindSafe for ToolDecision
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