Prerequisites
To build agents, you need a clean environment. We will use:
- Python 3.10+
- Virtual Environments (venv or conda)
- VS Code
- Docker
Step-by-Step CLI Setup:
- Create a project folder:
mkdir agent-lab && cd agent-lab - Initialize venv:
python -m venv venv - Activate:
source venv/bin/activate(Mac/Linux) orvenv\Scripts\activate(Win). - Install core libs:
pip install openai python-dotenv.
Environment Variables
Never hardcode API keys. Create a .env file and use os.getenv().