MCPcopy
hub / github.com/wavetermdev/waveterm / GetChatUsage

Function GetChatUsage

pkg/aiusechat/usechat.go:208–213  ·  view source on GitHub ↗
(chat *uctypes.AIChat)

Source from the content-addressed store, hash-verified

206}
207
208func GetChatUsage(chat *uctypes.AIChat) uctypes.AIUsage {
209 usage := getUsage(chat.NativeMessages)
210 usage.APIType = chat.APIType
211 usage.Model = chat.Model
212 return usage
213}
214
215func updateToolUseDataInChat(backend UseChatBackend, chatOpts uctypes.WaveChatOpts, toolCallID string, toolUseData uctypes.UIMessageDataToolUse) {
216 if err := backend.UpdateToolUseData(chatOpts.ChatId, toolCallID, toolUseData); err != nil {

Callers

nothing calls this directly

Calls 1

getUsageFunction · 0.85

Tested by

no test coverage detected