# LateToolCompletion

> 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.latetoolcompletion/
> Summary: LateToolCompletion: The settled outcome of a tool call whose timeout had already been reported.

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

The settled outcome of a tool call whose timeout had already been reported.

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

Written onto the EXISTING `tool_invocations` row, matched by
[LateToolCompletion.RunId](/api/tracon.latetoolcompletion/#Tracon_LateToolCompletion_RunId) and [LateToolCompletion.ToolCallId](/api/tracon.latetoolcompletion/#Tracon_LateToolCompletion_ToolCallId). A second row would count
as a second call in every per-tool total.

## Constructors

### <a id="Tracon_LateToolCompletion__ctor"></a> LateToolCompletion\(\)

```csharp
public LateToolCompletion()
```

## Properties

### <a id="Tracon_LateToolCompletion_Duration"></a> Duration

The call's real duration, from the call to its actual settlement.

```csharp
public TimeSpan? Duration { get; init; }
```

#### Property Value

 [TimeSpan](https://learn.microsoft.com/dotnet/api/system.timespan)?

### <a id="Tracon_LateToolCompletion_LateCompletedAt"></a> LateCompletedAt

The moment the call actually settled (UTC).

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

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

The call result. Raw text; may not be valid JSON.

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

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

The run that made the call.

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

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

The EXPECTED tenant of the run. Defense in depth; the write's
`WHERE` guard, never a column. Same rule as
[ToolInvocationRecord.TenantId](/api/tracon.toolinvocationrecord/#Tracon_ToolInvocationRecord_TenantId).

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

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

The call identifier generated by the model.

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

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

The call's non-token measurement and cost, as the tool body reported it.

```csharp
public ToolCallUsage? Usage { get; init; }
```

#### Property Value

 [ToolCallUsage](/api/tracon.toolcallusage/)?

## Methods

### <a id="Tracon_LateToolCompletion_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_LateToolCompletion_Equals_Tracon_LateToolCompletion_"></a> Equals\(LateToolCompletion?\)

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

`other` [LateToolCompletion](/api/tracon.latetoolcompletion/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_LateToolCompletion_op_Equality_Tracon_LateToolCompletion_Tracon_LateToolCompletion_"></a> operator ==\(LateToolCompletion?, LateToolCompletion?\)

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

`left` [LateToolCompletion](/api/tracon.latetoolcompletion/)?

`right` [LateToolCompletion](/api/tracon.latetoolcompletion/)?

#### Returns

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

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

`left` [LateToolCompletion](/api/tracon.latetoolcompletion/)?

`right` [LateToolCompletion](/api/tracon.latetoolcompletion/)?

#### Returns

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