(chat *uctypes.AIChat)
| 206 | } |
| 207 | |
| 208 | func 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 | |
| 215 | func updateToolUseDataInChat(backend UseChatBackend, chatOpts uctypes.WaveChatOpts, toolCallID string, toolUseData uctypes.UIMessageDataToolUse) { |
| 216 | if err := backend.UpdateToolUseData(chatOpts.ChatId, toolCallID, toolUseData); err != nil { |
nothing calls this directly
no test coverage detected