# ToolApprovalPresentation

> 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.toolapprovalpresentation/
> Summary: ToolApprovalPresentation: A human-readable projection of one tool-approval request, produced by a consumer's IToolApprovalPresenter.

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

A human-readable projection of one tool-approval request, produced by a consumer's
[IToolApprovalPresenter](/api/tracon.itoolapprovalpresenter/).

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

Every field is optional: a presenter may resolve only part of what it knows (for
example the entity's name but not its type), and an unresolved field is left
[null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) rather than filled with a placeholder. The raw tool call
arguments this presentation was built from are never replaced by it — see
[PendingApproval.Arguments](/api/tracon.pendingapproval/#Tracon_PendingApproval_Arguments), which stays populated alongside this record.

## Constructors

### <a id="Tracon_ToolApprovalPresentation__ctor"></a> ToolApprovalPresentation\(\)

```csharp
public ToolApprovalPresentation()
```

## Properties

### <a id="Tracon_ToolApprovalPresentation_EntityId"></a> EntityId

Gets the entity's own identifier, as read from the call's arguments.

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

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

Gets the entity's human-readable name, resolved from `EntityId`.

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

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

Gets the kind of entity the call acts on (for example `"skill"` or `"order"`).

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

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

Gets a free-form sentence describing the call, for a reviewer who has none of the above.

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

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

### <a id="Tracon_ToolApprovalPresentation_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_ToolApprovalPresentation_Equals_Tracon_ToolApprovalPresentation_"></a> Equals\(ToolApprovalPresentation?\)

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

`other` [ToolApprovalPresentation](/api/tracon.toolapprovalpresentation/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_ToolApprovalPresentation_op_Equality_Tracon_ToolApprovalPresentation_Tracon_ToolApprovalPresentation_"></a> operator ==\(ToolApprovalPresentation?, ToolApprovalPresentation?\)

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

`left` [ToolApprovalPresentation](/api/tracon.toolapprovalpresentation/)?

`right` [ToolApprovalPresentation](/api/tracon.toolapprovalpresentation/)?

#### Returns

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

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

`left` [ToolApprovalPresentation](/api/tracon.toolapprovalpresentation/)?

`right` [ToolApprovalPresentation](/api/tracon.toolapprovalpresentation/)?

#### Returns

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