mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
Disallow unions in dataclass messages, move check to creation instead of usage (#499)
* Disallow unions in dataclass messages, move check to creation instead of usage * make image serializable by pydantic * fixup team one * update lockfile * fix * fix dataclass checking bug * fix mypy
This commit is contained in:
@@ -30,7 +30,7 @@ async def main() -> None:
|
||||
|
||||
task_message = UserMessage(content="Test Message", source="User")
|
||||
runtime.start()
|
||||
await runtime.publish_message(BroadcastMessage(task_message), topic_id=DefaultTopicId())
|
||||
await runtime.publish_message(BroadcastMessage(content=task_message), topic_id=DefaultTopicId())
|
||||
|
||||
await runtime.stop_when_idle()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user