Getting started π―
Prerequisites
Before starting, you will need the following:
- Python βοΈ (opens in a new tab) 3.8+.
- Poetry βοΈ (opens in a new tab).
- ΞΌAgents framework βοΈ.
Set up the project and virtual environment
First of all, create a fetch-holiday
folder for your project files: mkdir fetch-holiday
. Then, create another src
sub-folder within it for your scripts: mkdir src
.
To run the example, you will need API keys from:
-
RapidAPI Key
- Visit RapidAPI βοΈ (opens in a new tab) and sign up or log in.
- Search for the Skyscanner API and subscribe.
- Once subscribed, copy your X-RapidAPI-Key.
-
OpenAI API Key
- Visit OpenAI βοΈ (opens in a new tab).
- Sign up or log in.
- Navigate to the API section to obtain your API key.
_Note that if you have run out of OpenAI credits, you will not be able to get results for this example.__
-
SerpAPI Key
- Visit SerpAPI βοΈ (opens in a new tab) and sign up or log in.
- Your API key will be available on the dashboard.
Once you have all three keys, create a .env
file within the src
folder in your project, including the following:
export RAPIDAPI_API_KEY="{GET THE API KEY}"
export OPENAI_API_KEY="{GET THE API KEY}"
export SERPAPI_API_KEY="{GET THE API KEY}"
To use the environment variables from .env
and install the project:
cd src
source .env
poetry intall