MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / Remove

Method Remove

internal/desktop/provider_service.go:77–86  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

75}
76
77func (s *ProviderService) Remove(name string) (OperationResult, error) {
78 s.mu.Lock()
79 defer s.mu.Unlock()
80
81 result, err := s.api().Remove(context.Background(), name)
82 if err != nil {
83 return OperationResult{}, wrapProviderError("PROVIDER_NOT_FOUND", err, name)
84 }
85 return operationResultDTO(result), nil
86}
87
88func (s *ProviderService) Enable(name string) (ProviderDTO, error) {
89 return s.setEnabled(name, true)

Callers 1

Calls 3

apiMethod · 0.95
wrapProviderErrorFunction · 0.85
operationResultDTOFunction · 0.85

Tested by 1