agents / Exports / SilentUsageStorage
Class: SilentUsageStorage
Silent storage implementation for usage statistics (no-op)
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new SilentUsageStorage(): SilentUsageStorage
Returns
Methods
save
▸ save(_entry): Promise<void>
Parameters
| Name | Type |
|---|---|
_entry | UsageStats |
Returns
Promise<void>
Implementation of
Defined in
packages/agents/src/plugins/usage/storages/silent-storage.ts:7
getStats
▸ getStats(_conversationId?, _timeRange?): Promise<UsageStats[]>
Parameters
| Name | Type |
|---|---|
_conversationId? | string |
_timeRange? | Object |
_timeRange.start | Date |
_timeRange.end | Date |
Returns
Promise<UsageStats[]>
Implementation of
Defined in
packages/agents/src/plugins/usage/storages/silent-storage.ts:11
getAggregatedStats
▸ getAggregatedStats(_timeRange?): Promise<AggregatedUsageStats>
Parameters
| Name | Type |
|---|---|
_timeRange? | Object |
_timeRange.start | Date |
_timeRange.end | Date |
Returns
Promise<AggregatedUsageStats>
Implementation of
UsageStorage.getAggregatedStats
Defined in
packages/agents/src/plugins/usage/storages/silent-storage.ts:16
clear
▸ clear(): Promise<void>
Returns
Promise<void>
Implementation of
Defined in
packages/agents/src/plugins/usage/storages/silent-storage.ts:35
flush
▸ flush(): Promise<void>
Returns
Promise<void>
Implementation of
Defined in
packages/agents/src/plugins/usage/storages/silent-storage.ts:39
close
▸ close(): Promise<void>
Returns
Promise<void>
Implementation of
Defined in
packages/agents/src/plugins/usage/storages/silent-storage.ts:43