pub struct AgentTool {
pub id: String,
pub summary: Option<String>,
pub value: Box<ToolValue>,
}Expand description
AgentTool : A tool available to an AI agent. Can be a flow module or an external MCP (Model Context Protocol) tool
Fields§
§id: StringUnique identifier for this tool. Cannot contain spaces - use underscores instead (e.g., ‘get_user_data’ not ‘get user data’)
summary: Option<String>Short description of what this tool does (shown to the AI)
value: Box<ToolValue>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentTool
impl<'de> Deserialize<'de> for AgentTool
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 AgentTool
Auto Trait Implementations§
impl Freeze for AgentTool
impl RefUnwindSafe for AgentTool
impl Send for AgentTool
impl Sync for AgentTool
impl Unpin for AgentTool
impl UnwindSafe for AgentTool
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