You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/swarms/structs/loop.py

12 lines
381 B

"""
A loop is a sequence of instructions that is continually repeated until a certain condition is met. In the context of agent-based systems, a loop can be used to control the behavior of an agent, such as how many times it interacts with other agents or how long it runs for.
- Code Example:
loop = Loop(
PlanGeneratorAgent(),
ExecutionAgent(),
max_loops=10,
)
"""