pub enum ToolDecision {
Proceed,
ShortCircuit {
output: Vec<ContentBlock>,
is_error: bool,
},
}Expand description
before_tool 的返回:放行,或用给定结果直接短路(工具不会真正执行)。
Variants§
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