-
Notifications
You must be signed in to change notification settings - Fork 914
Feature/claude agent sdk integration #652
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
Open
y-cruce
wants to merge
21
commits into
ag-ui-protocol:main
Choose a base branch
from
y-cruce:feature/claude-agent-sdk-integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/claude agent sdk integration #652
y-cruce
wants to merge
21
commits into
ag-ui-protocol:main
from
y-cruce:feature/claude-agent-sdk-integration
+28,145
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updated the README to reflect changes in supported integrations and resources.
Updated image link in README and added new line before Getting Started section.
* Add state snapshot passthrough tests * Update complex event translator test for snapshot
- fixes ag-ui-protocol#431 Co-authored-by: Ran Shemtov <ranst91@gmail.com>
…g-ui-protocol#648) * fix: dump safe json whenever string is required in lg-python fastapi * chore: release agui langgraph fastapi 0.0.19
…e introduction (ag-ui-protocol#617) * update the docs and add the frameworks, protocols, and clients * adjust framework titles & header styling * Change the title of frameworks to integrations, add links to demos --------- Co-authored-by: John Rae-Grant <john@theartofwork.com>
…d update example environment files for Claude Agent SDK
…ng deprecated options and clarifying third-party service configuration
…ackup example environment file for Claude Agent SDK
- Resolved .gitignore conflict, keeping .env.local rules - Restored pnpm-lock.yaml from origin/main 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Restore apps/dojo/e2e/pnpm-lock.yaml - Restore docs/pnpm-lock.yaml - Restore integrations/langgraph/typescript/examples/pnpm-lock.yaml 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
Hey @y-cruce, I see there are a lot of tests, but did you test this fully against the dojo and add the SDK to the dojo? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #439
Add Claude Agent SDK Integration
Summary
This PR adds comprehensive integration support for Anthropic's Claude Agent SDK with the AG-UI Protocol, enabling Claude agents to seamlessly work within AG-UI applications. The integration includes both Python and TypeScript implementations, providing a complete bridge between Claude Agent SDK and the AG-UI Protocol.
Related Issue
Closes #439
Changes
Python Integration (
integrations/claude-agent-sdk/python/)Core Components:
ClaudeAgent: Main orchestrator managing agent lifecycle and session stateEventTranslator: Converts Claude SDK responses to AG-UI protocol events (16 standard event types)SessionManager: Singleton pattern for centralized session control with automatic cleanupToolAdapter: Handles tool format conversion between AG-UI and Claude SDK formatsExecutionState: Tracks background Claude executions with event queue managementFeatures:
query()methodTesting:
TypeScript Integration (
integrations/claude-agent-sdk/typescript/)Core Components:
ClaudeAgent: ExtendsAbstractAgentwith Claude SDK integrationEventTranslator: Converts Claude SDK messages to AG-UI eventsSessionManager: Manages persistent sessions with automatic cleanupToolAdapter: Handles tool format conversionExecutionState: Manages async execution state and event queuesFeatures:
Testing:
Architecture
The integration follows a clean architecture pattern:
Key Design Decisions
ClaudeSDKClient) and stateless mode (usingquery()method)EventTranslatorensure thread safetyRunErrorEventfor various failure scenariosTesting
Documentation
Breaking Changes
None - This is a new integration addition.
Checklist