Skip to content

Conversation

@dmytrostruk
Copy link
Member

Motivation and Context

This PR adds agent-framework-claude package that wraps the Claude Agent SDK to provide Claude agentic capabilities within the Agent Framework.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

@dmytrostruk dmytrostruk self-assigned this Jan 29, 2026
Copilot AI review requested due to automatic review settings January 29, 2026 21:30
@markwallace-microsoft markwallace-microsoft added the documentation Improvements or additions to documentation label Jan 29, 2026
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Jan 29, 2026

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
TOTAL16249202487% 
report-only-changed-files is enabled. No files were changed during this commit :)

Python Unit Test Overview

Tests Skipped Failures Errors Time
3718 221 💤 0 ❌ 0 🔥 1m 7s ⏱️

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for the Claude Agent SDK integration to the Agent Framework by introducing the agent-framework-claude package. It enables developers to use Claude's agentic capabilities (via Claude Code CLI) within the Agent Framework, including tool use, session management, and streaming responses.

Changes:

  • Added new agent-framework-claude package with ClaudeAgent implementation that wraps the Claude Agent SDK
  • Integrated Claude Agent exports into the agent_framework.anthropic namespace for easy access
  • Added comprehensive unit tests covering agent initialization, session management, tool conversion, and streaming
  • Provided 7 sample files demonstrating various Claude Agent features (basic usage, tools, permissions, MCP, sessions)

Reviewed changes

Copilot reviewed 19 out of 20 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
python/uv.lock Added claude-agent-sdk dependency (v0.1.25) and updated package list to include agent-framework-claude
python/pyproject.toml Added agent-framework-claude to workspace members
python/packages/claude/pyproject.toml Package configuration for new agent-framework-claude package with dependencies and build settings
python/packages/claude/agent_framework_claude/__init__.py Package initialization exporting ClaudeAgent, ClaudeAgentOptions, and ClaudeAgentSettings
python/packages/claude/agent_framework_claude/_agent.py Core ClaudeAgent implementation with session management, tool conversion, and streaming support
python/packages/claude/agent_framework_claude/_settings.py Settings class for Claude Agent configuration via environment variables
python/packages/claude/tests/test_claude_agent.py Comprehensive unit tests (709 lines) covering all agent functionality
python/packages/core/agent_framework/anthropic/__init__.py Updated lazy loading to include Claude Agent exports
python/packages/core/agent_framework/anthropic/__init__.pyi Added type stubs for Claude Agent exports
python/samples/getting_started/agents/anthropic/*.py Seven sample files demonstrating Claude Agent usage patterns
python/samples/getting_started/agents/anthropic/README.md Updated documentation with Claude Agent examples and environment variables
python/packages/claude/LICENSE MIT license file for the package
python/packages/claude/README.md Package readme with installation instructions
Comments suppressed due to low confidence (1)

python/packages/claude/agent_framework_claude/_agent.py:219

  • The type annotation should use AgentMiddlewareTypes instead of Middleware for consistency with other agent implementations in the codebase. See python/packages/github_copilot/agent_framework_github_copilot/_agent.py:148.
        middleware: Sequence[Middleware] | None = None,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants