(toolCallId string, approval string)
| 86 | } |
| 87 | |
| 88 | func 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 | |
| 98 | func WaitForToolApproval(ctx context.Context, toolCallId string) (string, error) { |
| 99 | req, exists := getToolApprovalRequest(toolCallId) |
no test coverage detected