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 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 annoucements 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. See here for examples.
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8927f00a7ed9a61021bd5f6c352ab688cee4fdb9cb2a997bc6685e5d2c6542c |
|
MD5 | f732ea0ca6902993c49db38dba06fc12 |
|
BLAKE2b-256 | edb0ab1f32ac097a32334fa4276ee42109dcbbb73f8dbae16a61df94a5144e93 |
Close
Hashes for llama_index_tools_slack-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9b20b2dbd1633e496108e0b4cb2dcef2174175f6c71aad79710f8c38385b145 |
|
MD5 | 9d3046ca77b50addcba2016c057647f5 |
|
BLAKE2b-256 | 532412d716fd93b951f9f06d6ac14eedac18e5f2cb0f1b05c75e2f527b2c2a23 |