This project implements a small agent system using LangGraph and HuggingFace transformers.
Two agents answer questions, and a critic evaluates which answer is better.
- Runs two instruction-tuned models as agents
- Uses a third model as a critic to compare answers
- Simple graph-based pipeline with LangGraph
git clone https://github.com/christalphilip/llm-agents.git
cd llm-agentspip install -r requirements.txtpython llm_agents.pyYou will be prompted to enter a question. The agents and critic will generate responses and print the output. Outputs are also saved in agent_outputs.txt
An example run is included in the example_outputs/ folder. Actual outputs from each run are saved to agent_outputs.txt (not tracked in version control).
llm_agents/
├── llm_agents.py
├── requirements.txt
├── README.md
├── LICENSE
├── .gitignore
└── example_outputs/
└── exercise.txt
This project is licensed under the MIT License.