But when I tried to get them to communicate I got:
👤 User: say hello to the developer
SendMessage(
{"chain_of_thought":"User has requested to send a greeting to the developer. The task at hand simply involves conveying a friendly message from the user to the developer. The appropriate response would be to acknowledge the user's greeting and deliver it to the developer.","recipient":"agent-developer","message":"Hello from the user!"})
)
Error: 1 validation error for SendMessage recipient Input should be 'agent-architect' [type=enum, input_value='agent-developer', input_type=str]
After much debugging I identified this was because they shared the same tools array. The Agent was updating it to add the SendMessage function and this resulted in the above error.
I will submit a pull request for Agent.init()self.tools = tools[:] if tools is not None else []
Here is my code snippet:
But when I tried to get them to communicate I got:
After much debugging I identified this was because they shared the same tools array. The Agent was updating it to add the SendMessage function and this resulted in the above error.
I will submit a pull request for Agent.init()
self.tools = tools[:] if tools is not None else []
Hopefully this will save others some time...