awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
anthropics avatar

anthropics/anthropic-sdk-python

0
View on GitHub↗
2,795 星标·459 分支·Python·mit·6 次浏览

Anthropic Sdk Python

This is a Python SDK for interacting with large language models via API. It serves as a client library to generate text, process messages, and manage conversational states, while providing a specialized interface for connecting to models hosted across different cloud infrastructure providers.

The SDK includes a tool-calling framework that maps Python functions to JSON schemas, allowing models to execute external tools. It also features a built-in token counting utility to estimate input size before transmission and a server-sent events client for receiving model tokens in real time.

The library covers a broad range of capabilities, including asynchronous batch processing for large-scale prompt handling, automated pagination of API results, and file upload management. It also implements traffic management through automatic request retries with exponential backoff to handle transient network errors and rate limits.

Features

  • LLM Application Development - Provides standardized interfaces for interacting with Claude models to build generative AI applications in Python.
  • Text Generation APIs - Provides the primary interface for interacting with language models to generate text, chat, and code completions.
  • AI Agent Tool Integrations - Interfaces that connect language models to external Python functions for functional task execution.
  • Cloud Model Connectivity - Provides specialized authentication and endpoint handling for connecting to machine learning models across different cloud providers.
  • Cloud Model Connectors - Acts as an interface for connecting to machine learning models hosted across different cloud infrastructure providers.
  • Custom Provider Implementations - Provides specialized client implementations to support different cloud hosting environments and authentication methods.
  • API Client SDKs - Serves as a comprehensive Python client library for interacting with large language models via API.
  • Provider-Specific Configurations - Specializes base URLs and authentication logic to support various cloud hosting environments for the same model.
  • Tool-Calling Frameworks - Provides a framework for mapping Python functions to JSON schemas, enabling models to execute external tools.
  • Tool Calling Integration Frameworks - Provides a framework to map Python functions to JSON schemas, enabling models to execute external tools through structured output.
  • Tool-Use Integrations - Connects AI models to external Python functions, enabling the model to perform actions and process data.
  • Model Provider Implementations - Offers specialized interfaces for connecting to language models hosted across different cloud infrastructure providers.
  • Chat Message Sending APIs - Provides a programmatic API for sending messages within conversational sessions to a language model.
  • Token Streaming - Implements real-time delivery of AI model generated tokens using server-sent events.
  • Tool Schema Mappings - Translates Python function signatures into JSON schemas to define tool capabilities for the language model.
  • Decorator-Based Tool Registrations - Allows Python functions to be registered as tools via decorators, enabling the model to execute external capabilities.
  • Asynchronous Batch Processing - Submits arrays of requests for asynchronous background processing and retrieves aggregated results.
  • Batch Processors - Provides a pipeline for submitting large arrays of requests for asynchronous background processing against model APIs.
  • Enterprise AI Infrastructure - Implements production-grade infrastructure for managing model connections with built-in resilience and error handling.
  • Pre-Request Token Analysis - Analyzes text input using a local tokenizer to estimate tokens before sending data to the server.
  • High Volume AI Processing - Handles high volumes of model requests through asynchronous batch processing and automated pagination.
  • LLM Token Counters - Provides utilities for counting tokens in message payloads to estimate input usage and budget prompt size.
  • Token Context Limiting - Manages input token counts and file uploads to ensure prompts stay within model context window limits.
  • Text Tokenization Utilities - Analyzes raw text input to estimate the number of tokens used within a model's context window.
  • Batch Processing Clients - Provides a client for submitting and monitoring large groups of asynchronous requests for background execution.
  • CLI Token Counters - Calculates the number of tokens in a text string to estimate input size and verify model limits.
  • Input Token Estimators - Analyzes input text using a local tokenizer to estimate token counts before transmitting data.
  • Request Retries - Automatically retries failed network requests using exponential backoff to handle transient errors and rate limits.
  • File Uploaders - Provides components for transmitting files to remote servers using file paths or binary data.
  • Incremental Response Clients - Implements a client that streams incremental model responses in real time using server-sent events.
  • Exponential Backoff Retries - Implements an exponential backoff strategy to automatically retry failed network requests and handle rate limits.
  • API Error Handling Patterns - Implements client-side error handling patterns to catch connection issues, rate limits, and HTTP errors.
  • LLM Providers and Models - Official client library for Anthropic API services.

