> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment

## Supported Types

###

```go theme={null}
environment := components.CreateEnvironmentStr(string{/* values here */})
```

### ArmorEnvironmentEntry

```go theme={null}
environment := components.CreateEnvironmentArmorEnvironmentEntry(components.ArmorEnvironmentEntry{/* values here */})
```

## Union Discrimination

Use the `Type` field to determine which variant is active, then access the corresponding field:

```go theme={null}
switch environment.Type {
	case components.EnvironmentTypeStr:
		// environment.Str is populated
	case components.EnvironmentTypeArmorEnvironmentEntry:
		// environment.ArmorEnvironmentEntry is populated
}
```
