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

Method UpdateToolUseData

pkg/aiusechat/usechat-backend.go:33–33  ·  view source on GitHub ↗

UpdateToolUseData updates the tool use data for a specific tool call in the chat. This is used to update the UI state for tool execution (approval status, results, etc.)

(chatId string, toolCallId string, toolUseData uctypes.UIMessageDataToolUse)

Source from the content-addressed store, hash-verified

31 // UpdateToolUseData updates the tool use data for a specific tool call in the chat.
32 // This is used to update the UI state for tool execution (approval status, results, etc.)
33 UpdateToolUseData(chatId string, toolCallId string, toolUseData uctypes.UIMessageDataToolUse) error
34
35 // RemoveToolUseCall removes a tool use call from the chat's native messages.
36 // This is used to clean up incomplete or canceled tool calls when stopping execution.

Callers 1

updateToolUseDataInChatFunction · 0.65

Implementers 4

openaiResponsesBackendpkg/aiusechat/usechat-backend.go
openaiCompletionsBackendpkg/aiusechat/usechat-backend.go
anthropicBackendpkg/aiusechat/usechat-backend.go
geminiBackendpkg/aiusechat/usechat-backend.go

Calls

no outgoing calls

Tested by

no test coverage detected