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

Method append_transcript

crates/chat-cli/src/cli/chat/conversation.rs:903–908  ·  view source on GitHub ↗
(&mut self, message: String)

Source from the content-addressed store, hash-verified

901 }
902
903 pub fn append_transcript(&mut self, message: String) {
904 if self.transcript.len() >= MAX_CONVERSATION_STATE_HISTORY_LEN {
905 self.transcript.pop_front();
906 }
907 self.transcript.push_back(message);
908 }
909
910 /// Restore conversation from a checkpoint's history snapshot
911 pub fn restore_to_checkpoint(&mut self, checkpoint: &Checkpoint) -> Result<(), eyre::Report> {

Callers 3

nextMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected