MCPcopy Create free account
hub / github.com/docker/docker-agent / tooManyMessages

Function tooManyMessages

pkg/runtime/sampling_test.go:186–192  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

184}
185
186func tooManyMessages(n int) []*mcp.SamplingMessage {
187 out := make([]*mcp.SamplingMessage, n)
188 for i := range out {
189 out[i] = &mcp.SamplingMessage{Role: "user", Content: &mcp.TextContent{Text: "x"}}
190 }
191 return out
192}
193
194func TestStopReasonMapping(t *testing.T) {
195 t.Parallel()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected