MCPcopy Create free account
hub / github.com/diillson/chatcli / typewriterEffect

Method typewriterEffect

cli/cli_rendering.go:223–225  ·  view source on GitHub ↗

typewriterEffect exibe o texto com efeito de máquina de escrever usando o pacing adaptativo do pacote agent: respostas curtas mantêm a cadência solicitada (delay por rune), respostas longas têm o delay escalonado para caber no orçamento total (~800ms por padrão), e respostas muito grandes (acima de

(text string, delay time.Duration)

Source from the content-addressed store, hash-verified

221// os call sites históricos; a lógica real vive em agent.PaceText e é
222// compartilhada com o envelope de resposta.
223func (cli *ChatCLI) typewriterEffect(text string, delay time.Duration) {
224 agent.PaceText(text, delay)
225}

Callers 5

sendOutputToAIMethod · 0.95
handleNextChunkMethod · 0.95
handleRetryLastChunkMethod · 0.95

Calls 1

PaceTextFunction · 0.92

Tested by 1