8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58e07ca commit 913d771Copy full SHA for 913d771
src/google/adk/a2a/converters/part_converter.py
@@ -20,9 +20,20 @@
20
21
import json
22
import logging
23
+import sys
24
from typing import Optional
25
-from a2a import types as a2a_types
26
+try:
27
+ from a2a import types as a2a_types
28
+except ImportError as e:
29
+ if sys.version_info < (3, 10):
30
+ raise ImportError(
31
+ 'A2A Tool requires Python 3.10 or above. Please upgrade your Python'
32
+ ' version.'
33
+ ) from e
34
+ else:
35
+ raise e
36
+
37
from google.genai import types as genai_types
38
39
from ...utils.feature_decorator import working_in_progress
0 commit comments