Star 历史

anthropics/anthropic-sdk-python 的 Star 历史图表anthropics/anthropic-sdk-python 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

anthropics/anthropic-sdk-python 是做什么的?

This is a Python SDK for interacting with large language models via API. It serves as a client library to generate text, process messages, and manage conversational states, while providing a specialized interface for connecting to models hosted across different cloud infrastructure providers.

anthropics/anthropic-sdk-python 的主要功能有哪些?

anthropics/anthropic-sdk-python 的主要功能包括:LLM Application Development, Text Generation APIs, AI Agent Tool Integrations, Cloud Model Connectivity, Cloud Model Connectors, Custom Provider Implementations, API Client SDKs, Provider-Specific Configurations。

anthropics/anthropic-sdk-python 有哪些开源替代品?

anthropics/anthropic-sdk-python 的开源替代品包括: openai/openai-go — openai-go is an LLM SDK for Go and a client for interacting with OpenAI services. It provides type-safe bindings to… vrsen/agency-swarm — Agency Swarm is a multi-agent orchestration framework and development kit designed to coordinate specialized AI agents… berriai/litellm — LiteLLM is a unified gateway and proxy server designed to centralize access to over one hundred language model… qwenlm/qwen — Qwen is a comprehensive framework for large language model development, serving, and deployment. It provides a… stripe/stripe-node — This is a typed server-side library and payment gateway SDK for integrating Stripe into Node.js applications. It… mervinpraison/praisonai — PraisonAI is an autonomous AI agent platform that coordinates multiple LLM-powered agents for research, planning, and…

Anthropic Sdk Python 的开源替代方案

相似的开源项目,按与 Anthropic Sdk Python 的功能重合度排序。
  • openai/openai-goopenai 的头像

    openai/openai-go

    2,974在 GitHub 上查看↗

    openai-go is an LLM SDK for Go and a client for interacting with OpenAI services. It provides type-safe bindings to generate text, images, and audio via REST endpoints, enabling the integration of large language models and AI assistant orchestration into Go applications. The library serves as an agent orchestration tool for managing stateful conversation threads and autonomous agents with integrated tool calling and file search. It also functions as an asynchronous batch processing client for monitoring large-scale request groups and fine-tuning jobs, alongside a management SDK for controllin

    Go
    在 GitHub 上查看↗2,974
  • vrsen/agency-swarmVRSEN 的头像

    VRSEN/agency-swarm

    3,962在 GitHub 上查看↗

    Agency Swarm is a multi-agent orchestration framework and development kit designed to coordinate specialized AI agents through defined communication patterns and handoffs. It functions as a system for managing agent swarms, providing an API gateway to expose these coordinated collectives as production-ready HTTP endpoints. The project distinguishes itself through its Model Context Protocol integration layer, which connects agents to external data sources and capabilities. It implements specialized orchestration patterns, such as the orchestrator-worker model and role-based delegation, to tran

    Python
    在 GitHub 上查看↗3,962
  • berriai/litellmBerriAI 的头像

    BerriAI/litellm

    50,579在 GitHub 上查看↗

    LiteLLM is a unified gateway and proxy server designed to centralize access to over one hundred language model providers. It provides a standardized API interface that abstracts vendor-specific schemas, allowing developers to interact with diverse models through a single, consistent format. By acting as a central traffic management layer, it enables organizations to route, secure, and govern model interactions across multiple deployments. The platform distinguishes itself through its policy-driven architecture, which uses configuration-based routing to manage traffic distribution, load balanc

    Pythonai-gatewayanthropicazure-openai
    在 GitHub 上查看↗50,579
  • qwenlm/qwenQwenLM 的头像

    QwenLM/Qwen

    21,294在 GitHub 上查看↗

    Qwen is a comprehensive framework for large language model development, serving, and deployment. It provides a complete ecosystem for transformer-based sequence modeling, offering base models alongside specialized tools for instruction-tuned alignment, fine-tuning, and long-context inference. The project is designed to support both research and production environments, enabling users to train, optimize, and host generative models locally or across distributed hardware. The framework distinguishes itself through its focus on high-performance serving and extensibility. It features a high-perfor

    Pythonchineseflash-attentionlarge-language-models
    在 GitHub 上查看↗21,294
  • 查看 Anthropic Sdk Python 的所有 30 个替代方案→