Skip to content

ValidationMessage

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A single finding produced by the validation of an agent definition.

public sealed record ValidationMessage : IEquatable<ValidationMessage>

objectValidationMessage

IEquatable<ValidationMessage>

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

ValidationMessage.Message comes from the server and is not translated; the user interface shows its own heading based on ValidationMessage.Code alone.

public ValidationMessage()

Gets the stable machine-readable code, for example unknown_tool or cycle.

public required string Code { get; init; }

string

Gets the human-readable description. It is not translated.

public required string Message { get; init; }

string

Gets the path of the offending field inside the definition, for example toolNames[2]. It is null when the finding points at no field.

public string? Path { get; init; }

string?

Gets the severity of the finding.

public required ValidationSeverity Severity { get; init; }

ValidationSeverity

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(ValidationMessage? other)

other ValidationMessage?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(ValidationMessage?, ValidationMessage?)

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

left ValidationMessage?

right ValidationMessage?

bool

operator !=(ValidationMessage?, ValidationMessage?)

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

left ValidationMessage?

right ValidationMessage?

bool