Code Executor Questions #3366
Replies: 1 comment
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: ADK's code executors run your code in isolated, sandboxed environments. The Hello! Here are the answers to your questions about ADK's code execution tools. 1. Code Execution ArchitectureThe code execution happens in a secure, isolated sandbox. The specific architecture depends on the executor you are using:
2. TimeoutYes, there are timeouts for code execution:
3. Feeding Files to the ExecutorYes, you can feed files to the code execution environment without passing their content through the LLM, which avoids issues with context windows and token limits.
4. Permissions and ImpersonationThe code execution sandbox does not impersonate the agent or automatically inherit its permissions. The sandboxes are designed with a "no network" default to prevent data exfiltration and limit access to other cloud resources. [3] The permissions required for the agent's service account are for managing the execution environment itself (e.g., creating the sandbox or the GKE Job), not for the code running inside the sandbox to access things like Cloud Storage buckets. [1, 2] If the code within the sandbox needs to access other Google Cloud services, you would need to configure separate, explicit authentication for that tool. 5.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question on Code Execution tool(s):
Beta Was this translation helpful? Give feedback.
All reactions