refactor: pin crewai-a2a version and move a2a tests to standalone package

Pin crewai-a2a to 1.13.0a6 to match workspace versioning convention.
Move all a2a tests and cassettes from lib/crewai to lib/crewai-a2a,
add crewai-a2a to devtools bump tooling, and update pytest/ruff/mypy configs.
This commit is contained in:
Greyson LaLonde
2026-04-02 04:10:13 +08:00
parent 2ada20e9c6
commit bba48ec9df
21 changed files with 401 additions and 44 deletions

View File

@@ -59,7 +59,11 @@ if _original_from_serialized_response is not None:
request: Any, serialized_response: Any, history: Any = None
) -> Any:
"""Patched version that ensures response._content is properly set."""
response = _original_from_serialized_response(request, serialized_response, history)
if not _original_from_serialized_response:
return None
response = _original_from_serialized_response(
request, serialized_response, history
)
# Explicitly set _content to avoid ResponseNotRead errors
# The content was passed to the constructor but the mocked read() prevents
# proper initialization of the internal state
@@ -255,7 +259,7 @@ def vcr_cassette_dir(request: Any) -> str:
for parent in test_file.parents:
if (
parent.name in ("crewai", "crewai-tools", "crewai-files")
parent.name in ("crewai", "crewai-tools", "crewai-files", "crewai-a2a")
and parent.parent.name == "lib"
):
package_root = parent