CreateEnvironmentRequest: {
    custom_config?: { [k: string]: any };
    env?: { [k: string]: string | EnvVar };
    from_environment?: string;
    mode?: EnvironmentMode;
    network?:
        | EnvironmentNetworkEgressAllowlist
        | CreateEnvironmentRequestNetworkEnum;
    sources?: Source[];
    system_instruction?: string;
}

Request for creating an environment.

Type declaration

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

    Optional. Arbitrary customer-defined JSON configuration passed through

    to the self-hosted environment poller. Only supported when mode is SELF_HOSTED.

  • Optionalenv?: { [k: string]: string | EnvVar }

    Environment variables to set in the sandbox environment.

  • Optionalfrom_environment?: string

    Optional. The source environment to copy/fork from.

    Format: environments/{environment_id} or {environment_id}. When specified, sources and env must be empty.

  • Optionalmode?: EnvironmentMode

    The compute lifecycle mode for an environment.

  • Optionalnetwork?: EnvironmentNetworkEgressAllowlist | CreateEnvironmentRequestNetworkEnum

    Network configuration for the environment.

  • Optionalsources?: Source[]

    Sources to be mounted into the environment.

  • Optionalsystem_instruction?: string

    Optional. System instruction applied to interactions running in this

    environment. Only supported for SELF_HOSTED environments, where it is recommended.