Skip to content

AgentOptions

Namespace: E2E

public sealed class AgentOptions

One named agent, as upstream agents.<name>. Each entry starts from the built-in defaults; no agent inherits another’s values. A call picks one with its Agent option.

Inheritance: object

View source

public string? Context { get; init; }

What the app calls things, told to every model call this agent makes, act turns and judgments alike. At most 16384 UTF-8 bytes.

Value: string

View source

public IStepExecutor? Executor { get; init; }

The custom brain act and assert dispatch to, upstream’s executor. Without one, the built-in agent acts. An executor replaces the built-in agent’s prompt and tools, so it cannot be combined with System or Tools. It cannot be written in e2e.config.json: an executor is code.

Value: IStepExecutor

View source

public IAgentModel? Judge { get; init; }

The model that judges assert, waitFor, and extract. Defaults to Model. A judge of its own separates the model that grades a flow from the one that drove it.

Value: IAgentModel

View source

public TimeSpan JudgmentTimeout { get; init; }

Deadline of one assert, waitFor, or extract.

Value: TimeSpan

View source

public int? MaxModelCalls { get; init; }

Model requests per agent call, 1 through 100. Null leaves it unset: MaxModelCalls applies, and Explore sets its own.

Value: int?

View source

public int? MaxSteps { get; init; }

Committed actions per act, 1 through 100. Null leaves it unset: MaxSteps applies, and Explore sets its own.

Value: int?

View source

public IAgentModel? Model { get; init; }

The model behind act. There is no implicit default. A custom Executor that brought a model of its own supplies it; naming a different one here is INVALID_CONFIG.

Value: IAgentModel

View source

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

Provider options every model call carries, keyed by provider. OpenAiCompatibleModel adds the fields under its Provider key to the request body as given.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public string? System { get; init; }

How the acting agent should work, appended to the built-in execution rules. Only the act loop reads it; the judges never see it.

Value: string

View source

public IReadOnlyDictionary<string, AgentTool>? Tools { get; init; }

Project tools offered to the model beside the agent’s own, by name. A tool is offered only on the platforms it declares, and a name the agent already uses is refused.

Value: IReadOnlyDictionary<string, AgentTool>

View source