MCPcopy Create free account
hub / github.com/AI45Lab/Code / should_inject_continuation

Method should_inject_continuation

core/src/agent/execution_state.rs:185–202  ·  view source on GitHub ↗
(
        &mut self,
        looks_incomplete: bool,
        enabled: bool,
        max_continuation_turns: u32,
        max_tool_rounds: usize,
    )

Source from the content-addressed store, hash-verified

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 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected