Skip to content

Building AI agents, atomically

Further refactor project structure and dependencies

KennyVaneetvelde9a6d75db9a3e
diff --git a/atomic-agents/.gitignore b/.gitignore
similarity index 79%
rename from atomic-agents/.gitignore
rename to .gitignore
index dff89dd..decd01e 100644
--- a/atomic-agents/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-# Byte-compiled / optimized / DLL files
+# Python
__pycache__/
*.py[cod]
*$py.class
@@ -14,6 +14,7 @@ dist/
downloads/
eggs/
.eggs/
+lib/
lib64/
parts/
sdist/
@@ -26,16 +27,18 @@ share/python-wheels/
MANIFEST
site-packages/
-# Virtual environment
-venv/
-ENV/
+# Virtual environments
+.env
+.env.*
+.venv
+.venv.*
env/
-venv.bak/
+env.bak/
venv/
+venv.bak/
+ENV/
# PyInstaller
-# Usually these files are written by a python script from a template
-# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
@@ -62,20 +65,19 @@ cover/
*.mo
*.pot
-# Django stuff:
+# Django stuff
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
-# Flask stuff:
+# Flask stuff
instance/
.webassets-cache
-# Scrapy stuff:
+# Scrapy stuff
.scrapy
-# Virtual environment
-venv/
+
# Sphinx documentation
docs/_build/
@@ -98,16 +100,6 @@ celerybeat-schedule
# SageMath parsed files
*.sage.py
-# Environments
-.env
-.env.*
-.venv
-.venv.*
-env/
-env.bak/
-venv/
-venv.bak/
-
# Spyder project settings
.spyderproject
.spyproject
@@ -132,14 +124,26 @@ dmypy.json
# Cython debug symbols
cython_debug/
+# Chroma related
chromadb_persist/
chroma_data/
chromadb_tmp/
+# IDEs and editors
.vscode/
+.idea/
+*.swp
+*.swo
+*~
-personal_experiments/
+# Operating System Files
+.DS_Store
+Thumbs.db
+# Project specific
+personal_experiments/
*.psd
+.output/
-.output/
\ No newline at end of file
+# Logs
+debug.log
diff --git a/atomic-agents/LICENSE b/LICENSE
similarity index 100%
rename from atomic-agents/LICENSE
rename to LICENSE
diff --git a/README.md b/README.md
index 7b5ae3b..c90ce5b 100644
--- a/README.md
+++ b/README.md
@@ -4,12 +4,26 @@ CHECK BACK SOON FOR AN UPDATE.
# Atomic Agents
-Atomic Agents is a framework for building and running AI agents using a modular approach. It is designed to be easy to understand, extend, and maintain.
+A versatile framework designed to facilitate the creation and management of intelligent agents, with an optional CLI tool.
-There are two main components to the Atomic Agents framework:
+## Installation
-1. **Atomic Agents** - The core framework for building and running AI agents.
-2. **Atomic Assembler** - A CLI tool for creating, testing, and publishing your own Atomic Tools.
+You can install Atomic Agents with different options:
+
+- Full installation (framework + CLI):
+ ```bash
+ pip install atomic-agents
+ ```
+
+- Core framework only:
+ ```bash
+ pip install atomic-agents[core]
+ ```
+
+- CLI tool only:
+ ```bash
+ pip install atomic-agents[cli]
+ ```
## Getting Started
diff --git a/atomic-agents/atomic_agents/__init__.py b/atomic-agents/atomic_agents/__init__.py
index e69de29..5becc17 100644
--- a/atomic-agents/atomic_agents/__init__.py
+++ b/atomic-agents/atomic_agents/__init__.py
@@ -0,0 +1 @@
+__version__ = "1.0.0"
diff --git a/atomic-assembler/.gitignore b/atomic-assembler/.gitignore
deleted file mode 100644
index d55d27d..0000000
--- a/atomic-assembler/.gitignore
+++ /dev/null
@@ -1,46 +0,0 @@
-# Python
-__pycache__/
-*.py[cod]
-*$py.class
-*.so
-.Python
-build/
-develop-eggs/
-dist/
-downloads/
-eggs/
-.eggs/
-lib/
-lib64/
-parts/
-sdist/
-var/
-wheels/
-share/python-wheels/
-*.egg-info/
-.installed.cfg
-*.egg
-
-# Environments
-.env
-.venv
-env/
-venv/
-ENV/
-env.bak/
-venv.bak/
-
-# IDEs and editors
-.idea/
-.vscode/
-*.swp
-*.swo
-*~
-
-# Operating System Files
-.DS_Store
-Thumbs.db
-
-# Logs
-*.log
-debug.log
diff --git a/atomic-assembler/atomic_assembler/__init__.py b/atomic-assembler/atomic_assembler/__init__.py
index e69de29..5becc17 100644
--- a/atomic-assembler/atomic_assembler/__init__.py
+++ b/atomic-assembler/atomic_assembler/__init__.py
@@ -0,0 +1 @@
+__version__ = "1.0.0"
diff --git a/atomic-forge/.gitignore b/atomic-forge/.gitignore
deleted file mode 100644
index 2f7e0c0..0000000
--- a/atomic-forge/.gitignore
+++ /dev/null
@@ -1,20 +0,0 @@
-# Python virtual environments
-.venv
-.python-version
-
-# Python cache files
-__pycache__/
-.pytest_cache/
-.pytest-cache/
-.cache/
-
-# Build and distribution
-build/
-*.egg-info
-
-# Coverage reports
-.coverage
-.coverage.*
-
-# IDE configurations
-.vscode/
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..c84ef47
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,46 @@
+[build-system]
+requires = ["hatchling"]
+build-backend = "hatchling.build"
+
+[project]
+name = "atomic-agents"
+version = "1.0.0"
+description = "A versatile framework for creating and managing intelligent agents, with an optional CLI tool."
+authors = [
+ { name = "Kenny Vaneetvelde", email = "[email protected]" }
+]
+readme = "README.md"
+license = { file = "LICENSE" }
+requires-python = ">=3.12"
+dependencies = [
+ "beautifulsoup4>=4.12.3,<5.0.0",
+ "google_api_python_client>=2.114.0,<3.0.0",
+ "instructor>=1.3.4,<2.0.0",
+ "markdownify>=0.12.1,<0.13.0",
+ "openai>=1.35.12,<2.0.0",
+ "pydantic>=2.8.0,<3.0.0",
+ "PyPDF2>=3.0.1,<4.0.0",
+ "Requests>=2.32.3,<3.0.0",
+ "rich>=13.7.1,<14.0.0",
+]
+
+[project.optional-dependencies]
+cli = [
+ "pyfiglet>=1.0.2,<2.0.0",
+ "textual>=0.77.0,<0.78.0",
+ "gitpython>=3.1.43,<3.2.0",
+ "pyyaml>=6.0.2,<7.0.0",
+]
+
+[project.scripts]
+atomic = "atomic_assembler.main:main"
+
+[project.urls]
+homepage = "https://github.com/KennyVaneetvelde/atomic_agents"
+repository = "https://github.com/KennyVaneetvelde/atomic_agents"
+
+[tool.hatch.build.targets.wheel]
+packages = ["atomic-agents/atomic_agents", "atomic-assembler/atomic_assembler"]
+
+[tool.black]
+line-length = 127
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..582d796
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,9 @@
+from setuptools import setup, find_packages
+
+setup(
+ name="atomic-agents",
+ version="1.0.0",
+ packages=find_packages(where="atomic-agents") + find_packages(where="atomic-assembler"),
+ package_dir={"": "atomic-agents", "": "atomic-assembler"},
+ include_package_data=True,
+)