Skip to content

EvalSuite

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

An evaluation (eval) suite defined for an agent: carries which agent is measured, with which checks.

public sealed record EvalSuite : IEquatable<EvalSuite>

objectEvalSuite

IEquatable<EvalSuite>

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

Checks is declarative: it runs no free-form code, it is only a JSON array that EvalCheckFactory maps to recognized kind names. A custom check is registered on the code side with AddEvalCheck.

public EvalSuite()

The name of the agent this suite measures.

public required string AgentName { get; init; }

string

The check definitions. Example: [{"kind":"nonEmpty","minLength":10}].

public JsonElement Checks { get; init; }

JsonElement

The creation time (UTC).

public DateTimeOffset CreatedAt { get; init; }

DateTimeOffset

A short description.

public string? Description { get; init; }

string?

The suite identifier.

public Guid Id { get; init; }

Guid

The suite name. Unique within the tenant.

public required string Name { get; init; }

string

The tenant the suite belongs to.

public required string TenantId { get; init; }

string

The last-updated time (UTC).

public DateTimeOffset UpdatedAt { get; init; }

DateTimeOffset

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(EvalSuite? other)

other EvalSuite?

bool

public override int GetHashCode()

int

public override string ToString()

string

public static bool operator ==(EvalSuite? left, EvalSuite? right)

left EvalSuite?

right EvalSuite?

bool

public static bool operator !=(EvalSuite? left, EvalSuite? right)

left EvalSuite?

right EvalSuite?

bool