Skip to content

JobItemRecord

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A single input of a batch job and that input’s processing result.

public sealed record JobItemRecord : IEquatable<JobItemRecord>

objectJobItemRecord

IEquatable<JobItemRecord>

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

public JobItemRecord()

The failure message. Populated only for JobItemStatus.Failed.

public string? Error { get; init; }

string?

The item identifier.

public required Guid Id { get; init; }

Guid

This item’s input text.

public required string Input { get; init; }

string

The identifier of the job it belongs to.

public required Guid JobId { get; init; }

Guid

The identifier of the run record created while processing this item. null if the item has not been processed yet.

public Guid? RunId { get; init; }

Guid?

The sequence number within the job (starts at 0).

public required int Seq { get; init; }

int

The item’s processing status.

public required JobItemStatus Status { get; init; }

JobItemStatus

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(JobItemRecord? other)

other JobItemRecord?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(JobItemRecord?, JobItemRecord?)

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

left JobItemRecord?

right JobItemRecord?

bool

operator !=(JobItemRecord?, JobItemRecord?)

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

left JobItemRecord?

right JobItemRecord?

bool