anthropic-tools  by anthropics

SDK for tool/function calling with Anthropic models (research preview)

Created 2 years ago
338 stars

Top 81.6% on SourcePulse

GitHubView on GitHub
Project Summary

This repository provides a Python SDK for enabling tool use (function calling) with Anthropic's Claude models. It's designed for researchers and developers exploring how to integrate external tools and APIs into LLM workflows, offering a structured way to define tools and manage interactions.

How It Works

The SDK centers around two core classes: BaseTool for defining custom tools and ToolUser for orchestrating interactions between Claude and a collection of tools. It utilizes a specific message format that mimics Anthropic's Messages API, distinguishing between user prompts, assistant responses, tool requests (tool_inputs), and tool results (tool_outputs). This structured approach allows Claude to understand when and how to call external functions, and for the system to process and return the results.

Quick Start & Requirements

Highlighted Details

  • Supports both automatic and manual execution modes for tool calls.
  • Includes pre-built tools for common tasks like search and SQL.
  • Defines a structured message format for clear communication between the LLM and tools.
  • Allows for custom tool creation by inheriting from BaseTool.

Maintenance & Community

This repository is deprecated and no longer maintained. For current information, refer to the official Anthropic documentation.

Licensing & Compatibility

The license is not explicitly stated in the README. Compatibility for commercial use or closed-source linking is not specified due to the deprecated status.

Limitations & Caveats

This repository is deprecated and no longer maintained, meaning it will not receive updates or support. The official Anthropic API offers a more robust and production-ready implementation of tool use.

Health Check
Last Commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
6 stars in the last 30 days

Explore Similar Projects

Starred by Patrick von Platen Patrick von Platen(Author of Hugging Face Diffusers; Research Engineer at Mistral), Simon Willison Simon Willison(Coauthor of Django), and
1 more.

mistral-vibe by mistralai

4.1%
3k
Conversational CLI coding agent for project interaction
Created 1 month ago
Updated 3 days ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Tobi Lutke Tobi Lutke(Cofounder of Shopify), and
33 more.

opencode by anomalyco

26.5%
60k
CLI tool for AI-assisted coding in the terminal
Created 8 months ago
Updated 15 hours ago
Feedback? Help us improve.