ADK.Agent.LoopAgent (adk_ex v1.1.0)

Copy Markdown View Source

An agent that runs its sub-agents iteratively in sequence.

Each iteration runs all sub-agents in order. The loop continues until:

  • max_iterations is reached (if > 0)
  • A sub-agent sets escalate: true in its event actions
  • A sub-agent sets transfer_to_agent in its event actions

State changes from each sub-agent's events are propagated to subsequent sub-agents within the same iteration and across iterations.

SequentialAgent is implemented as a LoopAgent with max_iterations: 1.

Summary

Types

t()

@type t() :: %ADK.Agent.LoopAgent{
  description: String.t(),
  max_iterations: non_neg_integer(),
  name: String.t(),
  sub_agents: [struct()]
}