From 624b38855c3258aa3c9b9b5e1db22d97935041d1 Mon Sep 17 00:00:00 2001 From: Steve Androulakis Date: Sat, 4 Jan 2025 13:22:01 -0800 Subject: [PATCH] README about invoice --- README.md | 3 +++ tools/search_flights.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8b36144..30d7d6c 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,9 @@ This demo shows a multi-turn conversation with an AI agent running inside a Temp * Requires a rapidapi key for sky-scrapper (how we find flights). Set this in the `RAPIDAPI_KEY` environment variable in .env * It's free to sign up and get a key at [RapidAPI](https://rapidapi.com/apiheya/api/sky-scrapper) * If you're lazy go to `tools/search_flights.py` and replace the `get_flights` function with the mock `search_flights_example` that exists in the same file. +* Requires a Stripe key for the `generate_invoice` tool. Set this in the `STRIPE_API_KEY` environment variable in .env + * It's free to sign up and get a key at [Stripe](https://stripe.com/) + * If you're lazy go to `tools/generate_invoice.py` and replace the `generate_invoice` function with the mock `generate_invoice_example` that exists in the same file. * See .env_example for the required environment variables. * Install and run Temporal. Follow the instructions in the [Temporal documentation](https://learn.temporal.io/getting_started/python/dev_environment/#set-up-a-local-temporal-service-for-development-with-temporal-cli) to install and run the Temporal server. * Install the dependencies: `poetry install` diff --git a/tools/search_flights.py b/tools/search_flights.py index 40f4297..52009eb 100644 --- a/tools/search_flights.py +++ b/tools/search_flights.py @@ -40,7 +40,7 @@ def search_airport(query: str) -> list: return [] -def search_flights_realapi(args: dict) -> dict: +def search_flights(args: dict) -> dict: # _realapi """ 1) Looks up airport/city codes via search_airport. 2) Finds the first matching skyId/entityId for both origin & destination. @@ -169,7 +169,7 @@ def search_flights_realapi(args: dict) -> dict: } -def search_flights(args: dict) -> dict: +def search_flights_example(args: dict) -> dict: """ Returns example flight search results in the requested JSON format. """