Skip to content

AgentValidationReport

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The result of a validation that builds an agent definition without saving it and without calling any model.

public sealed record AgentValidationReport : IEquatable<AgentValidationReport>

objectAgentValidationReport

IEquatable<AgentValidationReport>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

A failed validation is not an HTTP error: the request is valid and the answer is “this definition is invalid”. The HTTP response is therefore 200 even when Valid is false.

public AgentValidationReport()

Gets a value that tells whether a check could not finish because a resource was unreachable, an MCP server for example. It does not affect Valid.

public required bool Inconclusive { get; init; }

bool

Gets every message found. Validation does not stop at the first error.

public required IReadOnlyList<ValidationMessage> Messages { get; init; }

IReadOnlyList<ValidationMessage>

Gets a value that is true when the definition carries no ValidationSeverity.Error.

public required bool Valid { get; init; }

bool

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(AgentValidationReport? other)

other AgentValidationReport?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(AgentValidationReport?, AgentValidationReport?)

Section titled “ operator ==(AgentValidationReport?, AgentValidationReport?)”
public static bool operator ==(AgentValidationReport? left, AgentValidationReport? right)

left AgentValidationReport?

right AgentValidationReport?

bool

operator !=(AgentValidationReport?, AgentValidationReport?)

Section titled “ operator !=(AgentValidationReport?, AgentValidationReport?)”
public static bool operator !=(AgentValidationReport? left, AgentValidationReport? right)

left AgentValidationReport?

right AgentValidationReport?

bool