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

Method RemoveToolUseCall

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

RemoveToolUseCall removes a tool use call from the chat's native messages. This is used to clean up incomplete or canceled tool calls when stopping execution.

(chatId string, toolCallId string)

Source from the content-addressed store, hash-verified

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.
37 RemoveToolUseCall(chatId string, toolCallId string) error
38
39 // ConvertToolResultsToNativeChatMessage converts tool execution results into native chat messages
40 // that can be sent back to the AI backend. Returns a slice of messages (some backends may

Callers 1

processAllToolCallsFunction · 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