MCPcopy Index your code
hub / github.com/chainreactors/EvilProxy / executorInputFormat

Function executorInputFormat

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

Source from the content-addressed store, hash-verified

1394}
1395
1396func executorInputFormat(req coreexecutor.Request, opts coreexecutor.Options) sdktranslator.Format {
1397 if opts.SourceFormat != "" {
1398 return normalizeExecutorFormatName(opts.SourceFormat.String())
1399 }
1400 if req.Format != "" {
1401 return normalizeExecutorFormatName(req.Format.String())
1402 }
1403 return sdktranslator.FormatOpenAI
1404}
1405
1406func executorRequestedFormat(req coreexecutor.Request, opts coreexecutor.Options) sdktranslator.Format {
1407 if format := coreexecutor.ResponseFormatOrSource(opts); format != "" {

Callers 3

prepareExecutorCallMethod · 0.85
RequestToFormatMethod · 0.85

Calls 2

StringMethod · 0.45

Tested by

no test coverage detected