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

Method RequestToFormat

internal/pluginhost/adapters.go:1384–1394  ·  view source on GitHub ↗
(req coreexecutor.Request, opts coreexecutor.Options)

Source from the content-addressed store, hash-verified

1382}
1383
1384func (a *executorAdapter) RequestToFormat(req coreexecutor.Request, opts coreexecutor.Options) sdktranslator.Format {
1385 if a == nil {
1386 return ""
1387 }
1388 inputRequested := executorInputFormat(req, opts)
1389 inputFormat, errInput := a.selectExecutorInputFormat(inputRequested)
1390 if errInput != nil {
1391 return ""
1392 }
1393 return inputFormat
1394}
1395
1396func executorInputFormat(req coreexecutor.Request, opts coreexecutor.Options) sdktranslator.Format {
1397 if opts.SourceFormat != "" {

Callers

nothing calls this directly

Calls 2

executorInputFormatFunction · 0.85

Tested by

no test coverage detected