MCPcopy Index your code
hub / github.com/google/adk-python / flush_text

Function flush_text

src/google/adk/utils/_debug_output.py:55–60  ·  view source on GitHub ↗

Flush accumulated text parts as a single output.

()

Source from the content-addressed store, hash-verified

53 text_buffer: list[str] = []
54
55 def flush_text() -> None:
56 """Flush accumulated text parts as a single output."""
57 if text_buffer:
58 combined_text = ''.join(text_buffer)
59 print(f'{event.author} > {combined_text}')
60 text_buffer.clear()
61
62 for part in event.content.parts:
63 # Text parts are always shown regardless of verbose setting

Callers 1

print_eventFunction · 0.85

Calls 2

joinMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected