Name | llama-index-tools-slack JSON |
Version |
0.4.0
JSON |
| download |
home_page | None |
Summary | llama-index tools slack integration |
upload_time | 2025-07-31 03:01:36 |
maintainer | jerryjliu |
docs_url | None |
author | None |
requires_python | <4.0,>=3.9 |
license | None |
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.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
tool_spec = SlackToolSpec(slack_token="token")
agent = FunctionAgent(
tools=tool_spec.to_tool_list(),
llm=OpenAI(model="gpt-4.1"),
)
print(
await agent.run(
"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": null,
"author_email": "Your Name <you@example.com>",
"download_url": "https://files.pythonhosted.org/packages/15/45/ab44424f9956604c73d887d5c5b6d5a44ffc9325b0a2168c3eb16caea529/llama_index_tools_slack-0.4.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.core.agent.workflow import FunctionAgent\nfrom llama_index.llms.openai import OpenAI\n\ntool_spec = SlackToolSpec(slack_token=\"token\")\n\nagent = FunctionAgent(\n tools=tool_spec.to_tool_list(),\n llm=OpenAI(model=\"gpt-4.1\"),\n)\n\nprint(\n await agent.run(\n \"What is the most recent message in the announcements channel?\"\n )\n)\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": null,
"summary": "llama-index tools slack integration",
"version": "0.4.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "bc98e32a61a4bf0a13683e1aa45ba1d933fa8c234099194ffad37378dc0f68f5",
"md5": "6767ed4b368c495464dfd54b11082bd9",
"sha256": "a7d58cec8c592545d59c2b582d32470dca4177c6c10741d23da73312b4949f16"
},
"downloads": -1,
"filename": "llama_index_tools_slack-0.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6767ed4b368c495464dfd54b11082bd9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 3456,
"upload_time": "2025-07-31T03:01:35",
"upload_time_iso_8601": "2025-07-31T03:01:35.790508Z",
"url": "https://files.pythonhosted.org/packages/bc/98/e32a61a4bf0a13683e1aa45ba1d933fa8c234099194ffad37378dc0f68f5/llama_index_tools_slack-0.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "1545ab44424f9956604c73d887d5c5b6d5a44ffc9325b0a2168c3eb16caea529",
"md5": "6aff316fa3ac80be47d4d573fd03a2cc",
"sha256": "f7c25c2163b7bf0f0ad5202589578b1b36f83ce21d3bb61773e10b087f5da24f"
},
"downloads": -1,
"filename": "llama_index_tools_slack-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "6aff316fa3ac80be47d4d573fd03a2cc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 3928,
"upload_time": "2025-07-31T03:01:36",
"upload_time_iso_8601": "2025-07-31T03:01:36.845602Z",
"url": "https://files.pythonhosted.org/packages/15/45/ab44424f9956604c73d887d5c5b6d5a44ffc9325b0a2168c3eb16caea529/llama_index_tools_slack-0.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-31 03:01:36",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-tools-slack"
}