pub struct ToolGuardrailDecision {
pub action: String,
pub code: String,
pub message: String,
pub tool_name: String,
pub count: usize,
pub signature: Option<ToolCallSignature>,
}Fields§
§action: String§code: String§message: String§tool_name: String§count: usize§signature: Option<ToolCallSignature>Implementations§
Source§impl ToolGuardrailDecision
impl ToolGuardrailDecision
pub fn allows_execution(&self) -> bool
pub fn should_halt(&self) -> bool
pub fn to_metadata(&self) -> Value
Trait Implementations§
Source§impl Clone for ToolGuardrailDecision
impl Clone for ToolGuardrailDecision
Source§fn clone(&self) -> ToolGuardrailDecision
fn clone(&self) -> ToolGuardrailDecision
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 ToolGuardrailDecision
impl Debug for ToolGuardrailDecision
Auto Trait Implementations§
impl Freeze for ToolGuardrailDecision
impl RefUnwindSafe for ToolGuardrailDecision
impl Send for ToolGuardrailDecision
impl Sync for ToolGuardrailDecision
impl Unpin for ToolGuardrailDecision
impl UnsafeUnpin for ToolGuardrailDecision
impl UnwindSafe for ToolGuardrailDecision
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