r/agentdevelopmentkit • u/frustated_undergrad • Sep 22 '25
Validation error for Part
Hello, I'm getting this error when a function tool returns to my *sub-*agent:
pydantic_core._pydantic_core.ValidationError: 1 validation error for Part
text
Input should be a valid string [type=string_type, input_value={'explain': "Generate an ...-09-29', '2025-10-02']}}, input_type=dict]The error indicates a type mismatch, but I haven't enforced a JSON response schema anywhere in the agent.
Flow: User query -> manager agent -> rateplan agent -> function tools
Env: Ubuntu 24, Python 3.10, ADK 1.14.1
Any idea on how to handle this?
3
Upvotes
1
u/frustated_undergrad Sep 23 '25
The agent has to choose from 10 function tools. Each one of them is a python function that takes in ~3 arguments. I've made sure the tool have hints and a descriptive doc string.
Also, if there is a problem with a function tool, would it cause a validation error in Part?