# IdempotencyResponse

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.idempotencyresponse/
> Summary: IdempotencyResponse: The stored HTTP response.

<div class="api-provenance">Namespace Tracon · Assembly <code>Tracon.Abstractions.dll</code></div>

The stored HTTP response.

```csharp
public sealed record IdempotencyResponse : IEquatable<IdempotencyResponse>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.idempotencyresponse/">IdempotencyResponse</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;IdempotencyResponse&gt;</a></dd><dt>Inherited Members</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a></dd></dl>

## Constructors

### <a id="Tracon_IdempotencyResponse__ctor"></a> IdempotencyResponse\(\)

```csharp
public IdempotencyResponse()
```

## Properties

### <a id="Tracon_IdempotencyResponse_Body"></a> Body

The original response's raw body.

```csharp
public required string Body { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="Tracon_IdempotencyResponse_ContentType"></a> ContentType

The original response's content type.

```csharp
public required string ContentType { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="Tracon_IdempotencyResponse_Headers"></a> Headers

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

```csharp
public IReadOnlyDictionary<string, string> Headers { get; init; }
```

#### Property Value

 [IReadOnlyDictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlydictionary\-2)<[string](https://learn.microsoft.com/dotnet/api/system.string), [string](https://learn.microsoft.com/dotnet/api/system.string)\>

### <a id="Tracon_IdempotencyResponse_RunId"></a> RunId

The identifier of the run, if the response produced one; otherwise [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null).

```csharp
public Guid? RunId { get; init; }
```

#### Property Value

 [Guid](https://learn.microsoft.com/dotnet/api/system.guid)?

### <a id="Tracon_IdempotencyResponse_StatusCode"></a> StatusCode

The original response's status code.

```csharp
public required int StatusCode { get; init; }
```

#### Property Value

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

## Methods

### <a id="Tracon_IdempotencyResponse_Equals_System_Object_"></a> Equals\(object?\)

```csharp
public override bool Equals(object? obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_IdempotencyResponse_Equals_Tracon_IdempotencyResponse_"></a> Equals\(IdempotencyResponse?\)

```csharp
public bool Equals(IdempotencyResponse? other)
```

#### Parameters

`other` [IdempotencyResponse](/api/tracon.idempotencyresponse/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_IdempotencyResponse_GetHashCode"></a> GetHashCode\(\)

```csharp
public override int GetHashCode()
```

#### Returns

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="Tracon_IdempotencyResponse_ToString"></a> ToString\(\)

```csharp
public override string ToString()
```

#### Returns

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Operators

### <a id="Tracon_IdempotencyResponse_op_Equality_Tracon_IdempotencyResponse_Tracon_IdempotencyResponse_"></a> operator ==\(IdempotencyResponse?, IdempotencyResponse?\)

```csharp
public static bool operator ==(IdempotencyResponse? left, IdempotencyResponse? right)
```

#### Parameters

`left` [IdempotencyResponse](/api/tracon.idempotencyresponse/)?

`right` [IdempotencyResponse](/api/tracon.idempotencyresponse/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_IdempotencyResponse_op_Inequality_Tracon_IdempotencyResponse_Tracon_IdempotencyResponse_"></a> operator \!=\(IdempotencyResponse?, IdempotencyResponse?\)

```csharp
public static bool operator !=(IdempotencyResponse? left, IdempotencyResponse? right)
```

#### Parameters

`left` [IdempotencyResponse](/api/tracon.idempotencyresponse/)?

`right` [IdempotencyResponse](/api/tracon.idempotencyresponse/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)
