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

Method providerHasNativeExecutor

internal/pluginhost/adapters.go:995–1001  ·  view source on GitHub ↗
(manager executorManager, provider string)

Source from the content-addressed store, hash-verified

993}
994
995func (h *Host) providerHasNativeExecutor(manager executorManager, provider string) bool {
996 if h == nil || manager == nil {
997 return false
998 }
999 existing, okExecutor := manager.Executor(provider)
1000 return okExecutor && existing != nil && !h.ownsExecutor(existing)
1001}
1002
1003func (h *Host) modelHasNativeExecutor(manager executorManager, modelRegistry modelProviderRegistry, modelID string) bool {
1004 if h == nil || manager == nil || modelRegistry == nil {

Callers 2

RegisterExecutorsMethod · 0.95

Calls 2

ownsExecutorMethod · 0.95
ExecutorMethod · 0.65

Tested by

no test coverage detected