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

Function thinkingSupportToPlugin

sdk/pluginhost/host.go:256–267  ·  view source on GitHub ↗
(thinking *internalregistry.ThinkingSupport)

Source from the content-addressed store, hash-verified

254}
255
256func thinkingSupportToPlugin(thinking *internalregistry.ThinkingSupport) *ThinkingSupport {
257 if thinking == nil {
258 return nil
259 }
260 return &ThinkingSupport{
261 Min: thinking.Min,
262 Max: thinking.Max,
263 ZeroAllowed: thinking.ZeroAllowed,
264 DynamicAllowed: thinking.DynamicAllowed,
265 Levels: cloneStringSlice(thinking.Levels),
266 }
267}
268
269func cloneStringSlice(in []string) []string {
270 if len(in) == 0 {

Callers 1

Calls 1

cloneStringSliceFunction · 0.70

Tested by

no test coverage detected