Hey Samba Speed Freaks,
3.1 is hot off the press and here’s an approach to getting some tool use and thinking at the same time from it. Although the model doesn’t explicitly support it, I’ve created this method while we work on improving our api and templates to make it seamless for everyone.
For enabling thinking one can use this method in the chat client init:
extra_body={"chat_template_kwargs": {"enable_thinking": True}},
However, I took a stab at modifying the system prompt to accomplish the same and use tools at the same time. This script is interactive and allows the user to specify /debug to see the full agent response printed in the console, and /think to enable or disable thinking.
Let me know if you like this approach or how you are accomplishing these tasks in your own ways.
Thanks
Seth
tools.py (6.4 KB)