Skip to main content

Module code_executors

Module code_executors 

Source
Expand description

Code execution infrastructure — sandboxed code execution for agents.

Re-exports§

pub use base::CodeExecutor;
pub use base::CodeExecutorError;
pub use built_in::BuiltInCodeExecutor;
pub use container::ContainerCodeExecutor;
pub use container::ContainerCodeExecutorConfig;
pub use types::CodeExecutionInput;
pub use types::CodeExecutionResult;
pub use types::CodeFile;
pub use unsafe_local::UnsafeLocalCodeExecutor;
pub use vertex_ai::VertexAiCodeExecutor;
pub use vertex_ai::VertexAiCodeExecutorConfig;

Modules§

base
Base trait and error types for code execution.
built_in
Built-in code executor using Gemini’s native code execution.
container
Container-based code executor using Docker. Container-based code executor — runs code in Docker containers.
types
Types used by code executors (input, output, files).
unsafe_local
Unsafe local code executor (no sandboxing). Unsafe local code executor — runs code directly on the host.
utils
Utility functions for extracting code blocks and building parts.
vertex_ai
Vertex AI managed code executor. Vertex AI code executor — runs code via Vertex AI Code Execution API.