[Bugfix] Avoid leaking Pydantic repr in tool_choice error message (#47028)