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

Method update_item

examples/research_bot/printer.py:21–27  ·  view source on GitHub ↗
(
        self, item_id: str, content: str, is_done: bool = False, hide_checkmark: bool = False
    )

Source from the content-addressed store, hash-verified

19 self.hide_done_ids.add(item_id)
20
21 def update_item(
22 self, item_id: str, content: str, is_done: bool = False, hide_checkmark: bool = False
23 ) -> None:
24 self.items[item_id] = (content, is_done)
25 if hide_checkmark:
26 self.hide_done_ids.add(item_id)
27 self.flush()
28
29 def mark_item_done(self, item_id: str) -> None:
30 self.items[item_id] = (self.items[item_id][0], True)

Callers 4

runMethod · 0.45
_plan_searchesMethod · 0.45
_perform_searchesMethod · 0.45
_write_reportMethod · 0.45

Calls 2

flushMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected