<!--
 ⚠️  AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
 This file is automatically generated by scripts/docs-generator.js
 To make changes, edit the source TypeScript files or update the generator script
-->

[agents](../../) / [Exports](../modules) / UsageStats

# Interface: UsageStats

Usage statistics entry

## Table of contents

### Properties

- [conversationId](UsageStats#conversationid)
- [executionId](UsageStats#executionid)
- [timestamp](UsageStats#timestamp)
- [provider](UsageStats#provider)
- [model](UsageStats#model)
- [tokensUsed](UsageStats#tokensused)
- [cost](UsageStats#cost)
- [requestCount](UsageStats#requestcount)
- [duration](UsageStats#duration)
- [success](UsageStats#success)
- [toolsUsed](UsageStats#toolsused)
- [metadata](UsageStats#metadata)

## Properties

### conversationId

• `Optional` **conversationId**: `string`

#### Defined in

[packages/agents/src/plugins/usage/types.ts:10](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/usage/types.ts#L10)

---

### executionId

• `Optional` **executionId**: `string`

#### Defined in

[packages/agents/src/plugins/usage/types.ts:11](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/usage/types.ts#L11)

---

### timestamp

• **timestamp**: `Date`

#### Defined in

[packages/agents/src/plugins/usage/types.ts:12](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/usage/types.ts#L12)

---

### provider

• **provider**: `string`

#### Defined in

[packages/agents/src/plugins/usage/types.ts:13](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/usage/types.ts#L13)

---

### model

• **model**: `string`

#### Defined in

[packages/agents/src/plugins/usage/types.ts:14](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/usage/types.ts#L14)

---

### tokensUsed

• **tokensUsed**: `Object`

#### Type declaration

| Name     | Type     |
| :------- | :------- |
| `input`  | `number` |
| `output` | `number` |
| `total`  | `number` |

#### Defined in

[packages/agents/src/plugins/usage/types.ts:15](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/usage/types.ts#L15)

---

### cost

• `Optional` **cost**: `Object`

#### Type declaration

| Name     | Type     |
| :------- | :------- |
| `input`  | `number` |
| `output` | `number` |
| `total`  | `number` |

#### Defined in

[packages/agents/src/plugins/usage/types.ts:20](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/usage/types.ts#L20)

---

### requestCount

• **requestCount**: `number`

#### Defined in

[packages/agents/src/plugins/usage/types.ts:25](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/usage/types.ts#L25)

---

### duration

• **duration**: `number`

#### Defined in

[packages/agents/src/plugins/usage/types.ts:26](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/usage/types.ts#L26)

---

### success

• **success**: `boolean`

#### Defined in

[packages/agents/src/plugins/usage/types.ts:27](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/usage/types.ts#L27)

---

### toolsUsed

• `Optional` **toolsUsed**: `string`[]

#### Defined in

[packages/agents/src/plugins/usage/types.ts:28](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/usage/types.ts#L28)

---

### metadata

• `Optional` **metadata**: `Record`\<`string`, `string` \| `number` \| `boolean` \| `Date`\>

#### Defined in

[packages/agents/src/plugins/usage/types.ts:29](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/usage/types.ts#L29)
