MCPcopy Create free account
hub / github.com/openai/openai-agents-python / flush

Method flush

examples/research_bot/printer.py:33–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 self.flush()
32
33 def flush(self) -> None:
34 renderables: list[Any] = []
35 for item_id, (content, is_done) in self.items.items():
36 if is_done:
37 prefix = "✅ " if item_id not in self.hide_done_ids else ""
38 renderables.append(prefix + content)
39 else:
40 renderables.append(Spinner("dots", text=content))
41 self.live.update(Group(*renderables))

Callers 4

update_itemMethod · 0.95
mark_item_doneMethod · 0.95
write_main_log_lineFunction · 0.45
run_singleFunction · 0.45

Calls 3

GroupClass · 0.85
appendMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected