Replies: 1 comment
-
. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
We would like to integrate Aviationstack's API into LangChain as a tool to query information about different airlines. The idea here is to chain this tool with other related tools in LangChain such as Google Places and Amadeus by querying via airlines to connect information together. Additionally, a toolkit will be made to help give the agent an action to choose based on the prompt, similar to many other toolkits in LangChain, an example being Steam’s API. For now, this implementation will cover only a limited amount of use cases with the option to expand on more features later.
A potential example can be seen below:
And the output could be the following (TBD):
Motivation
LangChain already offers flight data in the form of Amadeus’ API, which includes information such as seats, bookings, hotels, transfers, etc. Aviationstack is able to fill in gaps with more tools related to aviation intelligence, such as real time and historical flight data, as well as information about aircrafts, allowings for more aviation analysis amongst different airlines. Overall, this would help expand the catalog for the aviation space in LangChain.
Proposal (If applicable)
This implementation will be limited to the endpoints that are only allowed on the free plan of Aviationstack. There are other endpoints that are also beyond the scope of what this feature tries to achieve, these endpoints can serve as a stretch goal. The following endpoints as a starter will be implemented: Flights and Airlines. Note that depending on the complexity of the implementation, some of these endpoints may have to be omitted as well.
The following files will need to be added:
The following files will need to be modified:
Sample code for
tool.py
:Sample code for the utility wrapper:
Sample toolkit:
Sample Prompt:
Next Steps
Beta Was this translation helpful? Give feedback.
All reactions