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
Currently, the API raises an error when I set "tool_choice" to {"type": "none"} while the tools parameter is empty.
I think this behavior makes sense in most cases. However, there is a scenario where I describe tool information in a private prompt, such as a system prompt. Sometimes, based on the code context, I want to explicitly forbid function calls.
It's easy for me to set tool_choice to {"type": "none"} because it's a structured parameter. On the other hand, modifying the system prompt is more difficult since it's written in natural language.
So, will Anthropic allow setting tool_choice to "none" even when tools is not empty in the future?