Iteration returns the current iteration number.
()
| 129 | |
| 130 | // Iteration returns the current iteration number. |
| 131 | func (l *Loop) Iteration() int { |
| 132 | l.mu.Lock() |
| 133 | defer l.mu.Unlock() |
| 134 | return l.iteration |
| 135 | } |
| 136 | |
| 137 | // Run executes the agent loop until completion or max iterations. |
| 138 | func (l *Loop) Run(ctx context.Context) error { |
no outgoing calls