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

Function updateToolUseDataInChat

pkg/aiusechat/usechat.go:215–219  ·  view source on GitHub ↗
(backend UseChatBackend, chatOpts uctypes.WaveChatOpts, toolCallID string, toolUseData uctypes.UIMessageDataToolUse)

Source from the content-addressed store, hash-verified

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 {
217 log.Printf("failed to update tool use data in chat: %v\n", err)
218 }
219}
220
221func processToolCallInternal(backend UseChatBackend, toolCall uctypes.WaveToolCall, chatOpts uctypes.WaveChatOpts, toolDef *uctypes.ToolDefinition, sseHandler *sse.SSEHandlerCh) uctypes.AIToolResult {
222 if toolCall.ToolUseData == nil {

Callers 3

processToolCallInternalFunction · 0.85
processToolCallFunction · 0.85
processAllToolCallsFunction · 0.85

Calls 1

UpdateToolUseDataMethod · 0.65

Tested by

no test coverage detected