Skip to content

Commit 1ee0623

Browse files
wuliang229copybara-github
authored andcommitted
fix: Update import and version for k8s-agent-sandbox
Renames the imported module from `agentic_sandbox` to `k8s_agent_sandbox` in `gke_code_executor.py` and updates the required version in `pyproject.toml` to `>=0.1.1.post3`. Closes #4883 Co-authored-by: Liang Wu <wuliang@google.com> PiperOrigin-RevId: 885840142
1 parent c26d359 commit 1ee0623

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ extensions = [
158158
"crewai[tools];python_version>='3.11' and python_version<'3.12'", # For CrewaiTool; chromadb/pypika fail on 3.12+
159159
"docker>=7.0.0", # For ContainerCodeExecutor
160160
"kubernetes>=29.0.0", # For GkeCodeExecutor
161-
"k8s-agent-sandbox>=0.1.1.post2", # For GkeCodeExecutor sandbox mode
161+
"k8s-agent-sandbox>=0.1.1.post3", # For GkeCodeExecutor sandbox mode
162162
"langgraph>=0.2.60, <0.4.8", # For LangGraphAgent
163163
"litellm>=1.75.5, <2.0.0", # For LiteLlm class. Currently has OpenAI limitations. TODO: once LiteLlm fix it
164164
"llama-index-readers-file>=0.4.0", # For retrieval using LlamaIndex.

src/google/adk/code_executors/gke_code_executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
from .code_execution_utils import CodeExecutionResult
3131

3232
try:
33-
from agentic_sandbox import SandboxClient
33+
from k8s_agent_sandbox import SandboxClient
3434
except ImportError:
3535
SandboxClient = None
3636

3737
if TYPE_CHECKING:
38-
from agentic_sandbox import SandboxClient
38+
from k8s_agent_sandbox import SandboxClient
3939

4040
# Expose these for tests to monkeypatch.
4141
client = k8s.client

0 commit comments

Comments
 (0)