Class VertexAiCodeExecutor


public final class VertexAiCodeExecutor extends BaseCodeExecutor
A code executor that uses Vertex Code Interpreter Extension to execute code.

Attributes: resourceName: If set, load the existing resource name of the code interpreter extension instead of creating a new one. Format: projects/123/locations/us-central1/extensions/456

Follow https://cloud.google.com/vertex-ai/generative-ai/docs/extensions/code-interpreter for setup.

  • Constructor Details

    • VertexAiCodeExecutor

      public VertexAiCodeExecutor(String resourceName)
      Initializes the VertexAiCodeExecutor.
      Parameters:
      resourceName - If set, load the existing resource name of the code interpreter extension instead of creating a new one. Format: projects/123/locations/us-central1/extensions/456
  • Method Details