pub struct ChatAttachTool {
pub config: ChatAttachConfig,
}Fields§
§config: ChatAttachConfigTrait Implementations§
Source§impl Tool for ChatAttachTool
impl Tool for ChatAttachTool
fn spec(&self) -> ToolSpec
fn risk(&self, arguments: &Value) -> Result<ToolRisk, ToolError>
fn approval_summary(&self, arguments: &Value) -> Result<String, ToolError>
fn execute<'life0, 'async_trait>(
&'life0 self,
arguments: Value,
context: ToolContext,
) -> Pin<Box<dyn Future<Output = Result<ToolOutput, ToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for ChatAttachTool
impl RefUnwindSafe for ChatAttachTool
impl Send for ChatAttachTool
impl Sync for ChatAttachTool
impl Unpin for ChatAttachTool
impl UnsafeUnpin for ChatAttachTool
impl UnwindSafe for ChatAttachTool
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