(toolCallId string)
| 63 | } |
| 64 | |
| 65 | func getToolApprovalRequest(toolCallId string) (*ApprovalRequest, bool) { |
| 66 | globalApprovalRegistry.mu.Lock() |
| 67 | defer globalApprovalRegistry.mu.Unlock() |
| 68 | req, exists := globalApprovalRegistry.requests[toolCallId] |
| 69 | return req, exists |
| 70 | } |
| 71 | |
| 72 | func RegisterToolApproval(toolCallId string, sseHandler *sse.SSEHandlerCh) { |
| 73 | req := &ApprovalRequest{ |
no outgoing calls
no test coverage detected