A simple multi-agent framework
Project description
iragent
iragent is a simple framework for building OpenAI‑Like, tool‑using software agents.
It sits halfway between a prompt‑engineering playground and a full orchestration layer—perfect for experiments, research helpers and production micro‑agents.
✨ Key features
| Feature | Why it matters |
|---|---|
Composable BaseAgent |
Plug‑and‑play tools, memories and decision strategies |
| Built‑in web toolbox | WebSearchTool, WebScrapeTool, BrowserTool wrap requests, Google Search and BeautifulSoup4 utilities |
| Automatic reasoning loop | ReAct‑style plan‑‑>act‑‑>observe‑‑>reflect loop, powered by the OpenAI Chat API |
| Vector & episodic memory | Simple in‑RAM store + optional embedding‑based retriever |
| Pythonic API | Agents are callables; tools are plain dataclasses; no metaprogramming magic |
| Lightweight deps | Pure‑Python, ~8 MiB install; only openai, requests, googlesearch‑python, bs4, lxml, nltk:contentReference[oaicite:1]{index=1} |
🚀 Installation
# Requires Python 3.10+
pip install iragent
# Or directly from GitHub
pip install git+https://github.com/parssky/iragent.git
Set your OpenAI key once:
export OPENAI_API_KEY="sk‑..."
⚡ Quick start
from iragent import agent
researcher = Agent(
name="Researcher‑GPT",
system_prompt="You are an expert researcher.",
tools=[search, scrape],
base_url= ""
api_key= ""
model= ""
provider= "openai" # or ollama for local use
)
answer = agent.start("Who won the Nobel Prize in Physics in 2024 and why?")
print(answer)
More docs
visit below url: https://parssky.github.io/iragent/namespacemembers.html
Development
git clone https://github.com/parssky/iragent.git
cd iragent
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]" # ruff, pytest, etc.
🤝 Contributing
Pull requests are welcome! Please open an issue first if you plan large‑scale changes. 1- Fork → create feature branch
2- Write tests & follow ruff style (ruff check . --fix)
3- Submit PR; GitHub Actions will run lint & tests.
📄 License
This project is released under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iragent-0.1.1.tar.gz.
File metadata
- Download URL: iragent-0.1.1.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c587bc51b0389c90f7c044552a20ba65cce49b8f721db620812d25497cdd6b8f
|
|
| MD5 |
109bb0ad5a289e23b11c2d9627da9fbd
|
|
| BLAKE2b-256 |
8415003ef1a61e30d1a29abc3f3187c4d07bc35bf10580f7fea03bd3f9b1f463
|
File details
Details for the file iragent-0.1.1-py3-none-any.whl.
File metadata
- Download URL: iragent-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee77df366dc2493ede94b7f3ca1820908d22c8b9e0d26f1146dd8d4a31235a84
|
|
| MD5 |
be0c4dca32a9b1b3449247f0b2d8cb90
|
|
| BLAKE2b-256 |
8b4de40cd2a8605628e0a5dc40f6a8855d75a6cb2a3db923eb464a90a9e724bb
|