> ## 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.

# AgentUsageInfo

> Contains token usage information for a completed agent execution, including input/output token counts, cache statistics, and server-side tool use.

## Definition

**Assembly:** CloudNimble.ClaudeEssentials.dll

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

**Inheritance:** System.Object

## Syntax

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

## Summary

Contains token usage information for a completed agent execution, including input/output
token counts, cache statistics, and server-side tool use.

## Constructors

### &#x20;.ctor

#### Syntax

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

### &#x20;.ctor Inherited

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

#### Syntax

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

## Properties

### &#x20;CacheCreation

Gets or sets the cache creation breakdown by ephemeral duration.

#### Syntax

```csharp theme={"dark"}
public CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.AgentCacheCreationInfo CacheCreation { get; set; }
```

#### Property Value

Type: `CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.AgentCacheCreationInfo?`

### &#x20;CacheCreationInputTokens

Gets or sets the number of input tokens used for cache creation.

#### Syntax

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

#### Property Value

Type: `System.Nullable<int>?`

### &#x20;CacheReadInputTokens

Gets or sets the number of input tokens read from cache.

#### Syntax

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

#### Property Value

Type: `System.Nullable<int>?`

### &#x20;FallbackCredit

Gets or sets the fallback credit details.

#### Syntax

```csharp theme={"dark"}
public System.Nullable<System.Text.Json.JsonElement> FallbackCredit { get; set; }
```

#### Property Value

Type: `System.Nullable<System.Text.Json.JsonElement?>?`

### &#x20;InferenceGeo

Gets or sets the geography where inference ran.

#### Syntax

```csharp theme={"dark"}
public string InferenceGeo { get; set; }
```

#### Property Value

Type: `string?`

### &#x20;InputTokens

Gets or sets the number of input tokens consumed.

#### Syntax

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

#### Property Value

Type: `int`

### &#x20;Iterations

Gets or sets the per-iteration usage details.

#### Syntax

```csharp theme={"dark"}
public System.Nullable<System.Text.Json.JsonElement> Iterations { get; set; }
```

#### Property Value

Type: `System.Nullable<System.Text.Json.JsonElement?>?`

### &#x20;OutputTokens

Gets or sets the number of output tokens generated.

#### Syntax

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

#### Property Value

Type: `int`

### &#x20;OutputTokensDetails

Gets or sets a breakdown of the output tokens.

#### Syntax

```csharp theme={"dark"}
public CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.AgentOutputTokensDetails OutputTokensDetails { get; set; }
```

#### Property Value

Type: `CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.AgentOutputTokensDetails?`

### &#x20;ServerToolUse

Gets or sets the server-side tool use counts.

#### Syntax

```csharp theme={"dark"}
public CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.AgentServerToolUseInfo ServerToolUse { get; set; }
```

#### Property Value

Type: `CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.AgentServerToolUseInfo?`

### &#x20;ServiceTier

Gets or sets the service tier used for this execution.

#### Syntax

```csharp theme={"dark"}
public string ServiceTier { get; set; }
```

#### Property Value

Type: `string?`

#### Remarks

Known values: `"standard"`, `"priority"`, `"batch"`.

### &#x20;Speed

Gets or sets the inference speed tier.

#### Syntax

```csharp theme={"dark"}
public string Speed { get; set; }
```

#### Property Value

Type: `string?`

## 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.