Table of Contents
ReAct-Agent-With-Tools is an innovative open-source project designed to enhance language learning through interactive AI. It combines language learning models, search engines, and image production models in a user-friendly interface. The project offers unique features like image generation from text prompts and webpage content extraction, making it an invaluable tool for educators, students, and language enthusiasts. Its Dockerized environment ensures consistent operation across different platforms, making it accessible and easy to use for everyone.
media.mp4
| Feature | Summary | |
|---|---|---|
| ⚙️ | Architecture |
|
| 🔩 | Code Quality |
|
| 📄 | Documentation |
|
| 🔌 | Integrations |
|
| 🧩 | Modularity |
|
| ⚡️ | Performance |
|
| 🛡️ | Security |
|
| 📦 | Dependencies |
|
| 🚀 | Scalability |
|
└── ReAct-Agent-With-Tools/
├── Dockerfile
├── LICENSE
├── README.md
├── app
│ ├── app.py
│ ├── requirements.txt
│ └── tools.py
└── img
├── ai_agent_banner.png
└── generated_image_20250224_172205.pngREACT-AGENT-WITH-TOOLS/
__root__
Dockerfile - The Dockerfile sets up a Python-based environment, copies the application into the container, installs necessary dependencies from the requirements file, and runs the Streamlit application
- It ensures the application is containerized and isolated, facilitating consistent operation across different computing environments.
app
app.py - App/app.py serves as the main entry point for the LangChain application, orchestrating the interaction between different language learning models (LLMs), search engines, and image production models
- It configures and executes the ReAct (Reason-Action) Agent based on user selections, manages chat history, and handles user input and AI responses within a Streamlit interface.tools.py - The app/tools.py module in the project serves as a utility hub, providing functions for image generation and webpage content extraction
- It leverages OpenAI's DALL·E 3 and Stability AI's Stable Diffusion XL models to generate images based on text prompts
- Additionally, it offers a tool to fetch and analyze webpage content, returning plain text limited to 4000 characters.requirements.txt - App/requirements.txt outlines the necessary dependencies for the project
- It includes various language processing libraries like langchain, langchain-community, and langchain-openai, among others
- Additionally, it specifies utilities for environment management (python-dotenv), web scraping (beautifulsoup4), and HTTP requests (requests, httpx)
- The specific versions of httpx and anthropic are also defined to prevent potential conflicts.
Before getting started with ReAct-Agent-With-Tools, ensure your runtime environment meets the following requirements:
- Programming Language: Python
- Package Manager: Pip
- Container Runtime: Docker
Install ReAct-Agent-With-Tools using one of the following methods:
Build from source:
- Clone the ReAct-Agent-With-Tools repository:
❯ git clone https://github.com/serkanyasr/ReAct-Agent-With-Tools- Navigate to the project directory:
❯ cd ReAct-Agent-With-Tools- Install the project dependencies:
❯ pip install -r app/requirements.txt❯ docker build -t serkanyasr/ReAct-Agent-With-Tools .Run ReAct-Agent-With-Tools using the following command:
Using pip
❯ python {entrypoint}❯ docker run -it {image_name}- 💬 Join the Discussions: Share your insights, provide feedback, or ask questions.
- 🐛 Report Issues: Submit bugs found or log feature requests for the
ReAct-Agent-With-Toolsproject. - 💡 Submit Pull Requests: Review open PRs, and submit your own PRs.
Contributing Guidelines
- Fork the Repository: Start by forking the project repository to your github account.
- Clone Locally: Clone the forked repository to your local machine using a git client.
git clone https://github.com/serkanyasr/ReAct-Agent-With-Tools
- Create a New Branch: Always work on a new branch, giving it a descriptive name.
git checkout -b new-feature-x
- Make Your Changes: Develop and test your changes locally.
- Commit Your Changes: Commit with a clear message describing your updates.
git commit -m 'Implemented new feature x.' - Push to github: Push the changes to your forked repository.
git push origin new-feature-x
- Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
- Review: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your contribution!
This project is licensed under the MIT License.For more details, refer to the LICENSE file.