You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python: Pydantic error when attempting to use Literal type for tool parameter #2891
(There are more options for the Literal, I just don't want to list them all. They're all strings though.)
But when I try to run the agent, I get the following error:
Exception has occurred: PydanticUserError search_flows_input is not fully defined; you should define Data, then call search_flows_input.model_rebuild().
The 'Data' there seems to be a reference to the first Literal value? It's just a string though, I don't know how I would define it any more than it already is.
I have determined that it's definitely the Literal that's the issue here though because if I change the function to:
changed the title [-]Pydantic error when attempting to use Literal type for tool parameter[/-][+]Python: Pydantic error when attempting to use Literal type for tool parameter[/+]on Dec 15, 2025
Activity
[-]Pydantic error when attempting to use Literal type for tool parameter[/-][+]Python: Pydantic error when attempting to use Literal type for tool parameter[/+]moonbox3 commentedon Dec 16, 2025
Thanks for reporting this, dtkettler. The fix is in #2893.