# WorkflowResponseRecord

> 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.workflowresponserecord/
> Summary: WorkflowResponseRecord: One answer to a workflow's pending human request.

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

One answer to a workflow's pending human request.

```csharp
public sealed record WorkflowResponseRecord : IEquatable<WorkflowResponseRecord>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.workflowresponserecord/">WorkflowResponseRecord</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;WorkflowResponseRecord&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_WorkflowResponseRecord__ctor"></a> WorkflowResponseRecord\(\)

```csharp
public WorkflowResponseRecord()
```

## Properties

### <a id="Tracon_WorkflowResponseRecord_AnswerHash"></a> AnswerHash

Gets the SHA-256 of the answer, as 64 lowercase hexadecimal characters.

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

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

The hash tells two answers apart; it does not hide the answer. An answer with few
possible values, such as a yes/no, can be recovered from it by trying each value.

### <a id="Tracon_WorkflowResponseRecord_ClaimScope"></a> ClaimScope

Gets the scope of the single-answer claim this record holds, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null)
for an answer to a [WorkflowResponseMode.Branch](/api/tracon.workflowresponsemode/) workflow, which claims nothing.

```csharp
public string? ClaimScope { get; init; }
```

#### Property Value

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

Gets the id of the request that was answered.

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

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

Gets when the answer was accepted (UTC).

```csharp
public required DateTimeOffset RespondedAt { get; init; }
```

#### Property Value

 [DateTimeOffset](https://learn.microsoft.com/dotnet/api/system.datetimeoffset)

### <a id="Tracon_WorkflowResponseRecord_RespondedBy"></a> RespondedBy

Gets who answered, as the audit trail names the actor; [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when unknown.

```csharp
public string? RespondedBy { get; init; }
```

#### Property Value

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

Gets the run the answer started. It identifies the record.

```csharp
public required Guid ResponseRunId { get; init; }
```

#### Property Value

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

Gets the execution session the two runs share.

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

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

Gets the run that waited for the answer.

```csharp
public required Guid SourceRunId { get; init; }
```

#### Property Value

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

Gets the state of the answer.

```csharp
public WorkflowResponseStatus Status { get; init; }
```

#### Property Value

 [WorkflowResponseStatus](/api/tracon.workflowresponsestatus/)

### <a id="Tracon_WorkflowResponseRecord_TenantId"></a> TenantId

Gets the tenant the record belongs to. Set when it is written; not part of the HTTP response.

```csharp
[JsonIgnore]
public string? TenantId { get; init; }
```

#### Property Value

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

### <a id="Tracon_WorkflowResponseRecord_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_WorkflowResponseRecord_Equals_Tracon_WorkflowResponseRecord_"></a> Equals\(WorkflowResponseRecord?\)

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

`other` [WorkflowResponseRecord](/api/tracon.workflowresponserecord/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_WorkflowResponseRecord_op_Equality_Tracon_WorkflowResponseRecord_Tracon_WorkflowResponseRecord_"></a> operator ==\(WorkflowResponseRecord?, WorkflowResponseRecord?\)

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

`left` [WorkflowResponseRecord](/api/tracon.workflowresponserecord/)?

`right` [WorkflowResponseRecord](/api/tracon.workflowresponserecord/)?

#### Returns

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

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

`left` [WorkflowResponseRecord](/api/tracon.workflowresponserecord/)?

`right` [WorkflowResponseRecord](/api/tracon.workflowresponserecord/)?

#### Returns

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