# WorkflowRequestRecord

> 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.workflowrequestrecord/
> Summary: WorkflowRequestRecord: One request a workflow run waits on, as the inbox stores it.

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

One request a workflow run waits on, as the inbox stores it.

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

```csharp
public WorkflowRequestRecord()
```

## Properties

### <a id="Tracon_WorkflowRequestRecord_AnsweredAt"></a> AnsweredAt

Gets when the request was first answered (UTC); [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) while nobody has answered.

```csharp
public DateTimeOffset? AnsweredAt { get; init; }
```

#### Property Value

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

Gets when the row was closed (UTC); [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) while it is open.

```csharp
public DateTimeOffset? ClosedAt { get; init; }
```

#### Property Value

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

Gets the sequence number of the run's [RunEventType.WorkflowRequest](/api/tracon.runeventtype/) event that
holds the request, where the prompt and the form are read.

```csharp
public required long EventSequence { get; init; }
```

#### Property Value

 [long](https://learn.microsoft.com/dotnet/api/system.int64)

### <a id="Tracon_WorkflowRequestRecord_ExpiresAt"></a> ExpiresAt

Gets when the request expires (UTC), or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the workflow sets no
[WorkflowDefinition.RequestTimeout](/api/tracon.workflowdefinition/#Tracon_WorkflowDefinition_RequestTimeout). Fixed when the row is written: a later
edit of the workflow does not move it.

```csharp
public DateTimeOffset? ExpiresAt { get; init; }
```

#### Property Value

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

Gets the run that carried out the latest answer; [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) while nobody has answered.

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

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

Gets the id of the port that published the request; empty when the event did not carry it.

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

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

Gets the request id the answer must carry.

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

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

Gets when the run published the request (UTC).

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

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

Gets the run that waits on the request.

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

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

Gets the execution session the run belongs to. Runs that continue one another share it.

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

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

Gets whether the run still waits on the request.

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

 [WorkflowRequestStatus](/api/tracon.workflowrequeststatus/)

### <a id="Tracon_WorkflowRequestRecord_TenantId"></a> TenantId

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

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

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

Gets the name of the workflow.

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

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

### <a id="Tracon_WorkflowRequestRecord_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_WorkflowRequestRecord_Equals_Tracon_WorkflowRequestRecord_"></a> Equals\(WorkflowRequestRecord?\)

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

`other` [WorkflowRequestRecord](/api/tracon.workflowrequestrecord/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_WorkflowRequestRecord_op_Equality_Tracon_WorkflowRequestRecord_Tracon_WorkflowRequestRecord_"></a> operator ==\(WorkflowRequestRecord?, WorkflowRequestRecord?\)

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

`left` [WorkflowRequestRecord](/api/tracon.workflowrequestrecord/)?

`right` [WorkflowRequestRecord](/api/tracon.workflowrequestrecord/)?

#### Returns

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

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

`left` [WorkflowRequestRecord](/api/tracon.workflowrequestrecord/)?

`right` [WorkflowRequestRecord](/api/tracon.workflowrequestrecord/)?

#### Returns

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