> ## Documentation Index
> Fetch the complete documentation index at: https://si.easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# AgentToolStats

> Represents an aggregate breakdown of the tools used by an Agent during its execution.

## Definition

**Assembly:** CloudNimble.ClaudeEssentials.dll

**Namespace:** CloudNimble.ClaudeEssentials.Hooks.Tools.Responses

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.AgentToolStats
```

## Summary

Represents an aggregate breakdown of the tools used by an Agent during its execution.

## Remarks

These counts give a high-level view of the agent's workload, useful for understanding
whether the agent spent its time searching, reading, editing, or running shell commands.

The [AgentToolStats.LinesAdded](https://si.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Responses/AgentToolStats.md#linesadded) and [AgentToolStats.LinesRemoved](https://si.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Responses/AgentToolStats.md#linesremoved) counts aggregate line-level
changes across all Edit/Write operations performed by the agent.

Example JSON payload:

```csharp theme={"dark"}
{
  "readCount": 12,
  "searchCount": 5,
  "bashCount": 3,
  "editFileCount": 4,
  "linesAdded": 87,
  "linesRemoved": 23,
  "otherToolCount": 2
}
```

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={"dark"}
public AgentToolStats()
```

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### &#x20;BashCount

Gets or sets the number of Bash shell commands executed by the agent.

#### Syntax

```csharp theme={"dark"}
public int BashCount { get; set; }
```

#### Property Value

Type: `int`

### &#x20;EditFileCount

Gets or sets the number of file edit or write operations performed by the agent.

#### Syntax

```csharp theme={"dark"}
public int EditFileCount { get; set; }
```

#### Property Value

Type: `int`

### &#x20;FrameCount

Gets or sets the number of frames captured by the agent.

#### Syntax

```csharp theme={"dark"}
public System.Nullable<int> FrameCount { get; set; }
```

#### Property Value

Type: `System.Nullable<int>`

### &#x20;LinesAdded

Gets or sets the total number of lines added across all edit and write operations.

#### Syntax

```csharp theme={"dark"}
public int LinesAdded { get; set; }
```

#### Property Value

Type: `int`

### &#x20;LinesRemoved

Gets or sets the total number of lines removed across all edit and write operations.

#### Syntax

```csharp theme={"dark"}
public int LinesRemoved { get; set; }
```

#### Property Value

Type: `int`

### &#x20;OtherToolCount

Gets or sets the number of other tool invocations not covered by the specific counters.

#### Syntax

```csharp theme={"dark"}
public int OtherToolCount { get; set; }
```

#### Property Value

Type: `int`

### &#x20;ReadCount

Gets or sets the number of file read operations performed by the agent.

#### Syntax

```csharp theme={"dark"}
public int ReadCount { get; set; }
```

#### Property Value

Type: `int`

### &#x20;SearchCount

Gets or sets the number of search operations (Grep, Glob, etc.) performed by the agent.

#### Syntax

```csharp theme={"dark"}
public int SearchCount { get; set; }
```

#### Property Value

Type: `int`

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.