llama-index-tools-weather


Namellama-index-tools-weather JSON
Version 0.3.0 PyPI version JSON
download
home_pageNone
Summaryllama-index tools weather integration
upload_time2024-11-17 23:05:39
maintainerlogan-markewich
docs_urlNone
authorYour Name
requires_python<4.0,>=3.9
licenseMIT
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.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/fb/ff/fdf4de3c8ff5d0c5fe66b26b841f048e4b9cdf92caa6e7819c5b4cd263d7/llama_index_tools_weather-0.3.0.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.3.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "365be4110b9720f8f07191c73a8fc8f224071a0357d8b61fe305d10a27d88ffb",
                "md5": "5adeac53356dc0393f53dde99ef2c011",
                "sha256": "014dc0cd69c89280db4ed846fb5be05413c1c2504ba8e4573a9b9ae57d1f1604"
            },
            "downloads": -1,
            "filename": "llama_index_tools_weather-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5adeac53356dc0393f53dde99ef2c011",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 3230,
            "upload_time": "2024-11-17T23:05:38",
            "upload_time_iso_8601": "2024-11-17T23:05:38.329017Z",
            "url": "https://files.pythonhosted.org/packages/36/5b/e4110b9720f8f07191c73a8fc8f224071a0357d8b61fe305d10a27d88ffb/llama_index_tools_weather-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fbfffdf4de3c8ff5d0c5fe66b26b841f048e4b9cdf92caa6e7819c5b4cd263d7",
                "md5": "3256e51eba3118c16de2aaaea0f8ffc6",
                "sha256": "2da2ad2241da282878616eddfcdc51a7bf9ef7f205835ada4193923e8bd1f9ef"
            },
            "downloads": -1,
            "filename": "llama_index_tools_weather-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3256e51eba3118c16de2aaaea0f8ffc6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 2968,
            "upload_time": "2024-11-17T23:05:39",
            "upload_time_iso_8601": "2024-11-17T23:05:39.803298Z",
            "url": "https://files.pythonhosted.org/packages/fb/ff/fdf4de3c8ff5d0c5fe66b26b841f048e4b9cdf92caa6e7819c5b4cd263d7/llama_index_tools_weather-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-17 23:05:39",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-tools-weather"
}
        
Elapsed time: 0.36953s