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
Commit 3350e36
Browse filesBrowse the repository at this point in the historyBrowse files
fix(types): parse null and {} as empty dspy.ToolCalls
Models in JSON mode (e.g. DeepSeek-V4-Flash with JSONAdapter) often write
"tool_calls": null or {} to mean "no tool calls". ToolCalls accepted [] but
rejected both, so ReActV2 ended its loop with parse_error and the forced
submit raised AdapterParseError.
Treat None and {} like [] in ToolCalls.validate_input. Optional fields
(ToolCalls | None) still validate None as None.
Amp-Thread-ID: https://ampcode.com/threads/T-01a126ab-8118-77c7-a811-67f49e5f20cd
Co-authored-by: Isaac Miller <isaac@cmpnd.ai>
0 commit comments