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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be4a5a6a2c6906e007c646082f8406712c805eef4db8e2701bb169da9f8227fa |
|
MD5 | f53d227a197ef9966612713102480a7d |
|
BLAKE2b-256 | 561c27d15c3ab5a868c87d3d2e08353c08b33b887582c80b3e6713362df32d1e |
Close
Hashes for llama_index_tools_slack-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be3fa5a178580cb648a34d334ba988490c2e56b8bc94a4f8ee4d4ee6f776e196 |
|
MD5 | 229465fab1127dd8e03cca1ed0761c21 |
|
BLAKE2b-256 | 5f7eedc20e9fd6633d03a1a233ddd5c0d7fecae3984135228719d7555de8fc17 |