pub struct AiAgent {
pub input_transforms: Box<AiAgentInputTransforms>,
pub tools: Option<Vec<AgentTool>>,
pub type: Type,
pub tag: Option<String>,
pub omit_output_from_conversation: Option<bool>,
pub agent: Option<String>,
pub tool_inputs: Option<HashMap<String, HashMap<String, InputTransform>>>,
pub parallel: Option<bool>,
}Expand description
AiAgent : AI agent step that can use tools to accomplish tasks. The agent receives inputs and can call any of its configured tools to complete the task
Fields§
§input_transforms: Box<AiAgentInputTransforms>§tools: Option<Vec<AgentTool>>Array of tools the agent can use. The agent decides which tools to call based on the task
type: Type§tag: Option<String>Worker group tag for execution routing. If not set, the AI agent step runs on the flow’s tag (default flow)
omit_output_from_conversation: Option<bool>If true, this AI agent step does not persist its assistant or tool messages to the flow conversation when chat mode is enabled.
agent: Option<String>Path of a reusable ai_agent resource (hybrid linking). When set, the agent brain config (provider/model/system prompt/etc.) and tool set are resolved at runtime from that resource; the module’s input_transforms then only carry the flow-local inputs (user_message/user_attachments).
tool_inputs: Option<HashMap<String, HashMap<String, InputTransform>>>Host-local wiring for an agent’s tool inputs, keyed by tool id then input key. Binds the referenced agent’s tools to this flow’s context (flow_input/results) without mutating the shared resource; overlaid onto the tools’ input_transforms at runtime — including when agent is unset, since a step forked for editing keeps these overrides until it is saved back or unlinked.
parallel: Option<bool>If true, the agent can execute multiple tool calls in parallel