agent-from-scratch is a Python-based repository for developers and researchers to explore the fundamentals of single and multi-agent systems.
It is a fork of OpenAI's Swarm, which is already straightforward. However, agent-from-scratch is even simpler, making it easier to quickly start and understand single and multi-agent systems.
- Clone or fork the repository:
git clone https://github.com/hexo-ai/agent-from-scratch.git - To set up the conda environment, run the following command:
conda env create -f environment.yml. Alternatively, you can use a virtual environment. - Create a
.envfile by copying the structure from.env.template. - Add your environment variables to the
.envfile. - Activate the conda environment using
conda activate agent-from-scratchor your virtual environment. - Install the requirements using
pip install -r requirements.txt. - To run the single agent example, execute
python single_agent_example.py. This script implements a weather agent with capabilities to send emails. - To run the multi-agent example, execute
python multi_agent_example.py. This script implements sales and refund agents with capabilities to apply discounts and process refunds.
Please feel free to fork this repository and create PRs. We are eager to get PRs on the following:
- Additional working examples of Agents
- Tracing and Logging of the Agents
- Feedback and learning from experiences