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

Function animate_output

crates/chat-cli/src/cli/chat/util/mod.rs:56–62  ·  view source on GitHub ↗
(output: &mut impl Write, bytes: &[u8])

Source from the content-addressed store, hash-verified

54}
55
56pub fn animate_output(output: &mut impl Write, bytes: &[u8]) -> Result<(), ChatError> {
57 for b in bytes.chunks(12) {
58 output.write_all(b)?;
59 std::thread::sleep(Duration::from_millis(16));
60 }
61 Ok(())
62}
63
64/// Returns `true` if the character is from an invisible or control Unicode range
65/// that is considered unsafe for LLM input. These rarely appear in normal input,

Callers 1

compact_history_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected