pub enum ToolKind {
Function(Arc<dyn ToolFunction>),
Streaming(Arc<dyn StreamingTool>),
InputStream(Arc<dyn InputStreamingTool>),
}Expand description
Unified tool storage.
Variants§
Function(Arc<dyn ToolFunction>)
A regular one-shot function tool.
Streaming(Arc<dyn StreamingTool>)
A streaming tool that yields multiple results.
InputStream(Arc<dyn InputStreamingTool>)
An input-streaming tool that receives live input.
Auto Trait Implementations§
impl Freeze for ToolKind
impl !RefUnwindSafe for ToolKind
impl Send for ToolKind
impl Sync for ToolKind
impl Unpin for ToolKind
impl !UnwindSafe for ToolKind
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