Name | llama-index-packs-gmail-openai-agent JSON |
Version |
0.1.0
JSON |
| download |
home_page | |
Summary | llama-index packs gmail_openai_agent integration |
upload_time | 2024-02-10 23:15:47 |
maintainer | |
docs_url | None |
author | Your Name |
requires_python | >=3.8.1,<3.12 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Gmail OpenAI Agent Pack
Create an OpenAI agent pre-loaded with a tool to interact with Gmail. The tool used is the [Gmail LlamaHub tool](https://llamahub.ai/l/tools-gmail).
## CLI Usage
You can download llamapacks directly using `llamaindex-cli`, which comes installed with the `llama-index` python package:
```bash
llamaindex-cli download-llamapack GmailOpenAIAgentPack --download-dir ./gmail_pack
```
You can then inspect the files at `./gmail_pack` and use them as a template for your own project!
## Code Usage
You can download the pack to a the `./gmail_pack` directory:
```python
from llama_index.core.llama_pack import download_llama_pack
# download and install dependencies
GmailOpenAIAgentPack = download_llama_pack(
"GmailOpenAIAgentPack", "./gmail_pack"
)
gmail_agent_pack = GmailOpenAIAgentPack()
```
From here, you can use the pack, or inspect and modify the pack in `./gmail_pack`.
The `run()` function is a light wrapper around `agent.chat()`.
```python
response = gmail_agent_pack.run("What is my most recent email?")
```
You can also use modules individually.
```python
# Use the agent
agent = gmail_agent_pack.agent
response = agent.chat("What is my most recent email?")
# Use the tool spec in another agent
from llama_index.core.agents import ReActAgent
tool_spec = gmail_agent_pack.tool_spec
agent = ReActAgent.from_tools(tool_spec.to_tool_lost())
```
Raw data
{
"_id": null,
"home_page": "",
"name": "llama-index-packs-gmail-openai-agent",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8.1,<3.12",
"maintainer_email": "",
"keywords": "",
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/ed/7b/315f22869ab0247ba89901294bec4b5eacf980c91a56bb955053a25992ba/llama_index_packs_gmail_openai_agent-0.1.0.tar.gz",
"platform": null,
"description": "# Gmail OpenAI Agent Pack\n\nCreate an OpenAI agent pre-loaded with a tool to interact with Gmail. The tool used is the [Gmail LlamaHub tool](https://llamahub.ai/l/tools-gmail).\n\n## CLI Usage\n\nYou can download llamapacks directly using `llamaindex-cli`, which comes installed with the `llama-index` python package:\n\n```bash\nllamaindex-cli download-llamapack GmailOpenAIAgentPack --download-dir ./gmail_pack\n```\n\nYou can then inspect the files at `./gmail_pack` and use them as a template for your own project!\n\n## Code Usage\n\nYou can download the pack to a the `./gmail_pack` directory:\n\n```python\nfrom llama_index.core.llama_pack import download_llama_pack\n\n# download and install dependencies\nGmailOpenAIAgentPack = download_llama_pack(\n \"GmailOpenAIAgentPack\", \"./gmail_pack\"\n)\n\ngmail_agent_pack = GmailOpenAIAgentPack()\n```\n\nFrom here, you can use the pack, or inspect and modify the pack in `./gmail_pack`.\n\nThe `run()` function is a light wrapper around `agent.chat()`.\n\n```python\nresponse = gmail_agent_pack.run(\"What is my most recent email?\")\n```\n\nYou can also use modules individually.\n\n```python\n# Use the agent\nagent = gmail_agent_pack.agent\nresponse = agent.chat(\"What is my most recent email?\")\n\n# Use the tool spec in another agent\nfrom llama_index.core.agents import ReActAgent\n\ntool_spec = gmail_agent_pack.tool_spec\nagent = ReActAgent.from_tools(tool_spec.to_tool_lost())\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index packs gmail_openai_agent integration",
"version": "0.1.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "412cc97570b82b07d85a07c82c7c505d2f1ac7c000110b36442268c2293f0f6a",
"md5": "ab41100a2fbbd3a11d8b25137ccb8270",
"sha256": "38a5273af379da299ac97ab23c12d2ec3a224b5c80a5e20035dd9e439a678959"
},
"downloads": -1,
"filename": "llama_index_packs_gmail_openai_agent-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ab41100a2fbbd3a11d8b25137ccb8270",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8.1,<3.12",
"size": 2913,
"upload_time": "2024-02-10T23:15:46",
"upload_time_iso_8601": "2024-02-10T23:15:46.162254Z",
"url": "https://files.pythonhosted.org/packages/41/2c/c97570b82b07d85a07c82c7c505d2f1ac7c000110b36442268c2293f0f6a/llama_index_packs_gmail_openai_agent-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ed7b315f22869ab0247ba89901294bec4b5eacf980c91a56bb955053a25992ba",
"md5": "4a2fbf40a48d2a3a263898abceddc349",
"sha256": "69afbb14fe38dd47a6c1d7768ee23995dee8cb7f8e8f2a46b9f30514a867cab7"
},
"downloads": -1,
"filename": "llama_index_packs_gmail_openai_agent-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "4a2fbf40a48d2a3a263898abceddc349",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8.1,<3.12",
"size": 2335,
"upload_time": "2024-02-10T23:15:47",
"upload_time_iso_8601": "2024-02-10T23:15:47.280359Z",
"url": "https://files.pythonhosted.org/packages/ed/7b/315f22869ab0247ba89901294bec4b5eacf980c91a56bb955053a25992ba/llama_index_packs_gmail_openai_agent-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-10 23:15:47",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-packs-gmail-openai-agent"
}