loop
: Declares a loop block, indicating that the subsequent steps will be executed repeatedly;times
: Sets the maximum number of loop iterations (3 times in the example above);steps
: Defines the sequence of tool calls to be executed in each iteration, written in the same way as a serial structure.times
times). If you want to dynamically control whether to exit the loop based on the model’s generated results, you can use it together with the branch structure (branch
) and Router Server, as detailed in the next section.