Skip to content

RunComparisonResponse

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

Side-by-side summary of two runs.

public sealed record RunComparisonResponse : IEquatable<RunComparisonResponse>

objectRunComparisonResponse

IEquatable<RunComparisonResponse>

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

The diff is not computed on the server; the endpoint only returns the two summaries and the UI shows the comparison. The definition definition version diff follows the same pattern and the UI already has a diff component; a second computation would mean maintenance in two places.

public RunComparisonResponse()

The left-hand run.

public required RunComparisonSide Left { get; init; }

RunComparisonSide

The right-hand run.

public required RunComparisonSide Right { get; init; }

RunComparisonSide

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(RunComparisonResponse? other)

other RunComparisonResponse?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RunComparisonResponse?, RunComparisonResponse?)

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

left RunComparisonResponse?

right RunComparisonResponse?

bool

operator !=(RunComparisonResponse?, RunComparisonResponse?)

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

left RunComparisonResponse?

right RunComparisonResponse?

bool