# ToolApprovalDecision

> 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.toolapprovaldecision/
> Summary: ToolApprovalDecision: Tool approval decision sent from the UI.

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

Tool approval decision sent from the UI.

```csharp
public sealed record ToolApprovalDecision : IEquatable<ToolApprovalDecision>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.toolapprovaldecision/">ToolApprovalDecision</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;ToolApprovalDecision&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 decision is carried in the body of the next run request. Microsoft
Agent Framework expects the approval response as a `ChatMessage`
content item; there is no separate "continue" endpoint, because approval
is the input to the next turn.

## Constructors

### <a id="Tracon_ToolApprovalDecision__ctor"></a> ToolApprovalDecision\(\)

```csharp
public ToolApprovalDecision()
```

## Properties

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

Whether the call is approved.

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

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

Reason for the decision. Passed on to the model.

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

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

Whether the decision should be saved as a permanent rule ("don't ask
again"). Meaningful only while `Approved` is [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

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

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

Whether the permanent rule covers only a call with the same arguments.
If [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool), it covers every call to the tool.

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

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

Identifier of the approved request. This is the
`ToolApprovalRequestContent.RequestId` value received in the stream.

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

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

### <a id="Tracon_ToolApprovalDecision_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_ToolApprovalDecision_Equals_Tracon_ToolApprovalDecision_"></a> Equals\(ToolApprovalDecision?\)

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

`other` [ToolApprovalDecision](/api/tracon.toolapprovaldecision/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_ToolApprovalDecision_op_Equality_Tracon_ToolApprovalDecision_Tracon_ToolApprovalDecision_"></a> operator ==\(ToolApprovalDecision?, ToolApprovalDecision?\)

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

`left` [ToolApprovalDecision](/api/tracon.toolapprovaldecision/)?

`right` [ToolApprovalDecision](/api/tracon.toolapprovaldecision/)?

#### Returns

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

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

`left` [ToolApprovalDecision](/api/tracon.toolapprovaldecision/)?

`right` [ToolApprovalDecision](/api/tracon.toolapprovaldecision/)?

#### Returns

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