Skip to content

Commit 3c962ff

Browse files
syangx39ADK Coding Agent Project
authored andcommitted
[08/25] Modify ADK
1 parent 9ec5e8b commit 3c962ff

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,13 @@ extensions = [
139139
"docker>=7.0.0", # For ContainerCodeExecutor
140140
"langgraph>=0.2.60", # For LangGraphAgent
141141
"litellm>=1.75.5", # For LiteLlm class. Currently has OpenAI limitations. TODO: once LiteLlm fix it
142+
"kubernetes>=29.0.0", # For GkeCodeExecutor
142143
"llama-index-readers-file>=0.4.0", # For retrieval using LlamaIndex.
143144
"llama-index-embeddings-google-genai>=0.3.0",# For files retrieval using LlamaIndex.
144145
"lxml>=5.3.0", # For load_web_page tool.
145146
"toolbox-core>=0.1.0", # For tools.toolbox_toolset.ToolboxToolset
146147
]
147148

148-
# For GKE-specific features, primarily the GkeCodeExecutor.
149-
gke = [
150-
"kubernetes>=29.0.0",
151-
]
152-
153149
[tool.pyink]
154150
# Format py files following Google style-guide
155151
line-length = 80

‎src/google/adk/code_executors/__init__.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,14 @@ def __getattr__(name: str):
5353
'ContainerCodeExecutor requires additional dependencies. '
5454
'Please install with: pip install "google-adk[extensions]"'
5555
) from e
56+
elif name == 'GkeCodeExecutor':
57+
try:
58+
from .gke_code_executor import GkeCodeExecutor
59+
60+
return GkeCodeExecutor
61+
except ImportError as e:
62+
raise ImportError(
63+
'GkeCodeExecutor requires additional dependencies. '
64+
'Please install with: pip install "google-adk[extensions]"'
65+
) from e
5666
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")

0 commit comments

Comments
 (0)