Clear the current prompt after recording a turn. Called after `record_turn` so that if the agent continues without a new user prompt, the next turn doesn't reuse the old one.
(&mut self)
| 435 | /// Called after `record_turn` so that if the agent continues without |
| 436 | /// a new user prompt, the next turn doesn't reuse the old one. |
| 437 | pub fn clear_current_prompt(&mut self) { |
| 438 | self.current_prompt = None; |
| 439 | } |
| 440 | |
| 441 | /// Set the first prompt if not already set. Truncates to MAX_PROMPT_LENGTH. |
| 442 | /// Also updates `current_prompt` on every call so the change message |
no outgoing calls
no test coverage detected