File tree Expand file tree Collapse file tree
src/google/adk/code_executors Expand file tree Collapse file tree Original file line number Diff line number Diff 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
155151line-length = 80
Original file line number Diff line number Diff 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 } '" )
You can’t perform that action at this time.
0 commit comments