Skip to content

IdempotencyResponse

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The stored HTTP response.

public sealed record IdempotencyResponse : IEquatable<IdempotencyResponse>

objectIdempotencyResponse

IEquatable<IdempotencyResponse>

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

public IdempotencyResponse()

The original response’s raw body.

public required string Body { get; init; }

string

The original response’s content type.

public required string ContentType { get; init; }

string

The HTTP headers of the original response that must be preserved beyond the body/status code/content type (for example, Location, Preference-Applied).

public IReadOnlyDictionary<string, string> Headers { get; init; }

IReadOnlyDictionary<string, string>

The identifier of the run, if the response produced one; otherwise null.

public Guid? RunId { get; init; }

Guid?

The original response’s status code.

public required int StatusCode { get; init; }

int

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(IdempotencyResponse? other)

other IdempotencyResponse?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(IdempotencyResponse?, IdempotencyResponse?)

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

left IdempotencyResponse?

right IdempotencyResponse?

bool

operator !=(IdempotencyResponse?, IdempotencyResponse?)

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

left IdempotencyResponse?

right IdempotencyResponse?

bool