# WorkflowRespondRequest

> 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.workflowrespondrequest/
> Summary: WorkflowRespondRequest: Represents a response to a pending request.

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

Represents a response to a pending request.

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

## Remarks

The fields are not mutually exclusive. The port response type determines
which one is used. The request is **rejected** when no field
converts to the expected type; silently accepting a response of the wrong
type would fail execution at an opaque point.

## Constructors

### <a id="Tracon_WorkflowRespondRequest__ctor"></a> WorkflowRespondRequest\(\)

```csharp
public WorkflowRespondRequest()
```

## Properties

### <a id="Tracon_WorkflowRespondRequest_Approved"></a> Approved

Gets the yes/no response; for plan approval, it means "approve the plan".

```csharp
public bool? Approved { get; init; }
```

#### Property Value

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

Gets the identifier of the checkpoint to resume. If null, the run's most
recent checkpoint is used.

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

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

Gets the version of the workflow's stored definition to continue with. See
[WorkflowResumeRequest.DefinitionVersion](/api/tracon.workflowresumerequest/#Tracon_WorkflowResumeRequest_DefinitionVersion): [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) continues with
the version the waiting run recorded.

```csharp
public int? DefinitionVersion { get; init; }
```

#### Property Value

 [int](https://learn.microsoft.com/dotnet/api/system.int32)?

### <a id="Tracon_WorkflowRespondRequest_Json"></a> Json

Gets the free-form JSON response. It is deserialized to the port response type.

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

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

Gets the identifier of the new run. When supplied, recording starts with this id.

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

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

Gets whether an approval is remembered as a rule ("do not ask again") for the agent and the tool.

```csharp
public bool? Remember { get; init; }
```

#### Property Value

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

Only for a [WorkflowRequestForm.ToolApproval](/api/tracon.workflowrequestform/) request, and only together with
[WorkflowRespondRequest.Approved](/api/tracon.workflowrespondrequest/#Tracon_WorkflowRespondRequest_Approved) set to [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool); any other use is refused.

### <a id="Tracon_WorkflowRespondRequest_RequestId"></a> RequestId

Gets the identifier of the request being responded to.

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

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

Gets the identifier of the run being responded to.

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

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

Gets the text response; for plan approval, it is revision guidance.

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

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

### <a id="Tracon_WorkflowRespondRequest_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_WorkflowRespondRequest_Equals_Tracon_WorkflowRespondRequest_"></a> Equals\(WorkflowRespondRequest?\)

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

`other` [WorkflowRespondRequest](/api/tracon.workflowrespondrequest/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_WorkflowRespondRequest_op_Equality_Tracon_WorkflowRespondRequest_Tracon_WorkflowRespondRequest_"></a> operator ==\(WorkflowRespondRequest?, WorkflowRespondRequest?\)

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

`left` [WorkflowRespondRequest](/api/tracon.workflowrespondrequest/)?

`right` [WorkflowRespondRequest](/api/tracon.workflowrespondrequest/)?

#### Returns

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

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

`left` [WorkflowRespondRequest](/api/tracon.workflowrespondrequest/)?

`right` [WorkflowRespondRequest](/api/tracon.workflowrespondrequest/)?

#### Returns

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