Files
crewAI/lib
Devin AI 4f0b6f6427 feat(a2a): add async execution support for A2A delegation
This commit adds async versions of A2A functions to support calling from
async contexts without creating new event loops.

Changes:
- Add afetch_agent_card() async function in utils.py
- Add aexecute_a2a_delegation() async function in utils.py
- Add async helper functions in wrapper.py:
  - _afetch_card_from_config()
  - _afetch_agent_cards_concurrently()
  - _aexecute_task_with_a2a()
  - _ahandle_agent_response_and_continue()
  - _adelegate_to_a2a()
- Update wrap_agent_with_a2a_instance() to wrap both execute_task and
  aexecute_task methods
- Add comprehensive tests for async A2A execution

Fixes #4162

Co-Authored-By: João <joao@crewai.com>
2025-12-30 07:54:43 +00:00
..
2025-12-19 15:47:00 -05:00
2025-12-19 15:47:00 -05:00