Skip to content

AgentException

Namespace: E2E

public sealed class AgentException : E2EException, ISerializable

An agent step failed, was blocked, or could not talk to its model.

Inheritance: object → Exception → E2EException

Implements: ISerializable

View source

public AgentException(string code, string message)

Parameters

Name Type Description
code string
message string

View source

public AgentException(string code, string message, bool blocked)

Parameters

Name Type Description
code string
message string
blocked bool

View source

AgentException(string, string, bool, Exception)

Section titled “AgentException(string, string, bool, Exception)”
public AgentException(string code, string message, bool blocked, Exception inner)

Parameters

Name Type Description
code string
message string
blocked bool
inner Exception

View source

public AgentException(string code, string message, Exception inner)

Parameters

Name Type Description
code string
message string
inner Exception

View source

public bool Blocked { get; }

True when credentials, the environment, test setup, or the agent’s own budget stopped the step, rather than the app misbehaving.

Value: bool

View source

public string Explanation { get; }

The step’s account of what happened. The same text as Message.

Value: string

View source

public string? Screenshot { get; init; }

Where a failed AssertAsync kept its redacted screenshot, relative to the project root. Null when none was taken: Screenshot = false or the engine captures no pixels.

Value: string

View source