MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / getAIChatTokenUsage

Function getAIChatTokenUsage

apps/desktop/main/ai/chats.ts:135–137  ·  view source on GitHub ↗
(aiChatId: string)

Source from the content-addressed store, hash-verified

133}
134
135export function getAIChatTokenUsage(aiChatId: string) {
136 return getManager().getAIChatTokenUsage(aiChatId)
137}
138
139export function getHistoryForAgent(aiChatId: string, maxMessages?: number, leafMessageId?: string | null) {
140 return getManager().getHistoryForAgent(aiChatId, maxMessages, leafMessageId)

Callers

nothing calls this directly

Calls 2

getManagerFunction · 0.70
getAIChatTokenUsageMethod · 0.65

Tested by

no test coverage detected