Skip to content

An example of using the Anthropic API with tool use capabilities from typescript

License

Notifications You must be signed in to change notification settings

codewithpassion/typescript-anthropic-tool-use-example

Repository files navigation

celtis

Latin for tool or chisel - a tool for building things.

This is a demonstration on how to use the Anthropic tool or function call API from Typescript.

There is a very simple, user prompt and feedback loop to interact with Claude.

The single configured tool is using the weatherapi.com API to get the weather for a given location.

See also

I have a Python example doing the same, using LangChain: python-langchain-anthropic-tool-use-example

Installation

yarn install
cp .env.example .env

Then add your API keys to the .env file.

Usage

yarn start

About

An example of using the Anthropic API with tool use capabilities from typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published