Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to craft examples for multi-agent systems (Playbook)

Hi All,

I am facing some issues in crafting examples for multi-agent systems using Playbook. Basically I have a main agent that talks to other child agents and those agents will report back to the main.

For example the workflow should be A (parent)->B(Child)->A->C(child)->A. I can route from A to B, but then B cannot go back to A after it has completed. My main playbook instructions are as follows:

  • -route to ${playbook B}. Store parameters
  • -route to ${playbook C}. Store parameters.
  • Summarize all parameters

For the B instructions, it is as follows.

  • -collect users inputs
  • run calculations
  • store as parameters
  • set playbook status as OK and return to main playbook

I can't use the command ${playbook A} as it complains of a loop detected.

As such, I tried to use examples for playbook A and B, but i'm facing issues here. Mainly as follows:

  • Playbook A: How do i create an example that clearly shows B being invoked, collect all the inputs and exit. Then invoke C and exit back to A. Do i need to write the whole APP flow here since this playbook controls it all.
  • Playbook B&C: I'm not able to create an example that shows B exiting and going to A. When I use the invoke playbook for A to mimic going back to A, it gives an error about referencing playbook.

Please advise on how to craft examples for the main and child playbooks for multi-agent approach. I do think that my instructions are clear enough. Please correct me if I'm wrong. Thank you. 

 

 

1 2 821
2 REPLIES 2