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

Method clear_current_prompt

atomic-agent/src/turn/session.rs:437–439  ·  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

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

Callers 2

handle_session_endMethod · 0.80
handle_turn_endMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected