Name | llama-index-tools-weather JSON |
Version |
0.2.1
JSON |
| download |
home_page | None |
Summary | llama-index tools weather integration |
upload_time | 2024-10-14 19:17:51 |
maintainer | logan-markewich |
docs_url | None |
author | Your Name |
requires_python | <4.0,>=3.8.1 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Open Weather Map Tool
This tool connects to the [OpenWeatherMap](https://openweathermap.org/api)'s OneCall API, using the `pyowm` Python package. You must initialize the tool with your OpenWeatherMap API token
The tool has access to the following functions:
- the current weather
- the weather tomorrow
## Usage
Here's an example usage of the OpenWeatherMapToolSpec.
```python
from llama_index.tools.weather import OpenWeatherMapToolSpec
from llama_index.agent.openai import OpenAIAgent
tool_spec = OpenWeatherMapToolSpec(key="...")
agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())
agent.chat("What is the temperature like in Paris?")
agent.chat("What is the wind like in Budapest tomorrow?")
```
`weather_at_location`: Use pyowm to get current weather details at a location
`forecast_tommorrow_at_location`: Use pyowm to get the forecast for tomorrow at a location.
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-tools-weather",
"maintainer": "logan-markewich",
"docs_url": null,
"requires_python": "<4.0,>=3.8.1",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/e3/21/9e40f3ca3cbc9ceee59eea238167395d8ea090ef4568174d0a20ade8b4e9/llama_index_tools_weather-0.2.1.tar.gz",
"platform": null,
"description": "# Open Weather Map Tool\n\nThis tool connects to the [OpenWeatherMap](https://openweathermap.org/api)'s OneCall API, using the `pyowm` Python package. You must initialize the tool with your OpenWeatherMap API token\n\nThe tool has access to the following functions:\n\n- the current weather\n- the weather tomorrow\n\n## Usage\n\nHere's an example usage of the OpenWeatherMapToolSpec.\n\n```python\nfrom llama_index.tools.weather import OpenWeatherMapToolSpec\nfrom llama_index.agent.openai import OpenAIAgent\n\ntool_spec = OpenWeatherMapToolSpec(key=\"...\")\n\nagent = OpenAIAgent.from_tools(tool_spec.to_tool_list())\n\nagent.chat(\"What is the temperature like in Paris?\")\nagent.chat(\"What is the wind like in Budapest tomorrow?\")\n```\n\n`weather_at_location`: Use pyowm to get current weather details at a location\n\n`forecast_tommorrow_at_location`: Use pyowm to get the forecast for tomorrow at a location.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index tools weather integration",
"version": "0.2.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a0a985598837d4f37b78d8841bdd12c1fac825a044d1ac78dc74392293f81693",
"md5": "36d56bb479669dbe928b0affd2f9ed3f",
"sha256": "2fbb96577b1f3a6cf76b630204ad2bd648ebe109a1bd5cf829cfaa4f6adec6d4"
},
"downloads": -1,
"filename": "llama_index_tools_weather-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "36d56bb479669dbe928b0affd2f9ed3f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8.1",
"size": 3230,
"upload_time": "2024-10-14T19:17:50",
"upload_time_iso_8601": "2024-10-14T19:17:50.403619Z",
"url": "https://files.pythonhosted.org/packages/a0/a9/85598837d4f37b78d8841bdd12c1fac825a044d1ac78dc74392293f81693/llama_index_tools_weather-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e3219e40f3ca3cbc9ceee59eea238167395d8ea090ef4568174d0a20ade8b4e9",
"md5": "507c48d3e331e497ddf31204b4a48293",
"sha256": "12e68c7df3863ca6094ec26b0540664c801b7bfb1cdf17d7eb656f3c0754a9dc"
},
"downloads": -1,
"filename": "llama_index_tools_weather-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "507c48d3e331e497ddf31204b4a48293",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8.1",
"size": 2911,
"upload_time": "2024-10-14T19:17:51",
"upload_time_iso_8601": "2024-10-14T19:17:51.907825Z",
"url": "https://files.pythonhosted.org/packages/e3/21/9e40f3ca3cbc9ceee59eea238167395d8ea090ef4568174d0a20ade8b4e9/llama_index_tools_weather-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-14 19:17:51",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-tools-weather"
}