GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — ContainerCodeExecutorOptions | ADK for TypeScript: API Reference - v2.5.0

  • ContainerCodeExecutorOptions

Interface ContainerCodeExecutorOptions

Options for ContainerCodeExecutor.

interface ContainerCodeExecutorOptions {
    baseUrl?: string;
    docker?: Dockerode;
    dockerPath?: string;
    image?: string;
    maxContainers?: number;
    networkEnabled?: boolean;
    timeoutSeconds?: number;
}
  • Defined in core/src/code_executors/container_code_executor.ts:39

Properties

OptionalbaseUrl

baseUrl?: string

Optional base url of a user-hosted Docker daemon (e.g. tcp://host:2375).

  • Defined in core/src/code_executors/container_code_executor.ts:41

Optionaldocker

docker?: Dockerode

Injected Docker client, primarily for testing so unit tests never touch a real Docker daemon. Defaults to a new client built from baseUrl.

  • Defined in core/src/code_executors/container_code_executor.ts:80

OptionaldockerPath

dockerPath?: string

Path to a directory containing a Dockerfile. If set, the image is built from it instead of using a prebuilt tag. Either image or dockerPath must be set.

  • Defined in core/src/code_executors/container_code_executor.ts:53

Optionalimage

image?: string

Tag of the predefined or custom image to run on the container. Either image or dockerPath must be set. Defaults to adk-code-executor:latest when only dockerPath is given.

  • Defined in core/src/code_executors/container_code_executor.ts:47

OptionalmaxContainers

maxContainers?: number

Maximum number of session containers to keep running concurrently. When exceeded, the least recently used idle session container is stopped and evicted. A container that is running code is never evicted, so the count can exceed the limit until that run ends. Must be a positive integer.

  • Defined in core/src/code_executors/container_code_executor.ts:75

OptionalnetworkEnabled

networkEnabled?: boolean

Start the container with networking enabled. Defaults to false so untrusted, model-generated code cannot reach the network (the cloud metadata endpoint, internal services, or exfiltration destinations).

  • Defined in core/src/code_executors/container_code_executor.ts:59

OptionaltimeoutSeconds

timeoutSeconds?: number

Wall-clock timeout in seconds for a single execution. Must be greater than 0; defaults to 300. Each session runs in its own long-lived container, so an unbounded run (e.g. a loop emitted by the model) would burn that container's CPU for every later call in the same session. Raise it rather than remove it for a computation that legitimately runs longer.

  • Defined in core/src/code_executors/container_code_executor.ts:67
Properties
baseUrldockerdockerPathimagemaxContainersnetworkEnabledtimeoutSeconds
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.