pub struct FlowModuleTool {Show 25 fields
pub input_transforms: Box<AiAgentInputTransforms>,
pub content: String,
pub language: Language,
pub path: String,
pub lock: Option<String>,
pub type: Type,
pub tag: Option<String>,
pub concurrent_limit: Option<f64>,
pub concurrency_time_window_s: Option<f64>,
pub custom_concurrency_key: Option<String>,
pub is_trigger: Option<bool>,
pub assets: Option<Vec<RawScriptAssetsInner>>,
pub hash: Option<String>,
pub tag_override: Option<String>,
pub modules: Vec<FlowModule>,
pub iterator: Box<InputTransform>,
pub skip_failures: bool,
pub parallel: Option<bool>,
pub parallelism: Option<Box<InputTransform>>,
pub squash: Option<bool>,
pub branches: Vec<BranchAllBranchesInner>,
pub default: Vec<FlowModule>,
pub flow: Option<bool>,
pub tools: Vec<AgentTool>,
pub tool_type: ToolType,
}Expand description
FlowModuleTool : A tool implemented as a flow module (script, flow, etc.). The AI can call this like any other flow module
Fields§
§input_transforms: Box<AiAgentInputTransforms>§content: StringThe script source code. Should export a ‘main’ function
language: LanguageProgramming language for this script
path: StringPath to the flow in the workspace (e.g., ‘f/flows/process_user’)
lock: Option<String>Lock file content for dependencies
type: Type§tag: Option<String>Worker group tag for execution routing
concurrent_limit: Option<f64>Maximum concurrent executions of this script
concurrency_time_window_s: Option<f64>Time window for concurrent_limit
custom_concurrency_key: Option<String>Custom key for grouping concurrent executions
is_trigger: Option<bool>If true, this script is a trigger that can start the flow
assets: Option<Vec<RawScriptAssetsInner>>External resources this script accesses (S3 objects, resources, etc.)
hash: Option<String>Optional specific version hash of the script to use
tag_override: Option<String>Override the script’s default worker group tag
modules: Vec<FlowModule>Steps to execute in each iteration. Use stop_after_if to control when the loop ends
iterator: Box<InputTransform>§skip_failures: boolIf true, iteration failures don’t stop the loop. Failed iterations return null
parallel: Option<bool>If true, the agent can execute multiple tool calls in parallel
parallelism: Option<Box<InputTransform>>§squash: Option<bool>§branches: Vec<BranchAllBranchesInner>Array of branches that all execute (either in parallel or sequentially)
default: Vec<FlowModule>Steps to execute if no branch expressions match
flow: Option<bool>If true, marks this as a flow identity (special handling)
tools: Vec<AgentTool>Array of tools the agent can use. The agent decides which tools to call based on the task
tool_type: ToolTypeImplementations§
Source§impl FlowModuleTool
impl FlowModuleTool
Sourcepub fn new(
input_transforms: AiAgentInputTransforms,
content: String,
language: Language,
path: String,
type: Type,
modules: Vec<FlowModule>,
iterator: InputTransform,
skip_failures: bool,
branches: Vec<BranchAllBranchesInner>,
default: Vec<FlowModule>,
tools: Vec<AgentTool>,
tool_type: ToolType,
) -> FlowModuleTool
pub fn new( input_transforms: AiAgentInputTransforms, content: String, language: Language, path: String, type: Type, modules: Vec<FlowModule>, iterator: InputTransform, skip_failures: bool, branches: Vec<BranchAllBranchesInner>, default: Vec<FlowModule>, tools: Vec<AgentTool>, tool_type: ToolType, ) -> FlowModuleTool
A tool implemented as a flow module (script, flow, etc.). The AI can call this like any other flow module
Trait Implementations§
Source§impl Clone for FlowModuleTool
impl Clone for FlowModuleTool
Source§fn clone(&self) -> FlowModuleTool
fn clone(&self) -> FlowModuleTool
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FlowModuleTool
impl Debug for FlowModuleTool
Source§impl Default for FlowModuleTool
impl Default for FlowModuleTool
Source§fn default() -> FlowModuleTool
fn default() -> FlowModuleTool
Source§impl<'de> Deserialize<'de> for FlowModuleTool
impl<'de> Deserialize<'de> for FlowModuleTool
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>,
Source§impl PartialEq for FlowModuleTool
impl PartialEq for FlowModuleTool
Source§impl Serialize for FlowModuleTool
impl Serialize for FlowModuleTool
impl StructuralPartialEq for FlowModuleTool
Auto Trait Implementations§
impl Freeze for FlowModuleTool
impl RefUnwindSafe for FlowModuleTool
impl Send for FlowModuleTool
impl Sync for FlowModuleTool
impl Unpin for FlowModuleTool
impl UnwindSafe for FlowModuleTool
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)