pub struct ToolNode {
pub type: TypeTrue,
pub tool: Option<ToolNodeTool>,
pub tool_id: Option<String>,
pub name: String,
pub is_start: Option<bool>,
pub metadata: Option<Value>,
}
Fields§
§type: TypeTrue
This is the Tool node. This can be used to call a tool in your workflow. The flow is: - Workflow starts the tool node - Model is called to extract parameters needed by the tool from the conversation history - Tool is called with the parameters - Server returns a response - Workflow continues with the response
tool: Option<ToolNodeTool>
§tool_id: Option<String>
This is the tool to call. To use a transient tool, send tool
instead.
name: String
§is_start: Option<bool>
This is whether or not the node is the start of the workflow.
metadata: Option<Value>
This is for metadata you want to store on the task.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolNode
impl<'de> Deserialize<'de> for ToolNode
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 ToolNode
Auto Trait Implementations§
impl Freeze for ToolNode
impl RefUnwindSafe for ToolNode
impl Send for ToolNode
impl Sync for ToolNode
impl Unpin for ToolNode
impl UnwindSafe for ToolNode
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