MCPcopy Index your code
hub / github.com/codingis4noobs2/QuickDigest / handle_stream

Function handle_stream

app.py:108–114  ·  view source on GitHub ↗
(root, stream: StreamingAgentChatResponse)

Source from the content-addressed store, hash-verified

106
107 # Handle streaming responses
108 def handle_stream(root, stream: StreamingAgentChatResponse):
109 text = ""
110 root.markdown("Thinking...")
111 for token in stream.response_gen:
112 text += token
113 root.markdown(text)
114 return text
115
116 # Define constants and settings
117 CACHE_DIR = "./uploads"

Callers 1

chat_with_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected