We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8145320 commit 20140e1Copy full SHA for 20140e1
python/packages/autogen-core/src/autogen_core/base/_topic.py
@@ -26,7 +26,7 @@ class TopicId:
26
27
def __post_init__(self) -> None:
28
if is_valid_topic_type(self.type) is False:
29
- raise ValueError(f"Invalid topic type: {self.type}")
+ raise ValueError(f"Invalid topic type: {self.type}. Must match the pattern: ^[\\w\\-\\.\\:\\=]+\\Z")
30
31
def __str__(self) -> str:
32
return f"{self.type}/{self.source}"
0 commit comments