(maxIterations int)
| 766 | } |
| 767 | |
| 768 | func 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 |
no outgoing calls