(
&mut self,
looks_incomplete: bool,
enabled: bool,
max_continuation_turns: u32,
max_tool_rounds: usize,
)
| 183 | } |
| 184 | |
| 185 | pub(super) fn should_inject_continuation( |
| 186 | &mut self, |
| 187 | looks_incomplete: bool, |
| 188 | enabled: bool, |
| 189 | max_continuation_turns: u32, |
| 190 | max_tool_rounds: usize, |
| 191 | ) -> bool { |
| 192 | if enabled |
| 193 | && self.continuation_count < max_continuation_turns |
| 194 | && self.turn < max_tool_rounds |
| 195 | && looks_incomplete |
| 196 | { |
| 197 | self.continuation_count += 1; |
| 198 | return true; |
| 199 | } |
| 200 | |
| 201 | false |
| 202 | } |
| 203 | |
| 204 | pub(super) fn finish(self, text: String) -> AgentResult { |
| 205 | AgentResult { |
no outgoing calls
no test coverage detected