Skip to content

AgentConfig

Namespace: E2E

public sealed class AgentConfig

One entry of agents. Upstream model and judge are AI SDK instances; here they are model ids for Provider, which share BaseUrl and ApiKeyEnv. Each entry starts from the defaults; none inherits another’s values.

Inheritance: object

View source

public const string DefaultProvider = "openai"

Value: string

View source

public string? ApiKeyEnv { get; init; }

The environment variable holding the key. Unset, the one the provider reads, such as ANTHROPIC_API_KEY.

Value: string

View source

public string? BaseUrl { get; init; }

The API root. Unset, the provider’s own; for azure it is built from AZURE_RESOURCE_NAME.

Value: string

View source

public string? Context { get; init; }

Project context told to every model call, at most 16384 UTF-8 bytes.

Value: string

View source

public string? Judge { get; init; }

The model id that judges assert, waitFor, and extract. Unset, the judge is Model.

Value: string

View source

public TimeSpan JudgmentTimeout { get; init; }

Value: TimeSpan

View source

public int? MaxModelCalls { get; init; }

1 through 100. Null when the entry leaves it out: MaxModelCalls applies, and Explore sets its own.

Value: int?

View source

public int? MaxSteps { get; init; }

1 through 100. Null when the entry leaves it out: MaxSteps applies, and Explore sets its own.

Value: int?

View source

public string? Model { get; init; }

Value: string

View source

public string Provider { get; init; }

Who serves Model and Judge. One of Providers; openai by default.

Value: string

View source

public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; init; }

Provider options by provider. Each client adds the entry under its own key to its request body.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public static IReadOnlyList<string> Providers { get; }

The provider values: API keys (openai, openai-responses, azure, anthropic, google, bedrock, xai, openrouter, gateway, openai-compatible) and subscription logins (chatgpt, copilot, grok, opencode-console).

Value: IReadOnlyList<string>

View source

public string? System { get; init; }

Text appended to the act rules. Judges never see it.

Value: string

View source

public IAgentModel? CreateJudge()

The model for Judge, or null when no judge is set.

Returns: IAgentModel

View source

public IAgentModel? CreateModel()

The model for Model, or null when no model is set.

Returns: IAgentModel

View source

public AgentOptions CreateOptions()

The AgentOptions this entry describes, with its models created.

Returns: AgentOptions

View source