Your Party
🎉 Final quest! Everything comes together here: system prompts, plans, loops, memory and a team. Pick a job you care about (a party, a story, a clean room, anything) and build a three-bot team for it.
The checker doesn't mind which job you pick. It checks that your team is built the way real agent teams are: three members with their own system prompts, a plan, the steps shared out in turn, a memory that keeps every result, and a step limit so the team never runs forever.
TEAM = {
"Ada": "You are Ada, a planner.",
"Bo": "You are Bo, a builder.",
"Cy": "You are Cy, a checker.",
}Pip knows plans for bake a cake, plant a tree, throw a party, write a story and clean my room, and makes up a 3-step plan for anything else. Pass it and your certificate is ready.
Instructions
- Make
TEAM: a dict of 3 bots, each with a system prompt that startsYou areand its name. - Make
run_party(goal, limit)that plans withpip.plan(goal)and shares the steps out to the team in turn. - Each step goes into a
memorylist asAda: buy snacks, andrun_partyreturns that list. - Stop after
limitsteps, even if the plan is longer. - Pick your goal, and print each line of
run_party(your_goal, 10).
💡 Hint
names = list(TEAM). For i, step in enumerate(pip.plan(goal)): if i >= limit: break. Otherwise add names[i % len(names)] + ": " + step to memory.