Class AgentEnvironment
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
A sandbox environment (/environments) used by agent interactions, with its mounted sources and
workspace files. Named AgentEnvironment to avoid clashing with Environment.
public sealed class AgentEnvironment
- Inheritance
-
AgentEnvironment
- Inherited Members
- Extension Methods
Properties
Created
Creation time (ISO 8601).
[JsonPropertyName("created")]
public string? Created { get; set; }
Property Value
ExtensionData
Fields this SDK does not model yet.
[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }
Property Value
FileCount
The number of files in the workspace.
[JsonPropertyName("file_count")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString|JsonNumberHandling.WriteAsString)]
public long? FileCount { get; set; }
Property Value
- long?
Id
The environment ID.
[JsonPropertyName("id")]
public string? Id { get; set; }
Property Value
LastAccessed
Last access time (ISO 8601).
[JsonPropertyName("last_accessed")]
public string? LastAccessed { get; set; }
Property Value
Network
Network configuration: the string "disabled" or an egress allowlist object
{"allowlist": [...]}.
[JsonPropertyName("network")]
public JsonNode? Network { get; set; }
Property Value
SizeBytes
The total size of the workspace in bytes.
[JsonPropertyName("size_bytes")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString|JsonNumberHandling.WriteAsString)]
public long? SizeBytes { get; set; }
Property Value
- long?
Sources
The sources mounted into the environment.
[JsonPropertyName("sources")]
public List<InteractionEnvironmentSource>? Sources { get; set; }
Property Value
Status
The environment status (see EnvironmentStatuses).
[JsonPropertyName("status")]
public string? Status { get; set; }
Property Value
Updated
Last update time (ISO 8601).
[JsonPropertyName("updated")]
public string? Updated { get; set; }