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

Function UpdateToolApproval

pkg/aiusechat/toolapproval.go:88–96  ·  view source on GitHub ↗
(toolCallId string, approval string)

Source from the content-addressed store, hash-verified

86}
87
88func UpdateToolApproval(toolCallId string, approval string) error {
89 req, exists := getToolApprovalRequest(toolCallId)
90 if !exists {
91 return nil
92 }
93
94 req.updateApproval(approval)
95 return nil
96}
97
98func WaitForToolApproval(ctx context.Context, toolCallId string) (string, error) {
99 req, exists := getToolApprovalRequest(toolCallId)

Callers 2

RegisterToolApprovalFunction · 0.85

Calls 2

getToolApprovalRequestFunction · 0.85
updateApprovalMethod · 0.80

Tested by

no test coverage detected