Environment: {
    created?: string;
    custom_config?: { [k: string]: any };
    environment_key?: string;
    file_count?: string;
    id: string;
    last_accessed?: string;
    mode?: EnvironmentMode;
    network?: EnvironmentNetworkEgressAllowlist | EnvironmentNetworkEnum;
    size_bytes?: string;
    sources?: Source[];
    status?: Status;
    updated?: string;
}

An execution environment for an agent.

Type declaration

  • Optionalcreated?: string

    Output only. The time at which the environment was created in ISO 8601 format

    (YYYY-MM-DDThh:mm:ssZ).

  • Optionalcustom_config?: { [k: string]: any }

    Output only. Arbitrary customer-defined JSON configuration passed through to the

    self-hosted environment poller. Only populated for self_hosted environments when configured.

  • Optionalenvironment_key?: string

    Output only. Secret token generated upon environment creation for self_hosted

    environments. Used by the self-hosted sandbox daemon to authenticate polling and streaming requests. Only returned when the environment is created; omitted when getting or listing environments later.

  • Optionalfile_count?: string

    Output only. The number of files in the environment, output only.

  • id: string

    Required. Output only. The ID of the environment.

  • Optionallast_accessed?: string

    Output only. The time at which the environment was last accessed in ISO 8601 format

    (YYYY-MM-DDThh:mm:ssZ).

  • Optionalmode?: EnvironmentMode

    The compute lifecycle mode for an environment.

  • Optionalnetwork?: EnvironmentNetworkEgressAllowlist | EnvironmentNetworkEnum

    Network configuration for the environment.

  • Optionalsize_bytes?: string

    Output only. The total size of the environment files in bytes, output only.

  • Optionalsources?: Source[]

    Sources to be mounted into the environment.

  • Optionalstatus?: Status

    Output only. The status of the environment container.

  • Optionalupdated?: string

    Output only. The time at which the environment was last updated in ISO 8601 format

    (YYYY-MM-DDThh:mm:ssZ).