Name | llama-index-tools-slack JSON |
Version |
0.3.0
JSON |
| download |
home_page | None |
Summary | llama-index tools slack integration |
upload_time | 2024-11-18 00:58:05 |
maintainer | jerryjliu |
docs_url | None |
author | Your Name |
requires_python | <4.0,>=3.9 |
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.9",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/01/0f/871640c4f0463fac61c483a9ec975e8a8cb9926c4298830248ed1aadaddb/llama_index_tools_slack-0.3.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.3.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b2f1b8832a48b0921b2a716149df3bd9ac78bcac87fd94f641e98b2cc8021b4e",
"md5": "97d42eb20c56badae3728fc501d78b4b",
"sha256": "99d05be2d22a0de0a6ef439e50049bfb392e7681190a638fa90a0bf8db92a0dc"
},
"downloads": -1,
"filename": "llama_index_tools_slack-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "97d42eb20c56badae3728fc501d78b4b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 2584,
"upload_time": "2024-11-18T00:58:03",
"upload_time_iso_8601": "2024-11-18T00:58:03.909388Z",
"url": "https://files.pythonhosted.org/packages/b2/f1/b8832a48b0921b2a716149df3bd9ac78bcac87fd94f641e98b2cc8021b4e/llama_index_tools_slack-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "010f871640c4f0463fac61c483a9ec975e8a8cb9926c4298830248ed1aadaddb",
"md5": "950243a9b904f2423f607e52e25eedf3",
"sha256": "1bb65218076a6e2f144d3e8e504a1077ed37d221a4b327628c16a55b0193c7f5"
},
"downloads": -1,
"filename": "llama_index_tools_slack-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "950243a9b904f2423f607e52e25eedf3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 2383,
"upload_time": "2024-11-18T00:58:05",
"upload_time_iso_8601": "2024-11-18T00:58:05.414264Z",
"url": "https://files.pythonhosted.org/packages/01/0f/871640c4f0463fac61c483a9ec975e8a8cb9926c4298830248ed1aadaddb/llama_index_tools_slack-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-18 00:58:05",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-tools-slack"
}