pub enum ToolValue {
Flowmodule(Box<FlowModuleTool>),
Mcp(Box<McpToolValue>),
Websearch(Box<WebsearchToolValue>),
Question(Box<QuestionToolValue>),
}Expand description
ToolValue : The implementation of a tool. Can be a flow module (script/flow) or an MCP tool reference
Variants§
Flowmodule(Box<FlowModuleTool>)
Mcp(Box<McpToolValue>)
Websearch(Box<WebsearchToolValue>)
Question(Box<QuestionToolValue>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolValue
impl<'de> Deserialize<'de> for ToolValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ToolValue
Auto Trait Implementations§
impl Forget for ToolValue
impl Freeze for ToolValuewhere
*const FlowModuleTool is !null: Freeze,
PhantomData<FlowModuleTool>: Freeze,
*const McpToolValue is !null: Freeze,
PhantomData<McpToolValue>: Freeze,
*const WebsearchToolValue is !null: Freeze,
PhantomData<WebsearchToolValue>: Freeze,
*const QuestionToolValue is !null: Freeze,
PhantomData<QuestionToolValue>: Freeze,
impl Move for ToolValue
impl RefUnwindSafe for ToolValue
impl Send for ToolValuewhere
BoxRaw<FlowModuleTool>: Send,
BoxRaw<McpToolValue>: Send,
BoxRaw<WebsearchToolValue>: Send,
BoxRaw<QuestionToolValue>: Send,
impl Sync for ToolValuewhere
BoxRaw<FlowModuleTool>: Sync,
BoxRaw<McpToolValue>: Sync,
BoxRaw<WebsearchToolValue>: Sync,
BoxRaw<QuestionToolValue>: Sync,
impl Unpin for ToolValuewhere
Box<FlowModuleTool>: Unpin,
Box<McpToolValue>: Unpin,
Box<WebsearchToolValue>: Unpin,
Box<QuestionToolValue>: Unpin,
impl UnsafeUnpin for ToolValuewhere
*const FlowModuleTool is !null: UnsafeUnpin,
PhantomData<FlowModuleTool>: UnsafeUnpin,
*const McpToolValue is !null: UnsafeUnpin,
PhantomData<McpToolValue>: UnsafeUnpin,
*const WebsearchToolValue is !null: UnsafeUnpin,
PhantomData<WebsearchToolValue>: UnsafeUnpin,
*const QuestionToolValue is !null: UnsafeUnpin,
PhantomData<QuestionToolValue>: UnsafeUnpin,
impl UnwindSafe for ToolValuewhere
BoxRaw<FlowModuleTool>: UnwindSafe,
BoxRaw<McpToolValue>: UnwindSafe,
BoxRaw<WebsearchToolValue>: UnwindSafe,
BoxRaw<QuestionToolValue>: UnwindSafe,
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