Interface: UsageStats
Usage statistics entry
Table of contents
Properties
- conversationId
- executionId
- timestamp
- provider
- model
- tokensUsed
- cost
- requestCount
- duration
- success
- toolsUsed
- metadata
Properties
conversationId
• Optional conversationId: string
Defined in
packages/agents/src/plugins/usage/types.ts:10
executionId
• Optional executionId: string
Defined in
packages/agents/src/plugins/usage/types.ts:11
timestamp
• timestamp: Date
Defined in
packages/agents/src/plugins/usage/types.ts:12
provider
• provider: string
Defined in
packages/agents/src/plugins/usage/types.ts:13
model
• model: string
Defined in
packages/agents/src/plugins/usage/types.ts:14
tokensUsed
• tokensUsed: Object
Type declaration
| Name | Type |
|---|---|
input | number |
output | number |
total | number |
Defined in
packages/agents/src/plugins/usage/types.ts:15
cost
• Optional cost: Object
Type declaration
| Name | Type |
|---|---|
input | number |
output | number |
total | number |
Defined in
packages/agents/src/plugins/usage/types.ts:20
requestCount
• requestCount: number
Defined in
packages/agents/src/plugins/usage/types.ts:25
duration
• duration: number
Defined in
packages/agents/src/plugins/usage/types.ts:26
success
• success: boolean
Defined in
packages/agents/src/plugins/usage/types.ts:27
toolsUsed
• Optional toolsUsed: string[]
Defined in
packages/agents/src/plugins/usage/types.ts:28
metadata
• Optional metadata: Record<string, string | number | boolean | Date>