Class | Package | Serializable | JS support | Package latest |
---|---|---|---|---|
DiscordReadMessages , DiscordSendMessage | langchain-discord-shikenso | N/A | TBD |
DiscordReadMessages
: Reads messages from a specified channel.DiscordSendMessage
: Sends messages to a specified channel.langchain-discord-shikenso
package. Install it as follows:
DISCORD_BOT_TOKEN
as an environment variable to authenticate with the Discord API.
langchain_discord
. Adjust as needed for your specific usage.
ToolCall
, pass it to tool.invoke()
in the format shown below.
DiscordReadMessages
and DiscordSendMessage
tools in a chain or agent with an LLM. This example assumes you have a function (like create_react_agent
) that sets up a LangChain-style agent capable of calling tools when appropriate.