anthropic-tools  by anthropics

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

created 1 year ago
314 stars

Top 87.1% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
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

9 months ago

Responsiveness

1 day

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

Explore Similar Projects

Feedback? Help us improve.