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)
| 304 | /// Called after `record_turn` so that if the agent continues without |
| 305 | /// a new user prompt, the next turn doesn't reuse the old one. |
| 306 | pub fn clear_current_prompt(&mut self) { |
| 307 | self.current_prompt = None; |
| 308 | } |
| 309 | |
| 310 | /// Set the first prompt if not already set. Truncates to MAX_PROMPT_LENGTH. |
| 311 | /// Also updates `current_prompt` on every call so the change message |
no outgoing calls
no test coverage detected