Discover and explore top open-source AI tools and projects—updated daily.
anthropicsSDK for tool/function calling with Anthropic models (research preview)
Top 84.6% on SourcePulse
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
pip install -r requirements.txtANTHROPIC_API_KEY (or AWS credentials for Bedrock), optionally BRAVE_API_KEY.Highlighted Details
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.
1 year ago
Inactive
Doriandarko