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

Function normalizedExecutorModelScope

internal/pluginhost/adapters.go:48–58  ·  view source on GitHub ↗
(caps pluginapi.Capabilities)

Source from the content-addressed store, hash-verified

46}
47
48func normalizedExecutorModelScope(caps pluginapi.Capabilities) pluginapi.ExecutorModelScope {
49 if caps.Executor == nil {
50 return pluginapi.ExecutorModelScopeBoth
51 }
52 switch caps.ExecutorModelScope {
53 case pluginapi.ExecutorModelScopeStatic, pluginapi.ExecutorModelScopeOAuth, pluginapi.ExecutorModelScopeBoth:
54 return caps.ExecutorModelScope
55 default:
56 return pluginapi.ExecutorModelScopeBoth
57 }
58}
59
60func executorScopeAllowsStaticModels(caps pluginapi.Capabilities) bool {
61 if caps.Executor == nil {

Calls

no outgoing calls

Tested by

no test coverage detected