MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / clear_current_prompt

Method clear_current_prompt

atomic-agent/src/turn/session.rs:306–308  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

handle_session_endMethod · 0.80
handle_turn_endMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected