ExecuteCodeBlockEvent autogen.events.agent_events.ExecuteCodeBlockEvent # ExecuteCodeBlockEvent(*, uuid=None, code, language, code_block_count, recipient) Bases: BaseEvent Source code in autogen/events/agent_events.py 632 633 634 635 636 637def __init__( self, *, uuid: Optional[UUID] = None, code: str, language: str, code_block_count: int, recipient: "Agent" ): super().__init__( uuid=uuid, code=code, language=language, code_block_count=code_block_count, recipient_name=recipient.name ) code instance-attribute # code language instance-attribute # language code_block_count instance-attribute # code_block_count recipient_name instance-attribute # recipient_name uuid instance-attribute # uuid print # print(f=None) Source code in autogen/events/agent_events.py 639 640 641 642 643 644 645 646 647 648def print(self, f: Optional[Callable[..., Any]] = None) -> None: f = f or print f( colored( f"\n>>>>>>>> EXECUTING CODE BLOCK {self.code_block_count} (inferred language is {self.language})...", "red", ), flush=True, )