pub struct PreparedToolCall {
pub tool_name: String,
pub permission_requests: Vec<PermissionRequest>,
pub irreversible: bool,
pub review: Option<ToolReview>,
/* private fields */
}Fields§
§tool_name: String§permission_requests: Vec<PermissionRequest>§irreversible: bool§review: Option<ToolReview>Implementations§
Source§impl PreparedToolCall
impl PreparedToolCall
pub fn new( tool_name: impl Into<String>, permission_requests: Vec<PermissionRequest>, irreversible: bool, review: Option<ToolReview>, action: impl PreparedToolAction + 'static, ) -> Self
pub fn commit<'a>( self, context: &'a ToolContext, ) -> BoxFuture<'a, Result<ToolOutput, ToolError>>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PreparedToolCall
impl !Sync for PreparedToolCall
impl !UnwindSafe for PreparedToolCall
impl Freeze for PreparedToolCall
impl Send for PreparedToolCall
impl Unpin for PreparedToolCall
impl UnsafeUnpin for PreparedToolCall
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