April 21, 2024, 5:39 a.m. | Thomas Taylor

DEV Community dev.to

On April 4th, 2024, Anthropic released official support for tool use through their API. This feature allows developers to define one or more tools that include parameters, descriptions, and schema definitions for Claude to process.


In this post, we'll go over how to leverage these tools using the Python Anthropic SDK.





Claude with tools example in Python


Firstly, ensure that your Anthropic API key is available as an environment variable in your shell:



export ANTHROPIC_API_KEY="sk-......"





Install the Anthropic SDK


Next, …

ai anthropic anthropic claude api april claude definitions developers feature parameters process programming python python sdk schema sdk support through tool tools tutorial

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne