MCPcopy Index your code
hub / github.com/docker/docker-agent / newRunner

Function newRunner

pkg/evaluation/eval.go:49–61  ·  view source on GitHub ↗

newRunner creates a new evaluation runner.

(agentSource config.Source, runConfig *config.RuntimeConfig, judgeModel provider.Provider, cfg Config)

Source from the content-addressed store, hash-verified

47
48// newRunner creates a new evaluation runner.
49func newRunner(agentSource config.Source, runConfig *config.RuntimeConfig, judgeModel provider.Provider, cfg Config) *Runner {
50 var judge *Judge
51 if judgeModel != nil {
52 judge = NewJudge(judgeModel, cfg.Concurrency)
53 }
54 return &Runner{
55 Config: cfg,
56 agentSource: agentSource,
57 judge: judge,
58 runConfig: runConfig,
59 imageCache: make(map[imageKey]string),
60 }
61}
62
63// Evaluate runs evaluations with a specified run name.
64// ttyOut is used for progress bar rendering (should be the console/TTY).

Callers 1

EvaluateFunction · 0.85

Calls 1

NewJudgeFunction · 0.85

Tested by

no test coverage detected