What happened?
When I try to execute tools that are defined in a DSPy program, it fails with "AttributeError: 'str' object has no attribute 'tool_calls'"
Steps to reproduce
- Setup environment to use Python 3.14
- Try executing the code from DSPy docs here
NOTE: Attaching screenshot showing the difference in outputs for different Python versions
DSPy version
3.0.4b2