Skip to content

feat: plugin framework for storing token usage counts#12

Merged
birme merged 6 commits intomainfrom
feat-cti-store
Mar 19, 2025
Merged

feat: plugin framework for storing token usage counts#12
birme merged 6 commits intomainfrom
feat-cti-store

Conversation

@birme
Copy link
Copy Markdown
Contributor

@birme birme commented Mar 19, 2025

This PR adds support for a plugin framework for storing and counting token usage. Includes plugins for a memory store and a Redis store. Custom plugins can be developed by implementing the ICTIStore interface.

export interface ICTIStore {
  storeToken(token: CommonAccessToken): Promise<number>;
  getTokenCount(token: CommonAccessToken): Promise<number>;
}

@birme birme merged commit 4adf1d5 into main Mar 19, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant