MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / executorProvider

Method executorProvider

internal/pluginhost/adapters.go:965–979  ·  view source on GitHub ↗
(record capabilityRecord, executor pluginapi.ProviderExecutor)

Source from the content-addressed store, hash-verified

963}
964
965func (h *Host) executorProvider(record capabilityRecord, executor pluginapi.ProviderExecutor) (string, bool) {
966 if h == nil || !h.recordCurrent(record) {
967 return "", false
968 }
969 provider := h.modelProvider(record.id)
970 if provider == "" {
971 identifier, okIdentifier := h.callExecutorIdentifier(record.id, executor)
972 if !okIdentifier {
973 return "", false
974 }
975 provider = identifier
976 }
977 provider = strings.ToLower(strings.TrimSpace(provider))
978 return provider, provider != ""
979}
980
981func (h *Host) callExecutorIdentifier(pluginID string, executor pluginapi.ProviderExecutor) (provider string, ok bool) {
982 if h == nil || executor == nil || h.isPluginFused(pluginID) {

Callers 5

ModelsForAuthMethod · 0.95
RegisterExecutorsMethod · 0.95
executorPluginReadyMethod · 0.95

Calls 3

recordCurrentMethod · 0.95
modelProviderMethod · 0.95

Tested by

no test coverage detected