Skip to content

Remove unused nest_asyncio in favor of top-level await in Copy of 5_tool_calling.ipynb - #4

Open
denis-samatov wants to merge 1 commit into
AnkunHuang:mainfrom
denis-samatov:pr-tool-calling-remove-nest-asyncio
Open

Remove unused nest_asyncio in favor of top-level await in Copy of 5_tool_calling.ipynb#4
denis-samatov wants to merge 1 commit into
AnkunHuang:mainfrom
denis-samatov:pr-tool-calling-remove-nest-asyncio

Conversation

@denis-samatov

Copy link
Copy Markdown

Summary

In modern notebook environments, asyncio.run() often fails because an event loop is already running. This removes the nest_asyncio import/apply() calls and updates all relevant cells (3, 15, 25, 27) to use await directly instead, which is the standard practice in that situation.

Note: this diff also reformats the notebook's JSON (pretty-printed instead of minified), a side effect of editing it programmatically.

Test plan

  • Run the notebook top-to-bottom in a standard Jupyter/Colab environment; confirm the async cells execute without needing nest_asyncio

…calling.ipynb

In modern notebook environments, asyncio.run() often fails because
an event loop is already running. This removes the nest_asyncio
import/apply() calls and updates all relevant cells to use await
directly instead, which is the standard practice in that situation.

Note: this diff also reformats the notebook's JSON (pretty-printed
instead of minified), a side effect of editing it programmatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant