Python: feat: Add Agent Framework to A2A bridge support#2403
Python: feat: Add Agent Framework to A2A bridge support#2403Shubham-Kumar-2000 wants to merge 16 commits intomicrosoft:mainfrom
Conversation
- Implement A2A event adapter for converting agent messages to A2A protocol - Add A2A execution context for managing agent execution state - Implement A2A executor for running agents in A2A environment - Add comprehensive unit tests for event adapter, execution context, and executor - Update agent framework core A2A module exports and type stubs - Integrate thread management utilities for async execution - Add getting started sample for A2A agent framework integration - Update dependencies in uv.lock This integration enables agent framework agents to communicate and execute within the A2A (Agent to Agent) infrastructure.
…rage in A2A executor tests
- Reordered imports in various files for consistency and clarity. - Updated `__all__` definitions to maintain a consistent order across modules. - Simplified method signatures by removing unnecessary line breaks. - Enhanced readability by adjusting formatting in several sections. - Removed redundant comments and example scenarios in the execution context. - Improved handling of agent messages in the event adapter. - Added type hints for better clarity and type checking. - Cleaned up test cases for better organization and readability.
- Deleted the test file for A2aExecutionContext as it is no longer needed. - Updated A2aExecutor tests to remove dependencies on A2aExecutionContext and adjusted method calls accordingly. - Modified event adapter tests to use ChatMessage instead of AgentRunResponseUpdate. - Removed A2aExecutionContext from imports in agent_framework.a2a module and updated type hints accordingly.
eavanvalkenburg
left a comment
There was a problem hiding this comment.
I like the idea behind this, but there are some major issues with the implementation, especially the addition of the AgentThreadStore, please discuss that further with us.
- Updated test cases to use A2AExecutor instead of A2aExecutor for consistency. - Removed mock_event_adapter fixture and related tests as A2aEventAdapter is deprecated. - Consolidated event handling tests into TestA2AExecutorEventAdapter. - Adjusted imports in various files to reflect the removal of deprecated components. - Ensured all references to A2aExecutor are updated to A2AExecutor across the codebase.
|
Hi @eavanvalkenburg thanks for the review. I have further simplified the code for this feature and have addressed most of you review comments. Regarding your major concern around Do let me know if any other changes are required. |
|
I have successfully addressed all mentioned review comments. |
|
@Shubham-Kumar-2000 we have redone the threads, now called sessions, and the context providers,please update if you can! |
Sure @eavanvalkenburg give me sometime let me go through the changes. |
…nto agent_framework_to_a2a
Motivation and Context
This integration enables agent framework agents to communicate and execute as a A2A hosted agent server.
Description
Contribution Checklist