<repository_url>
with the actual URL of the Galadriel repository.
.env
file in the root of your agent directory. Populate it with the necessary environment variables:
<YOUR_DISCORD_BOT_TOKEN>
with the bot token you obtained from the Discord Developer Portal.<YOUR_DISCORD_SERVER_ID>
with the ID of your Discord server. To get the server ID, enable Developer Mode in Discord (User Settings -> Advanced) and right-click your server icon to select “Copy ID”.<YOUR_OPENAI_API_KEY>
with your OpenAI API key.<YOUR_COMPOSIO_API_KEY>
with your Composio API key, if you intend to use Composio tools.agent.json
file containing the personality settings for your agent. This file dictates the agent’s behavior and style of communication.
Create a agent.json
file in your agent directory. You can customize this file to define the agent’s persona. Here’s an example configuration for an Elon Musk persona:
agent/character_agent.py
file:
Replace the content of agent/character_agent.py
with the following code:
agent/agent.py
file: Replace the content with following code. Ensure character_json_path="agent.json"
points to the correct location of the agent.json
file.
CharacterAgent
is a ToolCallingAgent
that’s designed to embody a specific persona. It loads its personality from the agent.json
file.
agent.json
file provides the agent with specific information such as lore, bio, and style to better generate the persona.