A programming framework for agentic AI
Add scaffolding for autogen-ext (#541)
Eric Zhua8002636ad27
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.ymlindex ac5b050f4..3eb4f13ad 100644--- a/.github/workflows/checks.yml+++ b/.github/workflows/checks.yml@@ -46,7 +46,7 @@ jobs:strategy:matrix:package:- ["./packages/autogen-core", "./packages/team-one", "./packages/agbench"]+ ["./packages/autogen-core", "./packages/team-one", "./packages/agbench", "./packages/autogen-ext"]steps:- uses: actions/checkout@v4- run: curl -LsSf https://astral.sh/uv/install.sh | sh@@ -66,7 +66,7 @@ jobs:strategy:matrix:package:- ["./packages/autogen-core", "./packages/team-one", "./packages/agbench"]+ ["./packages/autogen-core", "./packages/team-one", "./packages/agbench", "./packages/autogen-ext"]steps:- uses: actions/checkout@v4- run: curl -LsSf https://astral.sh/uv/install.sh | sh@@ -86,7 +86,7 @@ jobs:strategy:matrix:package:- ["./packages/autogen-core", "./packages/team-one"]+ ["./packages/autogen-core", "./packages/team-one", "./packages/autogen-ext"]steps:- uses: actions/checkout@v4- run: curl -LsSf https://astral.sh/uv/install.sh | shdiff --git a/python/packages/autogen-core/docs/src/packages/index.md b/python/packages/autogen-core/docs/src/packages/index.mdindex 58535e73b..32b921197 100644--- a/python/packages/autogen-core/docs/src/packages/index.md+++ b/python/packages/autogen-core/docs/src/packages/index.md@@ -54,7 +54,7 @@ Implementations of core components that interface with external services, or usepip install autogen-ext```-[{fab}`python;pst-color-primary` PyPI](https://pypi.org/project/autogen-ext/) | [{fas}`file-code;pst-color-primary` API Reference](/reference/index.md) | [{fab}`github;pst-color-primary` Source](https://github.com/microsoft/agnext/tree/main/python/packages/autogen-ext)+[{fab}`python;pst-color-primary` PyPI](https://pypi.org/project/autogen-ext/) | [{fas}`file-code;pst-color-primary` API Reference](/reference/python/autogen_ext/autogen_ext.rst) | [{fab}`github;pst-color-primary` Source](https://github.com/microsoft/agnext/tree/main/python/packages/autogen-ext):::diff --git a/python/packages/autogen-core/docs/src/reference/index.md b/python/packages/autogen-core/docs/src/reference/index.mdindex 4786c629d..30455446d 100644--- a/python/packages/autogen-core/docs/src/reference/index.md+++ b/python/packages/autogen-core/docs/src/reference/index.md@@ -34,6 +34,14 @@ python/autogen_core/autogen_corepython/autogen_agentchat/autogen_agentchat```+```{toctree}+:hidden:+:caption: AutoGen Extensions++python/autogen_ext/autogen_ext+python/autogen_ext/autogen_ext.tools+```+::::{grid} 1 2 2 3:margin: 4 4 0 0:gutter: 1@@ -50,6 +58,11 @@ python/autogen_agentchat/autogen_agentchat:class-item: api-card:::+:::{grid-item-card} {fas}`puzzle-piece;pst-color-primary` <br> AutoGen Extensions+:link: python/autogen_ext/autogen_ext+:link-type: doc+:class-item: api-card+:::::::diff --git a/python/packages/autogen-core/pyproject.toml b/python/packages/autogen-core/pyproject.tomlindex dbfed4dc6..2386b349a 100644--- a/python/packages/autogen-core/pyproject.toml+++ b/python/packages/autogen-core/pyproject.toml@@ -105,9 +105,12 @@ docs-clean = "rm -rf docs/build && rm -rf docs/src/reference/python/"docs-apidoc-core = "sphinx-apidoc --templatedir docs/src/_apidoc_templates --no-toc --separate --force -o docs/src/reference/python/autogen_core src/autogen_core src/autogen_core/application/protos/"docs-apidoc-agentchat = "sphinx-apidoc --templatedir docs/src/_apidoc_templates --no-toc --separate --force -o docs/src/reference/python/autogen_agentchat ../autogen-agentchat/src/autogen_agentchat"+# Includes --implicit-namespaces as it is a namespace package+docs-apidoc-ext = "sphinx-apidoc --implicit-namespaces --templatedir docs/src/_apidoc_templates --no-toc --separate --force -o docs/src/reference/python/autogen_ext ../autogen-ext/src/autogen_ext"docs-apidoc-all = ["docs-apidoc-core",- "docs-apidoc-agentchat"+ "docs-apidoc-agentchat",+ "docs-apidoc-ext",]# Inline tables are WAY easier to read but for some reason they break pyright. So we have to write it out this way.diff --git a/python/packages/autogen-ext/README.md b/python/packages/autogen-ext/README.mdnew file mode 100644index 000000000..2291ed9c2--- /dev/null+++ b/python/packages/autogen-ext/README.md@@ -0,0 +1 @@+# autogen-extdiff --git a/python/packages/autogen-ext/pyproject.toml b/python/packages/autogen-ext/pyproject.tomlnew file mode 100644index 000000000..fa54d2755--- /dev/null+++ b/python/packages/autogen-ext/pyproject.toml@@ -0,0 +1,43 @@+[build-system]+requires = ["hatchling"]+build-backend = "hatchling.build"++[project]+name = "autogen-ext"+version = "0.3.0dev0"+description = "AutoGen extensions library"+readme = "README.md"+requires-python = ">=3.10"+classifiers = [+ "Programming Language :: Python :: 3",+ "License :: OSI Approved :: MIT License",+ "Operating System :: OS Independent",+]+dependencies = ["autogen-core",++]++[tool.hatch.build.targets.wheel]+packages = ["src/autogen_ext"]++[tool.uv]+dev-dependencies = []+++[tool.ruff]+extend = "../../pyproject.toml"+include = ["src/**", "tests/*.py"]++[tool.pyright]+extend = "../../pyproject.toml"+include = ["src", "tests"]++[tool.pytest.ini_options]+minversion = "6.0"+testpaths = ["tests"]++[tool.poe]+include = "../../shared_tasks.toml"++[tool.poe.tasks]+test = "pytest -n auto"diff --git a/python/packages/autogen-ext/src/autogen_ext/tools/langchain/__init__.py b/python/packages/autogen-ext/src/autogen_ext/tools/langchain/__init__.pynew file mode 100644index 000000000..e69de29bbdiff --git a/python/packages/autogen-ext/tests/test_example.py b/python/packages/autogen-ext/tests/test_example.pynew file mode 100644index 000000000..60f1465c8--- /dev/null+++ b/python/packages/autogen-ext/tests/test_example.py@@ -0,0 +1,2 @@+async def test_example() -> None:+ assert Truediff --git a/python/uv.lock b/python/uv.lockindex 608a8f2e9..5bc5e3629 100644--- a/python/uv.lock+++ b/python/uv.lock@@ -26,6 +26,7 @@ members = ["agbench","autogen-agentchat","autogen-core",+ "autogen-ext","team-one",]requirements = [@@ -411,6 +412,17 @@ dev = [{ name = "wikipedia" },]+[[package]]+name = "autogen-ext"+version = "0.3.0.dev0"+source = { editable = "packages/autogen-ext" }+dependencies = [+ { name = "autogen-core" },+]++[package.metadata]+requires-dist = [{ name = "autogen-core", editable = "packages/autogen-core" }]+[[package]]name = "autopep8"version = "2.3.1"