-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat: support for claude agent sdk provider #2179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
feat: support for claude agent sdk provider #2179
Conversation
…r and improved the py docs for better dev understanding
Add
|
…and improve environment variable checks - Changed tool references from slug to name in `claude_agent_demo.py` and `provider.py`. - Enhanced error handling for missing environment variables, specifically for `COMPOSIO_API_KEY` and `ANTHROPIC_API_KEY`.
|
bugbot run |
PR SummaryIntroduces a Claude Agent SDK provider that wraps Composio tools for MCP usage, plus a working demo, docs, and packaging.
Written by Cursor Bugbot for commit 1582eb1. This will update automatically on new commits. Configure here. |
Description
This PR adds a new agentic provider for Claude Agent SDK, enabling Composio tools to be used with Claude Agent SDK applications. The implementation follows the established provider pattern used by other agentic providers in the codebase, using the @tool decorator pattern to create Claude Agent SDK-compatible tool definitions. The provider includes proper error handling with pydantic validation error parsing, comprehensive documentation with usage examples, and a complete demo showcasing integration with Gmail Get Profile tool. The implementation uses a factory function pattern to ensure proper closure capture when creating multiple tools dynamically, preventing variable capture issues.
The provider is structured with a helper method _create_tool_function() that encapsulates the tool creation logic, following best practices for code organization and maintainability. A fully functional demo (claude_agent_demo.py) demonstrates the complete integration flow, including MCP server setup, Claude Agent Options configuration, and tool execution. All code has been formatted and linted according to project standards, and the implementation includes comprehensive docstrings with parameter descriptions, return types, and usage examples to aid developer understanding.
Status: Work in Progress - Ready for review and testing