Make RunContext internal (#386)

* Make RunContext internal

* Mypy
This commit is contained in:
Eric Zhu
2024-08-21 13:59:59 -07:00
committed by GitHub
parent 09ceef4b4a
commit ed0890525d
40 changed files with 2360 additions and 2329 deletions

View File

@@ -158,13 +158,13 @@ async def main() -> None:
),
)
await runtime.add_subscription(TypeSubscription("default", "AggregatorAgent"))
run_context = runtime.start()
runtime.start()
await runtime.publish_message(
AggregatorTask(task="What are something fun to do in SF?"), topic_id=TopicId("default", "default")
)
# Keep processing messages.
await run_context.stop_when_idle()
await runtime.stop_when_idle()
if __name__ == "__main__":