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
Close
Hashes for llama_index_tools_slack-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cc152582a5a773e29ae0033e0c55bd6ca6955f8803bd965818c6b80d4fc6e69 |
|
MD5 | 793c32d3d6f8e78e920660aef18da347 |
|
BLAKE2b-256 | e53e296ab01b92b560bdcf85d45e30078f8c2676b3c158600badaa6085c24ab0 |
Close
Hashes for llama_index_tools_slack-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 273b7c6a2c19041a081ba71ece6089a4a5adfd68fc31c72df9c8d25a105b0cad |
|
MD5 | 0668573085e81b51e22cedab6a5880e2 |
|
BLAKE2b-256 | 57145d092b2afe1ba2c5b5ce402324b236d05807fe83daf00631550a3d214e14 |