Name | llama-index-tools-slack JSON |
Version |
0.2.0
JSON |
| download |
home_page | None |
Summary | llama-index tools slack integration |
upload_time | 2024-08-22 14:50:24 |
maintainer | jerryjliu |
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.
|
# Slack Tool
This tool fetches the text from a list of Slack channels. You will need to initialize the loader with your Slack API Token or have the `SLACK_BOT_TOKEN` environment variable set.
## Usage
```python
from llama_index.tools.slack import SlackToolSpec
from llama_index.agent.openai import OpenAIAgent
tool_spec = SlackToolSpec(slack_token="token")
agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())
agent.chat("What is the most recent message in the announcements channel?")
```
`load_data`: Loads messages from a list of channels
`send_message`: Sends a message to a channel
`fetch_channel`: Fetches the list of channels
This loader is designed to be used as a way to load data as a Tool in a Agent.
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-tools-slack",
"maintainer": "jerryjliu",
"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/56/1c/27d15c3ab5a868c87d3d2e08353c08b33b887582c80b3e6713362df32d1e/llama_index_tools_slack-0.2.0.tar.gz",
"platform": null,
"description": "# Slack Tool\n\nThis tool fetches the text from a list of Slack channels. You will need to initialize the loader with your Slack API Token or have the `SLACK_BOT_TOKEN` environment variable set.\n\n## Usage\n\n```python\nfrom llama_index.tools.slack import SlackToolSpec\nfrom llama_index.agent.openai import OpenAIAgent\n\ntool_spec = SlackToolSpec(slack_token=\"token\")\n\nagent = OpenAIAgent.from_tools(tool_spec.to_tool_list())\n\nagent.chat(\"What is the most recent message in the announcements channel?\")\n```\n\n`load_data`: Loads messages from a list of channels\n`send_message`: Sends a message to a channel\n`fetch_channel`: Fetches the list of channels\n\nThis loader is designed to be used as a way to load data as a Tool in a Agent.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index tools slack integration",
"version": "0.2.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5f7eedc20e9fd6633d03a1a233ddd5c0d7fecae3984135228719d7555de8fc17",
"md5": "229465fab1127dd8e03cca1ed0761c21",
"sha256": "be3fa5a178580cb648a34d334ba988490c2e56b8bc94a4f8ee4d4ee6f776e196"
},
"downloads": -1,
"filename": "llama_index_tools_slack-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "229465fab1127dd8e03cca1ed0761c21",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8.1",
"size": 2588,
"upload_time": "2024-08-22T14:50:23",
"upload_time_iso_8601": "2024-08-22T14:50:23.217583Z",
"url": "https://files.pythonhosted.org/packages/5f/7e/edc20e9fd6633d03a1a233ddd5c0d7fecae3984135228719d7555de8fc17/llama_index_tools_slack-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "561c27d15c3ab5a868c87d3d2e08353c08b33b887582c80b3e6713362df32d1e",
"md5": "f53d227a197ef9966612713102480a7d",
"sha256": "be4a5a6a2c6906e007c646082f8406712c805eef4db8e2701bb169da9f8227fa"
},
"downloads": -1,
"filename": "llama_index_tools_slack-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "f53d227a197ef9966612713102480a7d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8.1",
"size": 2391,
"upload_time": "2024-08-22T14:50:24",
"upload_time_iso_8601": "2024-08-22T14:50:24.639452Z",
"url": "https://files.pythonhosted.org/packages/56/1c/27d15c3ab5a868c87d3d2e08353c08b33b887582c80b3e6713362df32d1e/llama_index_tools_slack-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-22 14:50:24",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-tools-slack"
}