Hi guys,
When creating a multi-agent, I found some difficulties to passing variables from an agent that act as parent to another agent that act as it's connected agent.
The story is:
1. I'm creating a global variable with named "global_str_ware" in the parent agent's CoversationStart.
2. As I want to pass this into my 2nd agent which I'm adding it into the 1st agent, in setting, basically I already added the Input and specify it is a custom and put that "global_str_ware"
3. In 2nd agent, I also create same name (which not sure whether it need to be same name), because if not, since this is 2 different agent, the variable from 1st agent is not recognize.
I'm not sure this is the right way, because when testing, I noticed that the variable from parent became "globalStrWare".... the underscore is stripped and it became Camel case.
Anyway this effort has not worked. I have tried many way, but it looks like the variable that I created in 2nd agent is still null. whereby during test, I can see my 2nd agent being called and there is a variable globalStrWare filled correctly.
So, during testing, the flow look like this:
Parent agent
Global.global_str_ware = "62"
↓
Passes to connected agent as input
↓
Connected agent receives
globalStrWare = "62" ← visible in test panel inputs
↓
Connected agent conversation context
Agent knows "warehouse 62"
→ used correctly in auto-orchestration
→ Task string shows "warehouse 62"
↓
BUT
Global.global_str_ware inside connected agent = Blank
Well I can see it is obvious, although it is questioning as of why the variable passed to the 2nd agent (connected agent) becoming stripped underscore like that.
Anyone have an idea what happened and how exactly the "work" to pass variable between agents ?
Thanks,