mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-14 23:35:21 -05:00
add example of use contextvar (#105)
This commit is contained in:
@@ -12,6 +12,9 @@ class AgentId:
|
||||
def __hash__(self) -> int:
|
||||
return hash((self._namespace, self._name))
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"AgentId({self._name}, {self._namespace})"
|
||||
|
||||
def __eq__(self, value: object) -> bool:
|
||||
if not isinstance(value, AgentId):
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user