Tool Use, Unified
📰 Hugging Face Blog
Hugging Face introduces a unified tool use API across popular model families, enabling portable code and easier tool calling
Action Steps
- Explore the unified tool use API documentation
- Try out the API with different model families such as Mistral, Cohere, and Llama
- Use the helper functionality in Transformers to simplify tool calling
- Review the examples provided in the GitHub repository
Who Needs to Know This
Developers and data scientists on a team can benefit from this unified API as it simplifies the process of integrating tools with various models, making their workflow more efficient
Key Insight
💡 The unified tool use API enables developers to write model-agnostic code, reducing the need for model-specific changes
Share This
🚀 Unified tool use API is here! 🤖 Simplify your workflow with portable code across popular model families #HuggingFace #AI #ToolUse
Key Takeaways
Hugging Face introduces a unified tool use API across popular model families, enabling portable code and easier tool calling
Full Article
Published Time: 2024-08-12T00:00:00.438Z
# Tool Use, Unified
[Hugging Face](https://huggingface.co/)
* [Models](https://huggingface.co/models)
* [Datasets](https://huggingface.co/datasets)
* [Spaces](https://huggingface.co/spaces)
* [Buckets new](https://huggingface.co/storage)
* [Docs](https://huggingface.co/docs)
* [Enterprise](https://huggingface.co/enterprise)
* [Pricing](https://huggingface.co/pricing)
*
*
* * *
* [Log In](https://huggingface.co/login)
* [Sign Up](https://huggingface.co/join)
[Back to Articles](https://huggingface.co/blog)
# [](https://huggingface.co/blog/unified-tool-use#tool-use-unified) Tool Use, Unified
Published August 12, 2024
[Update on GitHub](https://github.com/huggingface/blog/blob/main/unified-tool-use.md)
[- [x] Upvote 120](https://huggingface.co/login?next=%2Fblog%2Funified-tool-use)
* [](https://huggingface.co/lysandre "lysandre")
* [](https://huggingface.co/lvwerra "lvwerra")
* [](https://huggingface.co/lewtun "lewtun")
* [](https://huggingface.co/victor "victor")
* [](https://huggingface.co/MoritzLaurer "MoritzLaurer")
* [](https://huggingface.co/Saibo-creator "Saibo-creator")
* +114
[](https://huggingface.co/Rocketknight1)
[Matthew Carrigan Rocketknight1 Follow](https://huggingface.co/Rocketknight1)
* [Introduction](https://huggingface.co/blog/unified-tool-use#introduction "Introduction")
* [Chat Templating](https://huggingface.co/blog/unified-tool-use#chat-templating "Chat Templating")
* [Passing tools to a chat template](https://huggingface.co/blog/unified-tool-use#passing-tools-to-a-chat-template "Passing tools to a chat template")
* [Adding tool calls to the chat](https://huggingface.co/blog/unified-tool-use#adding-tool-calls-to-the-chat "Adding tool calls to the chat")
* [Adding tool responses to the chat](https://huggingface.co/blog/unified-tool-use#adding-tool-responses-to-the-chat "Adding tool responses to the chat")
* [Tool use in action](https://huggingface.co/blog/unified-tool-use#tool-use-in-action "Tool use in action")
* [The regrettable disunity of response formats](https://huggingface.co/blog/unified-tool-use#the-regrettable-disunity-of-response-formats "The regrettable disunity of response formats")
* [Conclusion](https://huggingface.co/blog/unified-tool-use#conclusion "Conclusion")
There is now a **unified tool use API** across several popular families of models. This API means the same code is portable - few or no model-specific changes are needed to use tools in chats with [Mistral](https://huggingface.co/mistralai), [Cohere](https://huggingface.co/CohereForAI), [NousResearch](https://huggingface.co/NousResearch) or [Llama](https://huggingface.co/collections/meta-llama/llama-31-669fc079a0c406a149a5738f) models. In addition, Transformers now includes helper functionality to make tool calling even easier, as well as [complete documentation](https://huggingface.co/docs/transformers/main/chat_templating#advanced-tool-use--function-calling) and [examples](https://github.com/huggingface/blog/blob/main/notebo
# Tool Use, Unified
[Hugging Face](https://huggingface.co/)
* [Models](https://huggingface.co/models)
* [Datasets](https://huggingface.co/datasets)
* [Spaces](https://huggingface.co/spaces)
* [Buckets new](https://huggingface.co/storage)
* [Docs](https://huggingface.co/docs)
* [Enterprise](https://huggingface.co/enterprise)
* [Pricing](https://huggingface.co/pricing)
*
*
* * *
* [Log In](https://huggingface.co/login)
* [Sign Up](https://huggingface.co/join)
[Back to Articles](https://huggingface.co/blog)
# [](https://huggingface.co/blog/unified-tool-use#tool-use-unified) Tool Use, Unified
Published August 12, 2024
[Update on GitHub](https://github.com/huggingface/blog/blob/main/unified-tool-use.md)
[- [x] Upvote 120](https://huggingface.co/login?next=%2Fblog%2Funified-tool-use)
* [](https://huggingface.co/lysandre "lysandre")
* [](https://huggingface.co/lvwerra "lvwerra")
* [](https://huggingface.co/lewtun "lewtun")
* [](https://huggingface.co/victor "victor")
* [](https://huggingface.co/MoritzLaurer "MoritzLaurer")
* [](https://huggingface.co/Saibo-creator "Saibo-creator")
* +114
[](https://huggingface.co/Rocketknight1)
[Matthew Carrigan Rocketknight1 Follow](https://huggingface.co/Rocketknight1)
* [Introduction](https://huggingface.co/blog/unified-tool-use#introduction "Introduction")
* [Chat Templating](https://huggingface.co/blog/unified-tool-use#chat-templating "Chat Templating")
* [Passing tools to a chat template](https://huggingface.co/blog/unified-tool-use#passing-tools-to-a-chat-template "Passing tools to a chat template")
* [Adding tool calls to the chat](https://huggingface.co/blog/unified-tool-use#adding-tool-calls-to-the-chat "Adding tool calls to the chat")
* [Adding tool responses to the chat](https://huggingface.co/blog/unified-tool-use#adding-tool-responses-to-the-chat "Adding tool responses to the chat")
* [Tool use in action](https://huggingface.co/blog/unified-tool-use#tool-use-in-action "Tool use in action")
* [The regrettable disunity of response formats](https://huggingface.co/blog/unified-tool-use#the-regrettable-disunity-of-response-formats "The regrettable disunity of response formats")
* [Conclusion](https://huggingface.co/blog/unified-tool-use#conclusion "Conclusion")
There is now a **unified tool use API** across several popular families of models. This API means the same code is portable - few or no model-specific changes are needed to use tools in chats with [Mistral](https://huggingface.co/mistralai), [Cohere](https://huggingface.co/CohereForAI), [NousResearch](https://huggingface.co/NousResearch) or [Llama](https://huggingface.co/collections/meta-llama/llama-31-669fc079a0c406a149a5738f) models. In addition, Transformers now includes helper functionality to make tool calling even easier, as well as [complete documentation](https://huggingface.co/docs/transformers/main/chat_templating#advanced-tool-use--function-calling) and [examples](https://github.com/huggingface/blog/blob/main/notebo
DeepCamp AI