mirror of
https://github.com/microsoft/autogen.git
synced 2025-10-03 03:57:36 +00:00

* Add isort * Apply isort on py files * Fix circular import * Fix format for notebooks * Fix format --------- Co-authored-by: Chi Wang <wang.chi@microsoft.com>
14 lines
403 B
Python
14 lines
403 B
Python
import zmq
|
|
|
|
from autogencap.Actor import Actor
|
|
from autogencap.Constants import Termination_Topic
|
|
from autogencap.DebugLog import Debug
|
|
|
|
|
|
class AGActor(Actor):
|
|
def start(self, context: zmq.Context):
|
|
super().start(context)
|
|
str_topic = Termination_Topic
|
|
Debug(self.actor_name, f"subscribe to: {str_topic}")
|
|
self._socket.setsockopt_string(zmq.SUBSCRIBE, f"{str_topic}")
|