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

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

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

anthropics/claude-agent-sdk-python

0
View on GitHub↗
4,885 星标·646 分支·Python·mit·7 次浏览

Claude Agent Sdk Python

Claude Agent SDK is a Python library from Anthropic for building AI agents that use Claude’s tool‑calling, streaming, and session‑management capabilities. It provides a structured framework for intercepting and logging every tool call an agent makes, managing conversation sessions across multiple turns, and controlling which tools the agent is allowed to invoke through configurable permission rules.

The SDK distinguishes itself with middleware‑driven tool interception that lets developers block, modify, or require approval for tool calls before or after execution. A permission policy engine evaluates each tool request against allowlists, deny patterns, and baseline permission modes—automatically approving, denying, or delegating decisions. Session lifecycle hooks fire custom code at start, stop, or specific conversation events, giving fine‑grained control over state and cleanup.

Beyond governance, the SDK supports real‑time streaming of agent responses, both for prompts and tool results, enabling incremental processing before a full reply completes. Developers can define custom tools with typed JSON schemas that the agent can discover and invoke, and run interactive sessions with custom extensions that include lifecycle hooks. An in‑process MCP server and a lightweight local server allow external clients to discover and call tools from the same process.

Features

  • Claude Integration Frameworks - Delivers a comprehensive Python SDK for building Claude-based agents with tool governance, streaming, and lifecycle management.
  • Typed JSON Schemas - Provides typed JSON schema definitions for custom tools that agents automatically discover and invoke.
  • Tool Access Controls - Controls agent tool access through allowlists and permission modes for automatic approval or denial.
  • Agent Response Streamers - Streams agent responses incrementally for real-time processing.
  • Agent Governance - Intercepts, logs, and modifies tool calls to enforce governance policies.
  • Cross-Session Conversation Memories - Persists context across exchanges to continue conversations with memory.
  • In-Process MCP Server Implementations - Runs an in-process MCP server to expose tools to external clients.
  • Agent Response Streams - Ships streaming agent response capabilities for real-time display and progressive processing of prompts and results.
  • Tool Call Interception Middleware - Passes tool calls through a middleware chain that can block, modify, or approve execution.
  • Agent Workflow Interception - Middleware hooks intercept and modify AI agent tool calls before or after execution.
  • Streaming Response Architectures - Streams agent response tokens incrementally before full reply completes.
  • Tool Permission Engines - Evaluates tool access against allowlists, deny patterns, and permission modes.
  • Allowlist and Deny Rule Middleware - Implements middleware-based tool permission control with allowlists, deny patterns, and approval delegation.
  • Agent Session Lifecycle Hooks - Ships session lifecycle hooks that fire custom code at agent session start, stop, and conversation events.
  • Agent Tool Interception - Ships a library for intercepting and gating AI agent tool calls with pluggable middleware chains.
  • Lifecycle Hooks - Attaches lifecycle hooks to register callbacks at specific conversation phases.
  • MCP Tool Call Loggers - Logs all tool call activity via MCP for auditing, debugging, and compliance.
  • Custom Extension Integrations - Runs interactive sessions with custom extensions in-process, supporting lifecycle hooks.
  • Tool Allow and Deny Patterns - Defines pattern-based allow and deny rules that automatically approve or block specific agent tool requests.
  • Custom Tool Definitions - Defines custom tools as functions with typed schemas and descriptions for callable use.
  • Tool Schema Definitions - Defines custom tools using JSON Schema for typed parameters and descriptions.
  • One-Shot Query Execution - Sends one-off queries to new sessions without maintaining state.
  • Real-Time Text Streaming - Streams messages in real time for incremental input and output.
  • Incremental Response Clients - Provides a client that streams incremental agent responses and tool results for real-time consumption.
  • Agent Permission Modes - Sets permission modes that select baseline approval policies for all agent tool requests.
  • Infrastructure and SDKs - Official SDK for building agents with path management and integration.

Star 历史

anthropics/claude-agent-sdk-python 的 Star 历史图表anthropics/claude-agent-sdk-python 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

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

Start searching with AI

Claude Agent Sdk Python 的开源替代方案

