DiscordAgent
. You can read more about how it’s used here.
All agents should be based on ConversableAgent, this makes them usable in all orchestrations.
The DiscordAgent uses two tools to send and retrieve messages for a Discord channel. In addition to ConversableAgent’s parameters, it also takes in the authentication and channel details, as well as a boolean to indicate whether writing instructions should be appended to the agent’s system message.
Let’s look at the code for DiscordAgent with annotations added (current code here):
deep_research
.
Create your agent code in a folder under autogen/agents/contrib/
.
Put the tests for the agent in a folder under test/agents/contrib/
.
If you are creating tools, put them in a folder under autogen/tools/contrib/
.
For tools tests, put them in a folder under test/tools/contrib
.
autogen
and ag2
packages because they propagate automatically to setup_ag2.py and setup_autogen.py.
contrib
namespaces that you can look at and use as a starting point for your own agents and tools.