Table of Contents

Class InteractionEnvironment

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A remote sandbox environment configuration for agent interactions.

public sealed class InteractionEnvironment
Inheritance
InteractionEnvironment
Inherited Members
Extension Methods

Properties

Env

Environment variables. Each value is a string or an object {"value": "..."} / {"credential": "credential-id"}.

[JsonPropertyName("env")]
public Dictionary<string, JsonNode>? Env { get; set; }

Property Value

Dictionary<string, JsonNode>

EnvironmentId

Reuse an existing environment by ID.

[JsonPropertyName("environment_id")]
public string? EnvironmentId { get; set; }

Property Value

string

Network

Network configuration: the string "disabled" or an object {"allowlist": [{"domain": "...", "credential": "...", "transform": {...}}]}.

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

Property Value

JsonNode

Sources

Sources to mount into the environment.

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

Property Value

List<InteractionEnvironmentSource>

Type

The environment type; always remote.

[JsonPropertyName("type")]
public string? Type { get; set; }

Property Value

string