pub struct AgentTool {
pub id: String,
pub summary: Option<String>,
pub description: 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>The name the AI agent calls this tool by, not a human label. On a flowmodule tool it must match ^[a-zA-Z0-9_]+$ - letters, numbers and underscores only (e.g. ‘search_documentation’, not ‘Search documentation’) - and always be set; on an mcp or websearch tool it is a plain label. Put the human-readable explanation in ‘description’.
description: Option<String>Free-text description of the tool given to the AI to decide when and how to call it. Overrides the description auto-derived from the underlying script.
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 UnsafeUnpin 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