This project demonstrates a multi-agent system using Redis Pub/Sub and Google Gemini API. There are four agents that communicate in a pipeline:
- Agent Main: Starts the process by sending a learning goal.
- Agent Planner: Creates a step-by-step learning plan.
- Agent Critic: Critiques or suggests improvements to the plan.
- Agent Decider: Finalizes the plan and sends it back to the main agent.
Agent Main → Agent Planner → Agent Critic → Agent Decider → Agent Main
Start Redis using Docker:
docker run -p 6379:6379 redis
Open four terminals, one for each agent:
Terminal 1: Agent Main
cd AgentA
go run main.go
Terminal 2: Agent Planner
cd AgentB
go run main.go
Terminal 3: Agent Critic
cd AgentC
go run main.go
Terminal 4: Agent Decider
cd AgentD
go run main.go
- Agent Main sends a learning goal (e.g., "I want to learn React").
- Agent Planner generates a learning plan.
- Agent Critic reviews and suggests improvements.
- Agent Decider finalizes the plan and returns it to Agent Main.
Feel free to modify the agents or the workflow to suit your needs!