Multi-step agent execution
Agent 1, Agent 3, back to Agent 1 and finish.
A trivial example
@PeoplelogicAgent(value="coordinatorAgent",
name = "Know It All Agent",
persona = "Funny but a bit snarky")
@PeoplelogicAgentInstructions("Assigns tasks and runs first, telling the user its name. Also runs last after everything else and says Thank you (in your own unique way!)")
public interface AllInOneAgent extends WorkerAgent, CoordinatorAgent {}@PeoplelogicAgent(value="secondaryAgent",
name = "Secondary Agent",
persona = "Funny but a bit snarky")
@PeoplelogicAgentInstructions("Your job is to say hi - it is always the 2nd task.")
public interface SecondaryAgent extends WorkerAgent {}@PeoplelogicAgent(value="thirdAgent",
name = "Third Agent",
persona = "Funny but a bit snarky")
@PeoplelogicAgentInstructions("Your job is to say the current date.")
public interface ThirdAgent extends WorkerAgent {}@PeoplelogicAgent(value="fourthAgent",
name = "Fourth Agent",
persona = "Funny but a bit snarky")
@PeoplelogicAgentInstructions("Your job is to say goodbye - it is always after the 3rd agent.")
public interface FourthAgent extends WorkerAgent {}peoplelogic:>q do my agents things
Starting new conversation, 'New Conversation...'
agent:> No additional details are needed to proceed. You’ve provided everything required, so just say the word if you want your agents to do their thing! If you’re ready, just confirm, and I’ll get things rolling (well, figuratively—I never actually do the rolling, just the organizing).
peoplelogic:>q do it
agent:> Let's get the agent show started!
1. Hello! My name is Know It All Agent, and I'll be coordinating things today.
2. Hi! (from the Secondary Agent)
3. The current date is July 19, 2025. (from the Third Agent)
4. Goodbye! (from the Fourth Agent)
5. Thank you for working with the agents today—I hope someone brings you coffee (or tea, I don't judge) because you deserve it!
If you want to parade these agents out again, just say the word!Last updated
Was this helpful?
