mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-14 05:56:40 +00:00
Amadeus toolkit minor update (#13002)
- update `Amadeus` toolkit with ability to switch Amadeus environments - update minor code explanations --------- Co-authored-by: MinjiK <minji.kim@amadeus.com>
This commit is contained in:
@@ -6,9 +6,13 @@
|
||||
"source": [
|
||||
"# Amadeus\n",
|
||||
"\n",
|
||||
"This notebook walks you through connecting LangChain to the `Amadeus` travel information API\n",
|
||||
"This notebook walks you through connecting LangChain to the `Amadeus` travel APIs.\n",
|
||||
"\n",
|
||||
"To use this toolkit, you will need to set up your credentials explained in the [Amadeus for developers getting started overview](https://developers.amadeus.com/get-started/get-started-with-self-service-apis-335). Once you've received a AMADEUS_CLIENT_ID and AMADEUS_CLIENT_SECRET, you can input them as environmental variables below."
|
||||
"This `Amadeus` toolkit allows agents to make decision when it comes to travel, especially searching and booking trips with flights.\n",
|
||||
"\n",
|
||||
"To use this toolkit, you will need to have your Amadeus API keys ready, explained in the [Get started Amadeus Self-Service APIs](https://developers.amadeus.com/get-started/get-started-with-self-service-apis-335). Once you've received a AMADEUS_CLIENT_ID and AMADEUS_CLIENT_SECRET, you can input them as environmental variables below.\n",
|
||||
"\n",
|
||||
"Note: Amadeus Self-Service APIs offers a test enviornment with [free limited data](https://amadeus4dev.github.io/developer-guides/test-data/). This allows developers to build and test their applications before deploying them to production. To access real-time data, you will need to [move to the production environment](https://amadeus4dev.github.io/developer-guides/API-Keys/moving-to-production/)."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -40,7 +44,8 @@
|
||||
"\n",
|
||||
"os.environ[\"AMADEUS_CLIENT_ID\"] = \"CLIENT_ID\"\n",
|
||||
"os.environ[\"AMADEUS_CLIENT_SECRET\"] = \"CLIENT_SECRET\"\n",
|
||||
"os.environ[\"OPENAI_API_KEY\"] = \"API_KEY\""
|
||||
"os.environ[\"OPENAI_API_KEY\"] = \"API_KEY\"\n",
|
||||
"# os.environ[\"AMADEUS_HOSTNAME\"] = \"production\" or \"test\""
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user