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

@@ -66,7 +66,7 @@ async def main() -> None:
),
)
run_context = runtime.start()
runtime.start()
# Send a task to the tool user.
response = await runtime.send_message(
@@ -75,7 +75,7 @@ async def main() -> None:
print(response.content)
# Run the runtime until the task is completed.
await run_context.stop()
await runtime.stop()
if __name__ == "__main__":