相似的开源项目,按与 Claude Agent Sdk Python 的功能重合度排序。
  • atmosphere/atmosphereAtmosphere 的头像

    Atmosphere/atmosphere

    3,780在 GitHub 上查看↗

    Atmosphere is a Java-based framework for building and coordinating AI agents. It provides a real-time transport layer for streaming data via WebSockets, SSE, gRPC, and WebTransport, alongside a multi-agent orchestration framework for managing agent fleets through sequential, parallel, and graph-based execution workflows. The project features a durable workflow engine that persists agent state as snapshots, allowing long-running tasks to survive system restarts and incorporate human-in-the-loop approvals. It also implements Model Context Protocol servers to expose tools, resources, and prompt

    Javaacpagentic-aiembabel
    在 GitHub 上查看↗3,780
  • mervinpraison/praisonaiMervinPraison 的头像

    MervinPraison/PraisonAI

    5,592在 GitHub 上查看↗

    PraisonAI is an autonomous AI agent platform that coordinates multiple LLM-powered agents for research, planning, and execution of complex workflows. It functions as a multi-agent orchestration framework, a workflow builder, and a Model Context Protocol server, while also providing retrieval-augmented generation through vector knowledge bases. Agents can interact via CLI, web, or standardized protocols with sandboxed code execution. The platform distinguishes itself with a rich set of agent communication protocols, including A2A, REST, WebSocket, voice and telephony integration, and MCP, allo

    Pythonagentsaiai-agent-framework
    在 GitHub 上查看↗5,592
  • livekit/agentslivekit 的头像

    livekit/agents

    9,379在 GitHub 上查看↗

    This project is a framework for developing multimodal AI agents that function as programmable participants in real-time communication rooms. It enables the construction of agents that can see, hear, and speak by integrating speech-to-text, large language models, and text-to-speech pipelines to facilitate low-latency, natural conversations. The system is distinguished by its advanced orchestration of real-time media and conversational flow, including support for full-duplex speech, preemptive response generation, and sophisticated interruption management. It further differentiates itself throu

    Pythonagentsaiopenai
    在 GitHub 上查看↗9,379
  • letta-ai/lettaletta-ai 的头像

    letta-ai/letta

    21,168在 GitHub 上查看↗

    Letta is a framework for building, deploying, and managing autonomous AI agents that maintain persistent state across long-term interactions. It provides a comprehensive suite of primitives for defining agents with configurable personas, modular memory blocks, and tool-use capabilities, enabling them to retain user preferences and conversation history over extended sessions. The platform distinguishes itself through its advanced memory management and orchestration capabilities. It allows agents to autonomously update their own memory, perform retrieval-augmented generation, and coordinate com

    Pythonaiai-agentsllm
    在 GitHub 上查看↗21,168
查看 Claude Agent Sdk Python 的所有 30 个替代方案→

常见问题解答

anthropics/claude-agent-sdk-python 是做什么的?

Claude Agent SDK is a Python library from Anthropic for building AI agents that use Claude’s tool‑calling, streaming, and session‑management capabilities. It provides a structured framework for intercepting and logging every tool call an agent makes, managing conversation sessions across multiple turns, and controlling which tools the agent is allowed to invoke through configurable permission rules.

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

anthropics/claude-agent-sdk-python 的主要功能包括:Claude Integration Frameworks, Typed JSON Schemas, Tool Access Controls, Agent Response Streamers, Agent Governance, Cross-Session Conversation Memories, In-Process MCP Server Implementations, Agent Response Streams。

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

anthropics/claude-agent-sdk-python 的开源替代品包括: atmosphere/atmosphere — Atmosphere is a Java-based framework for building and coordinating AI agents. It provides a real-time transport layer… mervinpraison/praisonai — PraisonAI is an autonomous AI agent platform that coordinates multiple LLM-powered agents for research, planning, and… livekit/agents — This project is a framework for developing multimodal AI agents that function as programmable participants in… letta-ai/letta — Letta is a framework for building, deploying, and managing autonomous AI agents that maintain persistent state across… disler/claude-code-hooks-mastery — This project is an extension framework and orchestration system for Claude Code that uses lifecycle hooks to intercept… strands-agents/sdk-python — This is an open-source Python SDK for building and orchestrating production-grade AI agents. It provides a unified…