Skip to content

ReAct-Agent-With-Tools enhances language learning with AI-driven search and image generation, running seamlessly in a Dockerized environment.

License

Notifications You must be signed in to change notification settings

serkanyasr/ReAct-Agent-With-Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REACT-AGENT-WITH-TOOLS

Empowering AI with Reason, Action, and Tools!

license last-commit repo-top-language repo-language-count


Table of Contents

📍 Overview

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

👾 Features

Feature Summary
⚙️ Architecture
  • The project is structured around a Python-based environment.
  • The main entry point is app/app.py which orchestrates the interaction between different models and manages user input and AI responses.
  • The app/tools.py module serves as a utility hub, providing functions for image generation and webpage content extraction.
🔩 Code Quality
  • The code is well-structured and modular, facilitating easy maintenance and scalability.
  • It leverages Python's capabilities for clear and concise code.
  • The use of Docker ensures consistent operation across different computing environments.
📄 Documentation
  • The primary language used is Python.
  • There are clear instructions for installing and using the project with pip and docker.
  • Testing commands are also provided.
🔌 Integrations
  • The project integrates with Docker for containerization.
  • It uses pip for package management.
  • It leverages OpenAI's DALL·E 3 and Stability AI's Stable Diffusion XL models for image generation.
🧩 Modularity
  • The project is divided into separate modules for different functionalities.
  • app/app.py serves as the main entry point, while app/tools.py provides utility functions.
⚡️ Performance
  • The use of Docker ensures consistent performance across different environments.
  • Specific performance metrics or benchmarks are not mentioned in the provided context.
🛡️ Security
  • The use of Docker provides isolation, enhancing security.
  • Specific security measures or practices are not mentioned in the provided context.
📦 Dependencies
  • The project depends on Docker and Python 3.12.
  • Dependencies are managed with pip and listed in app/requirements.txt.
  • It includes various language processing libraries and utilities for environment management, web scraping, and HTTP requests.
🚀 Scalability
  • The modular structure of the code facilitates scalability.
  • The use of Docker allows for easy deployment and scaling.

📁 Project Structure

└── ReAct-Agent-With-Tools/
    ├── Dockerfile
    ├── LICENSE
    ├── README.md
    ├── app
    │   ├── app.py
    │   ├── requirements.txt
    │   └── tools.py
    └── img
        ├── ai_agent_banner.png
        └── generated_image_20250224_172205.png

📂 Project Index

REACT-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.

🚀 Getting Started

☑️ Prerequisites

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

⚙️ Installation

Install ReAct-Agent-With-Tools using one of the following methods:

Build from source:

  1. Clone the ReAct-Agent-With-Tools repository:
❯ git clone https://github.com/serkanyasr/ReAct-Agent-With-Tools
  1. Navigate to the project directory:
cd ReAct-Agent-With-Tools
  1. Install the project dependencies:

Using pip  

❯ pip install -r app/requirements.txt

Using docker  

❯ docker build -t serkanyasr/ReAct-Agent-With-Tools .

🤖 Usage

Run ReAct-Agent-With-Tools using the following command: Using pip  

❯ python {entrypoint}

Using docker  

❯ docker run -it {image_name}

🔰 Contributing

Contributing Guidelines
  1. Fork the Repository: Start by forking the project repository to your github account.
  2. Clone Locally: Clone the forked repository to your local machine using a git client.
    git clone https://github.com/serkanyasr/ReAct-Agent-With-Tools
  3. Create a New Branch: Always work on a new branch, giving it a descriptive name.
    git checkout -b new-feature-x
  4. Make Your Changes: Develop and test your changes locally.
  5. Commit Your Changes: Commit with a clear message describing your updates.
    git commit -m 'Implemented new feature x.'
  6. Push to github: Push the changes to your forked repository.
    git push origin new-feature-x
  7. Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
  8. Review: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your contribution!
Contributor Graph


🎗 License

This project is licensed under the MIT License.For more details, refer to the LICENSE file.


About

ReAct-Agent-With-Tools enhances language learning with AI-driven search and image generation, running seamlessly in a Dockerized environment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published