Skip to content
Tracon

RunFeedbackRequest

Namespace Tracon · Assembly Tracon.AspNetCore.dll

Request body for writing a run/message score.

public sealed record RunFeedbackRequest : IEquatable<RunFeedbackRequest>

objectRunFeedbackRequest

IEquatable<RunFeedbackRequest>

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

public RunFeedbackRequest()

Free-text comment.

public string? Comment { get; init; }

string?

The format of the score.

public required RunScoreKind Kind { get; init; }

RunScoreKind

The id of the scored message. If left blank, the score applies to the whole run.

public string? MessageId { get; init; }

string?

The score’s stable, low-cardinality name. Left blank it becomes overall.

public string? Name { get; init; }

string?

Must match [A-Za-z0-9._-]{1,64}, the rule RunScoreRules carries. The same author can write more than one name onto the same run; writing the same name twice updates the existing row.

The categorical label. Required for RunScoreKind.Categorical and rejected for every other kind.

public string? TextValue { get; init; }

string?

0/1 for RunScoreKind.Binary, 1 to 5 for RunScoreKind.Stars, 0 to 100 for RunScoreKind.Numeric. Left out for RunScoreKind.Categorical, required otherwise.

public double? Value { get; init; }

double?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(RunFeedbackRequest? other)

other RunFeedbackRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RunFeedbackRequest?, RunFeedbackRequest?)

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

left RunFeedbackRequest?

right RunFeedbackRequest?

bool

operator !=(RunFeedbackRequest?, RunFeedbackRequest?)

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

left RunFeedbackRequest?

right RunFeedbackRequest?

bool