MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / reset_user_turn

Method reset_user_turn

crates/chat-cli/src/cli/chat/mod.rs:3684–3687  ·  view source on GitHub ↗

Resets state associated with the active user turn. This should *always* be called whenever a new user prompt is sent to the backend. Note that includes tool use rejections.

(&mut self)

Source from the content-addressed store, hash-verified

3682 /// This should *always* be called whenever a new user prompt is sent to the backend. Note
3683 /// that includes tool use rejections.
3684 fn reset_user_turn(&mut self) {
3685 info!(?self.user_turn_request_metadata, "Resetting the current user turn");
3686 self.user_turn_request_metadata.clear();
3687 }
3688
3689 /// Sends an "codewhispererterminal_addChatMessage" telemetry event.
3690 ///

Callers 3

nextMethod · 0.80
handle_inputMethod · 0.80
executeMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected