AgentConfig
Namespace: E2E
public sealed class AgentConfigOne 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
Fields
Section titled “Fields”DefaultProvider
Section titled “DefaultProvider”public const string DefaultProvider = "openai"Value: string
Properties
Section titled “Properties”ApiKeyEnv
Section titled “ApiKeyEnv”public string? ApiKeyEnv { get; init; }The environment variable holding the key. Unset, the one the provider reads, such as ANTHROPIC_API_KEY.
Value: string
BaseUrl
Section titled “BaseUrl”public string? BaseUrl { get; init; }The API root. Unset, the provider’s own; for azure it is built from AZURE_RESOURCE_NAME.
Value: string
Context
Section titled “Context”public string? Context { get; init; }Project context told to every model call, at most 16384 UTF-8 bytes.
Value: string
public string? Judge { get; init; }The model id that judges assert, waitFor, and extract. Unset, the judge is Model.
Value: string
JudgmentTimeout
Section titled “JudgmentTimeout”public TimeSpan JudgmentTimeout { get; init; }Value: TimeSpan
MaxModelCalls
Section titled “MaxModelCalls”public int? MaxModelCalls { get; init; }1 through 100. Null when the entry leaves it out: MaxModelCalls applies, and Explore sets its own.
Value: int?
MaxSteps
Section titled “MaxSteps”public int? MaxSteps { get; init; }1 through 100. Null when the entry leaves it out: MaxSteps applies, and Explore sets its own.
Value: int?
public string? Model { get; init; }Value: string
Provider
Section titled “Provider”public string Provider { get; init; }Who serves Model and Judge. One of Providers; openai by default.
Value: string
ProviderOptions
Section titled “ProviderOptions”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>
Providers
Section titled “Providers”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>
System
Section titled “System”public string? System { get; init; }Text appended to the act rules. Judges never see it.
Value: string
Methods
Section titled “Methods”CreateJudge()
Section titled “CreateJudge()”public IAgentModel? CreateJudge()The model for Judge, or null when no judge is set.
Returns: IAgentModel
CreateModel()
Section titled “CreateModel()”public IAgentModel? CreateModel()The model for Model, or null when no model is set.
Returns: IAgentModel
CreateOptions()
Section titled “CreateOptions()”public AgentOptions CreateOptions()The AgentOptions this entry describes, with its models created.
Returns: AgentOptions