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

Function newHarnessRuntime

pkg/runtime/harness_test.go:194–200  ·  view source on GitHub ↗
(t *testing.T, harnessType string)

Source from the content-addressed store, hash-verified

192}
193
194func newHarnessRuntime(t *testing.T, harnessType string) *LocalRuntime {
195 t.Helper()
196 root := agent.New("root", "You are an external coder.", agent.WithHarness(&latest.HarnessConfig{Type: harnessType}))
197 rt, err := NewLocalRuntime(t.Context(), team.New(team.WithAgents(root)), WithSessionCompaction(false), WithModelStore(mockModelStore{}))
198 require.NoError(t, err)
199 return rt
200}
201
202func collectRuntimeEvents(t *testing.T, rt *LocalRuntime, sess *session.Session) []Event {
203 t.Helper()

Calls 8

NewFunction · 0.92
WithHarnessFunction · 0.92
NewFunction · 0.92
WithAgentsFunction · 0.92
NewLocalRuntimeFunction · 0.85
WithSessionCompactionFunction · 0.85
WithModelStoreFunction · 0.85
ContextMethod · 0.80

Tested by

no test coverage detected