Table of Contents

Class CreateEnvironmentRequest

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Request body of POST /environments.

public sealed class CreateEnvironmentRequest
Inheritance
CreateEnvironmentRequest
Inherited Members
Extension Methods

Properties

ExtensionData

Additional body fields to send (for API features this SDK does not model yet).

[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }

Property Value

Dictionary<string, JsonElement>

FromEnvironment

Clone an existing environment (environments/{id} or {id}). When set, Sources must be empty.

[JsonPropertyName("from_environment")]
public string? FromEnvironment { get; set; }

Property Value

string

Network

Network configuration: "disabled" (see EnvironmentNetworkModes) or an egress allowlist object {"allowlist": [{"domain": "...", "credential": "..."}]}.

[JsonPropertyName("network")]
public JsonNode? Network { get; set; }

Property Value

JsonNode

Sources

Sources to mount (GCS buckets, inline files, repositories, skill registries).

[JsonPropertyName("sources")]
public List<InteractionEnvironmentSource>? Sources { get; set; }

Property Value

List<InteractionEnvironmentSource>