Pydantic validation error - Multi-agent - CustomAgent (that uses toolkit)

While using phi.agent.Toolkit and tested local the function worked properly. It is also working when configured to an agent as Toolkit. But following error is thrown when the agent further made in part of the team of another Agent..

WARNING Could not run function
transfer_task_to_ticket_matching_agent(expected_output=list of
relevant tickets, task_description=…)
ERROR 1 validation error for
Agent.get_transfer_function.._transfer_task_to_agent
additional_information
Missing required argument [type=missing_argument,
input_value=ArgsKwargs((), {‘expected…n the AWS CloudWatch.’}),
input_type=ArgsKwargs]
For further information visit
Redirecting...
Traceback (most recent call last):
File
“C:\Users\amuthan.k\Scripts\PyEnv_AI_180325\Lib\site-packages\phi\tool
s\function.py”, line 368, in execute
self.result = self.function.entrypoint(**entrypoint_args,
**self.arguments)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^
File
“C:\Users\amuthan.k\Scripts\PyEnv_AI_180325\Lib\site-packages\pydantic
_internal_validate_call.py”, line 38, in wrapper_function
return wrapper(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File
“C:\Users\amuthan.k\Scripts\PyEnv_AI_180325\Lib\site-packages\pydantic
_internal_validate_call.py”, line 111, in call
res =
self.pydantic_validator.validate_python(pydantic_core.ArgsKwargs(a
rgs, kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for
Agent.get_transfer_function.._transfer_task_to_agent
additional_information
Missing required argument [type=missing_argument,
input_value=ArgsKwargs((), {‘expected…n the AWS CloudWatch.’}),
input_type=ArgsKwargs]
For further information visit
Redirecting...

1 Like

Hi @amuthan
Thanks for reaching out and for using Agno! I’ve looped in the right engineers to help with your question. We usually respond within 48 hours, but if this is urgent, just let us know, and we’ll do our best to prioritize it.
Appreciate your patience—we’ll get back to you soon! :smile:

Hi @amuthan
Thank you for reaching out!
It is not clear from the error logs you shared what code you are actually trying to run. If you are using Phi still, I can highly recommend that if possible, you upgrade to using Agno. We have packed it full of new features and improvements. Especially since it looks like you are trying to use Agent Teams.

Please feel free to share a snippet of the code you are trying to run or let me know if you need help migrating to Agno.

Thank you, for the interest to review the problem. I will attempt migrating to agno and check it out.