Table of Contents

Class AgentEnvironments

Namespace
JD.AI.Core.Agents
Assembly
JD.AI.Core.dll

Describes which environment scope an agent definition belongs to. Environments form a promotion pipeline: Dev → Staging → Production.

public static class AgentEnvironments
Inheritance
AgentEnvironments
Inherited Members

Fields

All

Ordered environments from lowest to highest.

public static readonly IReadOnlyList<string> All

Field Value

IReadOnlyList<string>

Dev

public const string Dev = "dev"

Field Value

string

Prod

public const string Prod = "prod"

Field Value

string

Staging

public const string Staging = "staging"

Field Value

string

Methods

IsKnown(string?)

Returns whether the supplied environment is one of the supported values.

public static bool IsKnown(string? env)

Parameters

env string

Returns

bool

NextAfter(string)

Returns the next environment in the promotion chain, or null.

public static string? NextAfter(string env)

Parameters

env string

Returns

string

Normalize(string, string)

Normalizes a supported environment name to its canonical lowercase form.

public static string Normalize(string env, string paramName = "environment")

Parameters

env string
paramName string

Returns

string