What do you want to do?
3 use cases
-
Build a two agent teacher and student loop
Use ChatAgent and Task to make one agent ask questions and another answer, as in the README glimpse.
View prompt
Using langroid/langroid, install `pip install langroid` and write a script based on the README's 2 agent chat loop where a teacher agent quizzes a student agent about <my topic>.
-
Chat with your documents using DocChatAgent
Install the doc-chat extra and use DocChatAgent to answer questions over your files.
View prompt
Using langroid/langroid, install `pip install "langroid[doc-chat]"`, build a DocChatAgent over <my documents folder>, and answer <my three questions> with the source passages.
-
Run the Langroid examples in Docker
Pull the Langroid container with your .env file and run any script from the examples repo.
View prompt
Using langroid/langroid, create the .env from the template, run `docker run -it --rm -v ./.env:/langroid/.env langroid/langroid:latest`, and run one document chat example.
Quick start with Langroid
- Check you have what it needs: Python with pip; An OpenAI compatible LLM endpoint or API key.
- Open langroid/langroid on GitHub and read the README and license.
- Install with
pip install langroid - Configure the LLM with lm.OpenAIGPTConfig, as in the README
- Create a teacher ChatAgent and a student ChatAgent
- Wrap each in a Task and add the student task as a sub task of the teacher
These steps come from our top use case, Build a two agent teacher and student loop, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for langroid/langroid
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forPython developers building agents, document Q and A or multi agent workflows.
- Why it is hot4.1k stars, talked about in 2 AI sources we track
- LanguagePython
- Sourcegithub.com/langroid/langroid ยท Back to Hot repos
Requirements
- Python with pip
- An OpenAI compatible LLM endpoint or API key
Add this badge to your README
Maintain Langroid? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/langroid-langroid/?utm_source=github&utm_medium=badge&utm_campaign=langroid-langroid)
HTML
<a href="https://dedupedai.com/use-cases/langroid-langroid/?utm_source=github&utm_medium=badge&utm_campaign=langroid-langroid"><img src="https://dedupedai.com/badge/langroid/langroid.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Langroid
What is Langroid?
Langroid is a Python framework for building LLM powered agents and multi agent systems. Agents wrap an LLM, tools and optional vector stores, and Tasks run them in loops with users or other agents, with extras for document chat and databases. It is an open-source project on GitHub: https://github.com/langroid/langroid.
How do I use Langroid?
Install with pip install langroid; then configure the LLM with lm.OpenAIGPTConfig, as in the README; create a teacher ChatAgent and a student ChatAgent. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Langroid for?
Python developers building agents, document Q and A or multi agent workflows.
What can I do with Langroid?
3 use cases so far, for example: Build a two agent teacher and student loop; Chat with your documents using DocChatAgent; Run the Langroid examples in Docker. Each has steps and a copy-paste agent prompt.
What do I need to run Langroid?
Python with pip; An OpenAI compatible LLM endpoint or API key.
What are alternatives to Langroid?
Other hot AI repos in Software and DevOps: Skills, Claude Mem, Freellmapi, Andrej Karpathy Skills, Agent Desktop.
Is Langroid safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.