llama-index tools slack integration
Project description
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
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file llama_index_tools_slack-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_tools_slack-0.3.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bb65218076a6e2f144d3e8e504a1077ed37d221a4b327628c16a55b0193c7f5 |
|
MD5 | 950243a9b904f2423f607e52e25eedf3 |
|
BLAKE2b-256 | 010f871640c4f0463fac61c483a9ec975e8a8cb9926c4298830248ed1aadaddb |
File details
Details for the file llama_index_tools_slack-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_tools_slack-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99d05be2d22a0de0a6ef439e50049bfb392e7681190a638fa90a0bf8db92a0dc |
|
MD5 | 97d42eb20c56badae3728fc501d78b4b |
|
BLAKE2b-256 | b2f1b8832a48b0921b2a716149df3bd9ac78bcac87fd94f641e98b2cc8021b4e |