Tool use with the Claude 3 model family
Key Takeaways
The Claude 3 model family now supports tool use, also known as function calling, which enables the model to interact with external tools and execute a set of actions by generating structured input. The Anthropic Messages API provides access to this feature in beta.
Full Transcript
one of the newest exciting features of the cloud 3 Model family is tool use also known as function calling tools that cloud can use are represented by a Json schema that tells the model about the capabilities of the tool and the arguments it accepts during generation the model can make a call to any of its tools which the client can then dispatch and return the results for example this Hau model which is our fastest and most affordable model has access to a fetch webpage tool and a stand boxed python reppel tool so it can retrieve information from the internet and run code we're going to use it to retrieve an implementation of quick sort one of the most popular sorting algorithms and check how fast it runs on a sample input now because Haiku is pretty fast I've actually slowed down this demo by 5x so that we can see the tokens being generated you can see that Haiku is able to link together several different tools to accomplish a task now things get even more interesting when models can call other models as tools for example let's say I want to find the fastest implementation of quicksort online here I'm asking Opus our most advanced model to find 100 permissively licensed quick sort implementations on GitHub then 100 houp models write tests to determine how fast each implementation is and then we'll be able to determine which is the quickest quick sort while we let this run here's how it works under the hood we've given Opus A dispatch sub agents tool to parallelize this work where it can write a prompt template and provide a list of arguments the Haiku sub agents each get the template filled in with their respective argument then all of the answers get return to Opus which Returns the fastest implementation and here we see that the fastest result is available here and it has some additional optimizations that some of the other implement don't have tool use with sub agents is a great way to combine the intelligence of Opus and the speed and affordability of haiku to take action on large amounts of information at scale hope you try it out soon
Original Description
Tool use, which enables the Claude 3 model family to interact with external tools, is now available in beta to all customers in the Anthropic Messages API.
Tool use, or function calling, is a frontier AI capability that allows Claude to reason, plan and execute a set of actions by generating structured outputs via API calls.
Read our developer documentation: https://docs.anthropic.com/claude/docs/tool-use
Try out tool use: https://www.anthropic.com/api
Learn more: https://www.anthropic.com/claude
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Playlist UUrDwWp7EBBv4NwvScIpBDOA · Anthropic · 12 of 60
1
2
3
4
5
6
7
8
9
10
11
▶
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Quick tips for Claude: Long context file uploads
Anthropic
Inside our first Anthropic Hackathon, San Francisco
Anthropic
Long inputs, multi-step output with Claude
Anthropic
Coding with Claude
Anthropic
Behind the prompt: Prompting tips for Claude.ai
Anthropic
Robin AI, powered by Claude
Anthropic
Claude 3 Opus as an economic analyst
Anthropic
Claude 3 Sonnet as a language learning partner
Anthropic
Claude 3 Haiku turns thousands of physical documents into structured data
Anthropic
Claude 3 Haiku for instant customer service
Anthropic
Claude 3 Haiku for fast document analysis
Anthropic
Tool use with the Claude 3 model family
Anthropic
Coming soon to the Team plan on Claude.ai
Anthropic
Introducing the Claude iOS app
Anthropic
Claude is now available in Europe
Anthropic
What is interpretability?
Anthropic
What should an AI's personality be?
Anthropic
Scaling interpretability
Anthropic
Claude 3.5 Sonnet for sparking creativity
Anthropic
Claude 3.5 Sonnet for vision
Anthropic
Claude 3.5 Sonnet as a writing partner
Anthropic
Claude 3.5 Sonnet for agentic coding
Anthropic
Shareable Projects in Claude
Anthropic
Evaluate prompts in the Anthropic Console
Anthropic
Shareable Artifacts in Claude
Anthropic
How we built Artifacts with Claude
Anthropic
Wedia advances digital asset management with Claude
Anthropic
AI prompt engineering: A deep dive
Anthropic
AI Prompt Engineering 101: Explained
Anthropic
Ancient Wisdom, Modern AI?
Anthropic
AI's Greatest Challenge: You?
Anthropic
AI Prompts That Drive Growth
Anthropic
Tips For Better Results With AI
Anthropic
AI, policy, and the weird sci-fi future with Anthropic’s Jack Clark
Anthropic
European Parliament expands access to their archives with Claude in Amazon Bedrock
Anthropic
Claude | Computer use for automating operations
Anthropic
Claude | Computer use for orchestrating tasks
Anthropic
Claude | Computer use for coding
Anthropic
Asana supercharges work management with Claude
Anthropic
What do people use AI models for?
Anthropic
Alignment faking in large language models
Anthropic
Building Anthropic | A conversation with our co-founders
Anthropic
How difficult is AI alignment? | Anthropic Research Salon
Anthropic
Tips for building AI agents
Anthropic
Claude 3.7 Sonnet with extended thinking
Anthropic
Introducing Claude Code
Anthropic
Advice For Building AI Agents
Anthropic
The Two Most Useful Applications of AI Agents
Anthropic
Defending against AI jailbreaks
Anthropic
The Most Common Mistake People Make When Building AI Agents
Anthropic
Controlling powerful AI
Anthropic
How Intercom is redefining customer support with Claude
Anthropic
Tracing the thoughts of a large language model
Anthropic
Introducing Claude for Education
Anthropic
Could AI models be conscious?
Anthropic
Lessons on AI agents from Claude Plays Pokemon
Anthropic
The Societal Impacts of AI
Anthropic
What Does AI Mean for the Future of Work?
Anthropic
Understanding AI Agents...Through Pokémon
Anthropic
What Pokémon Teaches Us About Building With AI
Anthropic
More on: Tool Use & Function Calling
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
5 prompt engineering techniques to get the best out of a legacy project
Dev.to · Marco Coelho
The Real Reason Prompt Engineering Isn't Going Away
Dev.to AI
Common Prompt Engineering Mistakes and How to Avoid Them
Medium · ChatGPT
Day 5: Prompt Engineering Basics (For DevOps & Cloud Engineers)
Medium · AI
🎓
Tutor Explanation
DeepCamp AI