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

Method List

internal/desktop/provider_service.go:35–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (s *ProviderService) List() ([]ProviderDTO, error) {
36 listed, err := s.api().List(context.Background())
37 if err != nil {
38 return nil, wrapError("PROVIDER_LOAD_FAILED", err)
39 }
40 out := make([]ProviderDTO, 0, len(listed))
41 for _, provider := range listed {
42 out = append(out, providerDTOFromAPI(provider))
43 }
44 return out, nil
45}
46
47func (s *ProviderService) Show(name string) (ProviderDTO, error) {
48 provider, err := s.api().Show(context.Background(), name)

Calls 3

apiMethod · 0.95
wrapErrorFunction · 0.85
providerDTOFromAPIFunction · 0.85