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

Function WithMaxIterations

pkg/session/session.go:768–772  ·  view source on GitHub ↗
(maxIterations int)

Source from the content-addressed store, hash-verified

766}
767
768func WithMaxIterations(maxIterations int) Opt {
769 return func(s *Session) {
770 s.MaxIterations = maxIterations
771 }
772}
773
774// WithMaxConsecutiveToolCalls sets the threshold for consecutive identical tool
775// call detection. 0 means "use runtime default of 5". Negative values are

Callers 9

runDockerAgentFunction · 0.92
CreateToolHandlerFunction · 0.92
CreateSessionMethod · 0.92
newSubSessionFunction · 0.92
NewSessionMethod · 0.92
runNewCommandMethod · 0.92
buildSessionOptsMethod · 0.92

Calls

no outgoing calls