Repository for Implementing AI Agents in Python hands-on workshop
These instructions will guide you through configuring a GitHub Codespaces environment that you can use to run the course labs.
1. Change your codespace's default timeout from 30 minutes to longer. To do this, when logged in to GitHub, go to https://github.com/settings/codespaces and scroll down on that page until you see the Default idle timeout section. Adjust the value as desired.
2. Click on the button below to start a new codespace from this repository.
3. Then click on the option to create a new codespace.
This will run for a long time (10 or more minutes) while it gets everything ready.
After the initial startup, it will run a script to setup the python environment, install needed python pieces, install Ollama, and then download the models we will use. This will take several more minutes to run. It will look like this while this is running.
The codespace is ready to use when you see a prompt like the one shown below in its terminal.
4. Run the warm-up script for faster LLM interactions.
python scripts/warmup.py --embed --keep-alive 300m --auto-pull
5. Open up the labs.md file so you can follow along with the labs. You can either open it in a separate browser instance or open it in the codespace.
Now, you are ready for the labs!
NOTE: If your codespace times out and you need to reopen it
- Go to https://github.com/your_github_userid/codespaces
- Find the codespace in the list, right-click, and select Open in browser
- Repeat the step from the main section (#4) above to run the warmup script again.





