This project demonstrates the OpenAI Agents SDK with both a Python backend and Svelte frontend. Follow these steps to set up and run the project:
- Python 3.7 or later
- Node.js 14 or later (for the frontend)
- An OpenAI API key
-
Create a virtual environment:
python -m venv .venv
-
Activate the virtual environment:
- On Windows:
.venv\Scripts\activate
- On macOS/Linux:
source .venv/bin/activate
- On Windows:
-
Install dependencies:
pip install -r requirements.txt
-
Set your OpenAI API key:
export OPENAI_API_KEY="your-api-key-here"
-
Run the backend:
python my_project/main.py
-
Navigate to the svelte-project directory:
cd svelte-project
-
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open your browser and navigate to http://localhost:3000
For a simple GUI using Tkinter, run:
python ui/app.py
Run tests with:
python -m pytest tests/
Note: The Svelte project is set up but requires the missing component files to be created based on the App.svelte imports.