README about invoice

This commit is contained in:
Steve Androulakis
2025-01-04 13:22:01 -08:00
parent 1f84fc37ea
commit 624b38855c
2 changed files with 5 additions and 2 deletions

View File

@@ -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`

View File

@@ -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.
"""