Skip to content

A programming framework for agentic AI

Move `docs` from `python/packages/autogen-core` to `python/docs` (#6757)

Eric Zhu4a3634d6da63
diff --git a/.gitattributes b/.gitattributes
index 44948bef9..75290afcc 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -91,5 +91,5 @@ python/packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos/*.pyi linguist-
python/packages/autogen-ext/tests/protos/*.py linguist-generated
python/packages/autogen-ext/tests/protos/*.pyi linguist-generated
docs/** linguist-documentation
-python/packages/autogen-core/docs/** linguist-documentation
+python/docs/** linguist-documentation
dotnet/website/** linguist-documentation
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 7d3d350de..d27fc2e42 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -75,6 +75,24 @@ jobs:
poe --directory ${{ matrix.package }} mypy
working-directory: ./python
+ docs-mypy:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: astral-sh/setup-uv@v5
+ with:
+ enable-cache: true
+ - uses: actions/setup-python@v5
+ with:
+ python-version: "3.11"
+ - run: uv sync --locked --all-extras
+ working-directory: ./python
+ - name: Run task
+ run: |
+ source ${{ github.workspace }}/python/.venv/bin/activate
+ poe docs-mypy
+ working-directory: ./python
+
pyright:
runs-on: ubuntu-latest
strategy:
@@ -244,9 +262,6 @@ jobs:
docs:
runs-on: ubuntu-latest
- strategy:
- matrix:
- package: ["./packages/autogen-core"]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
@@ -260,14 +275,11 @@ jobs:
- name: Run task
run: |
source ${{ github.workspace }}/python/.venv/bin/activate
- poe --directory ${{ matrix.package }} docs-check
+ poe docs-check
working-directory: ./python
docs-example-check:
runs-on: ubuntu-latest
- strategy:
- matrix:
- package: ["./packages/autogen-core"]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
@@ -281,7 +293,7 @@ jobs:
- name: Run task
run: |
source ${{ github.workspace }}/python/.venv/bin/activate
- poe --directory ${{ matrix.package }} docs-check-examples
+ poe docs-check-examples
working-directory: ./python
samples-code-check:
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index f5155503d..39226fbd9 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -31,28 +31,153 @@ jobs:
matrix:
version:
[
- # For main use the workflow target
- { ref: "${{github.ref}}", dest-dir: dev, uv-version: "0.7.13", sphinx-release-override: "dev" },
- { ref: "python-v0.6.2", dest-dir: stable, uv-version: "0.7.13", sphinx-release-override: "stable" },
- { ref: "v0.4.0.post1", dest-dir: "0.4.0", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "v0.4.1", dest-dir: "0.4.1", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "v0.4.2", dest-dir: "0.4.2", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "v0.4.3", dest-dir: "0.4.3", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "v0.4.4", dest-dir: "0.4.4", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.4.5", dest-dir: "0.4.5", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.4.6", dest-dir: "0.4.6", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.4.7", dest-dir: "0.4.7", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.4.8", dest-dir: "0.4.8", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.4.9-website", dest-dir: "0.4.9", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.5.1", dest-dir: "0.5.1", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.5.2", dest-dir: "0.5.2", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.5.3", dest-dir: "0.5.3", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.5.4", dest-dir: "0.5.4", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.5.5", dest-dir: "0.5.5", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.5.6", dest-dir: "0.5.6", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.5.7", dest-dir: "0.5.7", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.6.1", dest-dir: "0.6.1", uv-version: "0.5.13", sphinx-release-override: "" },
- { ref: "python-v0.6.2", dest-dir: "0.6.2", uv-version: "0.7.13", sphinx-release-override: "" },
+ {
+ ref: "${{github.ref}}",
+ dest-dir: dev,
+ uv-version: "0.7.13",
+ sphinx-release-override: "dev",
+ poe-dir: ".",
+ },
+ {
+ ref: "python-v0.6.2",
+ dest-dir: stable,
+ uv-version: "0.7.13",
+ sphinx-release-override: "stable",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "v0.4.0.post1",
+ dest-dir: "0.4.0",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "v0.4.1",
+ dest-dir: "0.4.1",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "v0.4.2",
+ dest-dir: "0.4.2",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "v0.4.3",
+ dest-dir: "0.4.3",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "v0.4.4",
+ dest-dir: "0.4.4",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.4.5",
+ dest-dir: "0.4.5",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.4.6",
+ dest-dir: "0.4.6",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.4.7",
+ dest-dir: "0.4.7",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.4.8",
+ dest-dir: "0.4.8",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.4.9-website",
+ dest-dir: "0.4.9",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.5.1",
+ dest-dir: "0.5.1",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.5.2",
+ dest-dir: "0.5.2",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.5.3",
+ dest-dir: "0.5.3",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.5.4",
+ dest-dir: "0.5.4",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.5.5",
+ dest-dir: "0.5.5",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.5.6",
+ dest-dir: "0.5.6",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.5.7",
+ dest-dir: "0.5.7",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.6.1",
+ dest-dir: "0.6.1",
+ uv-version: "0.5.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
+ {
+ ref: "python-v0.6.2",
+ dest-dir: "0.6.2",
+ uv-version: "0.7.13",
+ sphinx-release-override: "",
+ poe-dir: "./packages/autogen-core",
+ },
]
steps:
- name: Checkout
@@ -63,16 +188,16 @@ jobs:
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- version: ${{ matrix.version.uv-version }}
+ version: ${{ matrix.version.uv-version }}
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: |
uv sync --locked --all-extras
source .venv/bin/activate
- poe --directory ./packages/autogen-core docs-build
+ poe --directory ${{ matrix.version.poe-dir }} docs-build
mkdir -p docs-staging/${{ matrix.version.dest-dir }}/
- mv ./packages/autogen-core/docs/build/* docs-staging/${{ matrix.version.dest-dir }}/
+ mv ${{ matrix.version.poe-dir }}/docs/build/* docs-staging/${{ matrix.version.dest-dir }}/
working-directory: ./python
env:
PY_DOCS_DIR: ${{ matrix.version.dest-dir }}/
@@ -96,7 +221,7 @@ jobs:
- name: generate redirects
run: |
mkdir -p python/docs-staging/
- python python/packages/autogen-core/docs/redirects/redirects.py python/docs-staging
+ python python/docs/redirects/redirects.py python/docs-staging
- uses: actions/upload-artifact@v4
with:
path: "./python/docs-staging"
@@ -241,7 +366,8 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
- needs: [build-02, build-04, build-04-dotnet, gen-redirects, gen-component-schema]
+ needs:
+ [build-02, build-04, build-04-dotnet, gen-redirects, gen-component-schema]
if: ${{ needs.build-02.result == 'success' && needs.build-04.result == 'success' && needs.gen-redirects.result == 'success' && github.ref == 'refs/heads/main' }}
steps:
- uses: actions/download-artifact@v4
diff --git a/python/.gitignore b/python/.gitignore
index d7d27c394..e5b2be591 100644
--- a/python/.gitignore
+++ b/python/.gitignore
@@ -174,3 +174,6 @@ tmp_code_*.py
# .NET Development settings
appsettings.Development.json
+
+# Documentation reference files
+docs/src/reference
\ No newline at end of file
diff --git a/python/README.md b/python/README.md
index 504768c12..df1f24288 100644
--- a/python/README.md
+++ b/python/README.md
@@ -1,15 +1,21 @@
-# AutoGen Python packages
+# AutoGen Python Development Guide
-[![0.4 Docs](https://img.shields.io/badge/Docs-0.4-blue)](https://microsoft.github.io/autogen/dev/)
+[![Docs (dev)](https://img.shields.io/badge/Docs-dev-blue)](https://microsoft.github.io/autogen/dev/)
+[![Docs (latest release)](https://img.shields.io/badge/Docs-latest%20release-blue)](https://microsoft.github.io/autogen/dev/)
[![PyPi autogen-core](https://img.shields.io/badge/PyPi-autogen--core-blue?logo=pypi)](https://pypi.org/project/autogen-core/) [![PyPi autogen-agentchat](https://img.shields.io/badge/PyPi-autogen--agentchat-blue?logo=pypi)](https://pypi.org/project/autogen-agentchat/) [![PyPi autogen-ext](https://img.shields.io/badge/PyPi-autogen--ext-blue?logo=pypi)](https://pypi.org/project/autogen-ext/)
-This directory works as a single `uv` workspace containing all project packages. See [`packages`](./packages/) to discover all project packages.
+This directory works as a single `uv` workspace containing all project packages, including:
+
+- `packages/autogen-core`: interface definitions and reference implementations of agent runtime, model, tool, workbench, memory, tracing.
+- `packages/autogen-agentchat`: single and multi-agent workflows built on top of `autogen-core`.
+- `packages/autogen-ext`: implementations for ecosystem integrations. For example, `autogen-ext[openai]` provides the OpenAI model client.
+- `packages/autogen-studio`: a web-based IDE for building and running AutoGen agents.
## Migrating from 0.2.x?
Please refer to the [migration guide](./migration_guide.md) for how to migrate your code from 0.2.x to 0.4.x.
-## Development
+## Quick Start
**TL;DR**, run all checks with:
@@ -19,7 +25,7 @@ source .venv/bin/activate
poe check
```
-### Setup
+## Setup
`uv` is a package manager that assists in creating the necessary environment and installing packages to run AutoGen.
@@ -31,14 +37,7 @@ To upgrade `uv` to the latest version, run:
uv self update
```
-<!-- **Note:** To prevent incompatibilities between versions the same UV version as is running in CI should be used. Check the version in CI by looking the `setup-uv` action, [here](https://github.com/microsoft/autogen/blob/main/.github/workflows/checks.yml#L40) for example.
-
-For example, to change your version to `0.5.18`, run:
-```sh
-uv self update 0.5.18
-``` -->
-
-### Virtual Environment
+## Virtual Environment
During development, you may need to test changes made to any of the packages.\
To do so, create a virtual environment where the AutoGen packages are installed based on the current state of the directory.\
@@ -52,7 +51,7 @@ source .venv/bin/activate
- `uv sync --all-extras` will create a `.venv` directory at the current level and install packages from the current directory along with any other dependencies. The `all-extras` flag adds optional dependencies.
- `source .venv/bin/activate` activates the virtual environment.
-### Common Tasks
+## Common Tasks
To create a pull request (PR), ensure the following checks are met. You can run each check individually:
@@ -61,16 +60,19 @@ To create a pull request (PR), ensure the following checks are met. You can run
- Test: `poe test`
- Mypy: `poe mypy`
- Pyright: `poe pyright`
-- Build docs: `poe --directory ./packages/autogen-core/ docs-build`
-- Auto rebuild+serve docs: `poe --directory ./packages/autogen-core/ docs-serve`
+- Build docs: `poe docs-build`
+- Check docs: `poe docs-check`
+- Clean docs: `poe docs-clean`
+- Check code blocks in API references: `poe docs-check-examples`
+- Auto rebuild+serve docs: `poe docs-serve`
- Check samples in `python/samples`: `poe samples-code-check`
-Alternatively, you can run all the checks with:
+ Alternatively, you can run all the checks with:
- `poe check`
> [!NOTE]
> These need to be run in the virtual environment.
-### Syncing Dependencies
+## Syncing Dependencies
When you pull new changes, you may need to update the dependencies.
To do so, first make sure you are in the virtual environment, and then in the `python` directory, run:
@@ -81,7 +83,135 @@ uv sync --all-extras
This will update the dependencies in the virtual environment.
-### Creating a New Package
+## Building Documentation
+
+The documentation source directory is located at `docs/src/`.
+
+To build the documentation, run this from the root of the Python directory:
+
+```sh
+poe docs-build
+```
+
+To serve the documentation locally, run:
+
+```sh
+poe docs-serve
+```
+
+When you make changes to the doc strings or add new modules, you may need to
+refresh the API references in the documentation by first cleaning the docs and
+then building them again:
+
+```sh
+poe docs-clean # This will remove the build directory and the reference directory
+poe docs-build # This will rebuild the documentation from scratch
+```
+
+## Writing Documentation
+
+When you add a new public class or function, you should always add a docstring
+to it. The docstring should follow the
+[Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings) layout
+and the Sphinx RST format for Python docstrings.
+
+The docstring for a public class or function should include:
+
+- A short description of the class or function at the beginning immediately after the `"""`.
+- A longer description if necessary, explaining the purpose and usage.
+- A list of arguments with their types and descriptions, using the `Args` section.
+ Each argument should be listed with its name, type, and a brief description.
+- A description of the return value and its type, using the `Returns` section.
+ If the function does not return anything, you can omit this section.
+- A list of exceptions that the function may raise, with descriptions,
+ using the `Raises` section. This is optional but recommended if the function can raise exceptions that users should be aware of.
+- Examples of how to use the class or function, using the `Examples` section,
+ and formatted using `.. code-block:: python` directive. Optionally, also include the output of the example using
+ `.. code-block:: text` directive.
+
+Here is an example of a docstring for `McpWorkbench` class:
+
+```python
+class McpWorkbench(Workbench, Component[McpWorkbenchConfig]):
+ """A workbench that wraps an MCP server and provides an interface
+ to list and call tools provided by the server.
+
+ This workbench should be used as a context manager to ensure proper
+ initialization and cleanup of the underlying MCP session.
+
+ Args:
+ server_params (McpServerParams): The parameters to connect to the MCP server.
+ This can be either a :class:`StdioServerParams` or :class:`SseServerParams`.
+ tool_overrides (Optional[Dict[str, ToolOverride]]): Optional mapping of original tool
+ names to override configurations for name and/or description. This allows
+ customizing how server tools appear to consumers while maintaining the underlying
+ tool functionality.
+
+ Raises:
+ ValueError: If there are conflicts in tool override names.
+
+ Examples:
+
+ Here is a simple example of how to use the workbench with a `mcp-server-fetch` server:
+
+ .. code-block:: python
+
+ import asyncio
+
+ from autogen_ext.tools.mcp import McpWorkbench, StdioServerParams
+
+
+ async def main() -> None:
+ params = StdioServerParams(
+ command="uvx",
+ args=["mcp-server-fetch"],
+ read_timeout_seconds=60,
+ )
+
+ # You can also use `start()` and `stop()` to manage the session.
+ async with McpWorkbench(server_params=params) as workbench:
+ tools = await workbench.list_tools()
+ print(tools)
+ result = await workbench.call_tool(tools[0]["name"], {"url": "https://github.com/"})
+ print(result)
+
+
+ asyncio.run(main())
+```
+
+The code blocks with `.. code-block:: python` is checked by the `docs-check-examples` task using Pyright,
+so make sure the code is valid. Running the code as a script and checking it using `pyright`
+is a good way to ensure the code examples are correct.
+
+When you reference a class, method, or function in the docstring, you should always
+use the `:class:`, `:meth:`, or `:func:` directive to create a link to the class or function.
+Always use the fully qualified name of the class or function, including the package name, but
+prefix it with a `~` for shorter rendering in the documentation.
+For example, if you are referencing the `AssistantAgent` class in the `autogen-agentchat` package,
+you should write it as `:class:~autogen_agentchat.AssistantAgent`.
+
+For a public data class, including those that are Pydantic models, you should also include docstrings
+for each field in the class.
+
+## Writing Tests
+
+When you add a new public class or function, you should also always add tests for it.
+We track test coverage and aim for not reducing the coverage percentage with new changes.
+
+We use `pytest` for testing, and you should always use fixtures to set up the test dependencies.
+
+Use mock objects to simulate dependencies and avoid making real API calls or database queries in tests.
+See existing tests for examples of how to use fixtures and mocks.
+
+For model clients, use `autogen_ext.models.replay.ReplayChatCompletionClient` as a
+drop-in replacement for the model client to simulate responses without making real API calls.
+
+When certain tests requires interaction with actual model APIs or other external services,
+you should configure the tests to be skipped if the required services are not available.
+For example, if you are testing a model client that requires an OpenAI API key,
+you can use the `pytest.mark.skipif` decorator to skip the test if the environment variable for the API key is not set.
+
+## Creating a New Package
To create a new package, similar to `autogen-core` or `autogen-chat`, use the following:
diff --git a/python/docs/README.md b/python/docs/README.md
new file mode 100644
index 000000000..7b813527a
--- /dev/null
+++ b/python/docs/README.md
@@ -0,0 +1,29 @@
+## Building the AutoGen Documentation
+
+AutoGen documentation is based on the sphinx documentation system and uses the myst-parser to render markdown files. It uses the [pydata-sphinx-theme](https://pydata-sphinx-theme.readthedocs.io/en/latest/) to style the documentation.
+
+### Prerequisites
+
+Ensure you have all of the dev dependencies for the `autogen-core` package installed. You can install them by running the following command from the root of the python repository:
+
+```bash
+uv sync
+source .venv/bin/activate
+```
+
+## Building Docs
+
+To build the documentation, run the following command from the root of the python directory:
+
+```bash
+poe docs-build
+```
+
+To serve the documentation locally, run the following command from the root of the python directory:
+
+```bash
+poe docs-serve
+```
+
+[!NOTE]
+Sphinx will only rebuild files that have changed since the last build. If you want to force a full rebuild, you can delete the `./docs/build` directory before running the `docs-build` command.
diff --git a/python/packages/autogen-core/docs/drawio/agent-lifecycle.drawio b/python/docs/drawio/agent-lifecycle.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/agent-lifecycle.drawio
rename to python/docs/drawio/agent-lifecycle.drawio
diff --git a/python/packages/autogen-core/docs/drawio/agentchat-team.drawio b/python/docs/drawio/agentchat-team.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/agentchat-team.drawio
rename to python/docs/drawio/agentchat-team.drawio
diff --git a/python/packages/autogen-core/docs/drawio/application-stack.drawio b/python/docs/drawio/application-stack.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/application-stack.drawio
rename to python/docs/drawio/application-stack.drawio
diff --git a/python/packages/autogen-core/docs/drawio/architecture-distributed.drawio b/python/docs/drawio/architecture-distributed.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/architecture-distributed.drawio
rename to python/docs/drawio/architecture-distributed.drawio
diff --git a/python/packages/autogen-core/docs/drawio/architecture-standalone.drawio b/python/docs/drawio/architecture-standalone.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/architecture-standalone.drawio
rename to python/docs/drawio/architecture-standalone.drawio
diff --git a/python/packages/autogen-core/docs/drawio/assistant-agent.drawio b/python/docs/drawio/assistant-agent.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/assistant-agent.drawio
rename to python/docs/drawio/assistant-agent.drawio
diff --git a/python/packages/autogen-core/docs/drawio/code-gen-example.drawio b/python/docs/drawio/code-gen-example.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/code-gen-example.drawio
rename to python/docs/drawio/code-gen-example.drawio
diff --git a/python/packages/autogen-core/docs/drawio/coder-reviewer.drawio b/python/docs/drawio/coder-reviewer.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/coder-reviewer.drawio
rename to python/docs/drawio/coder-reviewer.drawio
diff --git a/python/packages/autogen-core/docs/drawio/groupchat.drawio b/python/docs/drawio/groupchat.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/groupchat.drawio
rename to python/docs/drawio/groupchat.drawio
diff --git a/python/packages/autogen-core/docs/drawio/handoffs.drawio b/python/docs/drawio/handoffs.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/handoffs.drawio
rename to python/docs/drawio/handoffs.drawio
diff --git a/python/packages/autogen-core/docs/drawio/human-in-the-loop-termination.drawio b/python/docs/drawio/human-in-the-loop-termination.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/human-in-the-loop-termination.drawio
rename to python/docs/drawio/human-in-the-loop-termination.drawio
diff --git a/python/packages/autogen-core/docs/drawio/human-in-the-loop-user-proxy.drawio b/python/docs/drawio/human-in-the-loop-user-proxy.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/human-in-the-loop-user-proxy.drawio
rename to python/docs/drawio/human-in-the-loop-user-proxy.drawio
diff --git a/python/packages/autogen-core/docs/drawio/selector-group-chat.drawio b/python/docs/drawio/selector-group-chat.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/selector-group-chat.drawio
rename to python/docs/drawio/selector-group-chat.drawio
diff --git a/python/packages/autogen-core/docs/drawio/sequential-workflow.drawio b/python/docs/drawio/sequential-workflow.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/sequential-workflow.drawio
rename to python/docs/drawio/sequential-workflow.drawio
diff --git a/python/packages/autogen-core/docs/drawio/subscription.drawio b/python/docs/drawio/subscription.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/subscription.drawio
rename to python/docs/drawio/subscription.drawio
diff --git a/python/packages/autogen-core/docs/drawio/swarm_customer_support.drawio b/python/docs/drawio/swarm_customer_support.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/swarm_customer_support.drawio
rename to python/docs/drawio/swarm_customer_support.drawio
diff --git a/python/packages/autogen-core/docs/drawio/swarm_stock_research.drawio b/python/docs/drawio/swarm_stock_research.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/swarm_stock_research.drawio
rename to python/docs/drawio/swarm_stock_research.drawio
diff --git a/python/packages/autogen-core/docs/drawio/type-subscription.drawio b/python/docs/drawio/type-subscription.drawio
similarity index 100%
rename from python/packages/autogen-core/docs/drawio/type-subscription.drawio
rename to python/docs/drawio/type-subscription.drawio
diff --git a/python/packages/autogen-core/docs/redirects/redirect_template.html b/python/docs/redirects/redirect_template.html
similarity index 100%
rename from python/packages/autogen-core/docs/redirects/redirect_template.html
rename to python/docs/redirects/redirect_template.html
diff --git a/python/packages/autogen-core/docs/redirects/redirect_urls.txt b/python/docs/redirects/redirect_urls.txt
similarity index 100%
rename from python/packages/autogen-core/docs/redirects/redirect_urls.txt
rename to python/docs/redirects/redirect_urls.txt
diff --git a/python/packages/autogen-core/docs/redirects/redirects.py b/python/docs/redirects/redirects.py
similarity index 100%
rename from python/packages/autogen-core/docs/redirects/redirects.py
rename to python/docs/redirects/redirects.py
diff --git a/python/packages/autogen-core/docs/src/_apidoc_templates/module.rst.jinja b/python/docs/src/_apidoc_templates/module.rst.jinja
similarity index 100%
rename from python/packages/autogen-core/docs/src/_apidoc_templates/module.rst.jinja
rename to python/docs/src/_apidoc_templates/module.rst.jinja
diff --git a/python/packages/autogen-core/docs/src/_apidoc_templates/package.rst.jinja b/python/docs/src/_apidoc_templates/package.rst.jinja
similarity index 100%
rename from python/packages/autogen-core/docs/src/_apidoc_templates/package.rst.jinja
rename to python/docs/src/_apidoc_templates/package.rst.jinja
diff --git a/python/packages/autogen-core/docs/src/_extension/code_lint.py b/python/docs/src/_extension/code_lint.py
similarity index 100%
rename from python/packages/autogen-core/docs/src/_extension/code_lint.py
rename to python/docs/src/_extension/code_lint.py
diff --git a/python/packages/autogen-core/docs/src/_extension/gallery_directive.py b/python/docs/src/_extension/gallery_directive.py
similarity index 100%
rename from python/packages/autogen-core/docs/src/_extension/gallery_directive.py
rename to python/docs/src/_extension/gallery_directive.py
diff --git a/python/packages/autogen-core/docs/src/_static/banner-override.js b/python/docs/src/_static/banner-override.js
similarity index 100%
rename from python/packages/autogen-core/docs/src/_static/banner-override.js
rename to python/docs/src/_static/banner-override.js
diff --git a/python/packages/autogen-core/docs/src/_static/custom-icon.js b/python/docs/src/_static/custom-icon.js
similarity index 100%
rename from python/packages/autogen-core/docs/src/_static/custom-icon.js
rename to python/docs/src/_static/custom-icon.js
diff --git a/python/packages/autogen-core/docs/src/_static/custom.css b/python/docs/src/_static/custom.css
similarity index 100%
rename from python/packages/autogen-core/docs/src/_static/custom.css
rename to python/docs/src/_static/custom.css
diff --git a/python/packages/autogen-core/docs/src/_static/custom.js b/python/docs/src/_static/custom.js
similarity index 100%
rename from python/packages/autogen-core/docs/src/_static/custom.js
rename to python/docs/src/_static/custom.js
diff --git a/python/packages/autogen-core/docs/src/_static/images/logo/favicon-16x16.png b/python/docs/src/_static/images/logo/favicon-16x16.png
similarity index 100%
rename from python/packages/autogen-core/docs/src/_static/images/logo/favicon-16x16.png
rename to python/docs/src/_static/images/logo/favicon-16x16.png
diff --git a/python/packages/autogen-core/docs/src/_static/images/logo/favicon-32x32.png b/python/docs/src/_static/images/logo/favicon-32x32.png
similarity index 100%
rename from python/packages/autogen-core/docs/src/_static/images/logo/favicon-32x32.png
rename to python/docs/src/_static/images/logo/favicon-32x32.png
diff --git a/python/packages/autogen-core/docs/src/_static/images/logo/favicon-512x512.png b/python/docs/src/_static/images/logo/favicon-512x512.png
similarity index 100%
rename from python/packages/autogen-core/docs/src/_static/images/logo/favicon-512x512.png
rename to python/docs/src/_static/images/logo/favicon-512x512.png
diff --git a/python/packages/autogen-core/docs/src/_static/images/logo/favicon.ico b/python/docs/src/_static/images/logo/favicon.ico
similarity index 100%
rename from python/packages/autogen-core/docs/src/_static/images/logo/favicon.ico
rename to python/docs/src/_static/images/logo/favicon.ico
diff --git a/python/packages/autogen-core/docs/src/_static/images/logo/logo.svg b/python/docs/src/_static/images/logo/logo.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/_static/images/logo/logo.svg
rename to python/docs/src/_static/images/logo/logo.svg
diff --git a/python/packages/autogen-core/docs/src/_static/switcher.json b/python/docs/src/_static/switcher.json
similarity index 100%
rename from python/packages/autogen-core/docs/src/_static/switcher.json
rename to python/docs/src/_static/switcher.json
diff --git a/python/packages/autogen-core/docs/src/_templates/edit-this-page.html b/python/docs/src/_templates/edit-this-page.html
similarity index 100%
rename from python/packages/autogen-core/docs/src/_templates/edit-this-page.html
rename to python/docs/src/_templates/edit-this-page.html
diff --git a/python/packages/autogen-core/docs/src/_templates/footer-middle-links.html b/python/docs/src/_templates/footer-middle-links.html
similarity index 100%
rename from python/packages/autogen-core/docs/src/_templates/footer-middle-links.html
rename to python/docs/src/_templates/footer-middle-links.html
diff --git a/python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-agentchat.html b/python/docs/src/_templates/sidebar-nav-bs-agentchat.html
similarity index 100%
rename from python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-agentchat.html
rename to python/docs/src/_templates/sidebar-nav-bs-agentchat.html
diff --git a/python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-core.html b/python/docs/src/_templates/sidebar-nav-bs-core.html
similarity index 100%
rename from python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-core.html
rename to python/docs/src/_templates/sidebar-nav-bs-core.html
diff --git a/python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-extensions.html b/python/docs/src/_templates/sidebar-nav-bs-extensions.html
similarity index 100%
rename from python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-extensions.html
rename to python/docs/src/_templates/sidebar-nav-bs-extensions.html
diff --git a/python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-studio.html b/python/docs/src/_templates/sidebar-nav-bs-studio.html
similarity index 100%
rename from python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-studio.html
rename to python/docs/src/_templates/sidebar-nav-bs-studio.html
diff --git a/python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs.html b/python/docs/src/_templates/sidebar-nav-bs.html
similarity index 100%
rename from python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs.html
rename to python/docs/src/_templates/sidebar-nav-bs.html
diff --git a/python/packages/autogen-core/docs/src/_templates/theme-switcher.html b/python/docs/src/_templates/theme-switcher.html
similarity index 100%
rename from python/packages/autogen-core/docs/src/_templates/theme-switcher.html
rename to python/docs/src/_templates/theme-switcher.html
diff --git a/python/packages/autogen-core/docs/src/_templates/version-banner-override.html b/python/docs/src/_templates/version-banner-override.html
similarity index 100%
rename from python/packages/autogen-core/docs/src/_templates/version-banner-override.html
rename to python/docs/src/_templates/version-banner-override.html
diff --git a/python/packages/autogen-core/docs/src/conf.py b/python/docs/src/conf.py
similarity index 94%
rename from python/packages/autogen-core/docs/src/conf.py
rename to python/docs/src/conf.py
index 26816481e..4c25c8e5f 100644
--- a/python/packages/autogen-core/docs/src/conf.py
+++ b/python/docs/src/conf.py
@@ -150,7 +150,7 @@ html_context = {
"github_user": "microsoft",
"github_repo": "autogen",
"github_version": "main",
- "doc_path": "python/packages/autogen-core/docs/src/",
+ "doc_path": "python/docs/src/",
}
autodoc_default_options = {
@@ -183,9 +183,16 @@ rediraffe_redirects = {
}
-def generate_api_docs() -> None:
+def generate_api_reference() -> None:
"""Generate API documentation before building."""
- script_path = Path(__file__).parent / "generate_api_toc.py"
+ reference_dir = Path(__file__).parent / "reference"
+
+ # Only generate if reference directory doesn't exist
+ if reference_dir.exists():
+ print("📁 Reference directory already exists, skipping API generation")
+ return
+
+ script_path = Path(__file__).parent / "generate_api_reference.py"
if script_path.exists():
print("🔄 Generating API documentation...")
try:
@@ -242,7 +249,7 @@ def setup(app: Sphinx) -> Dict[str, Any]:
the 2 parallel parameters set to ``True``.
"""
# Generate API documentation before building
- app.connect("builder-inited", lambda app: generate_api_docs())
+ app.connect("builder-inited", lambda app: generate_api_reference())
app.connect("html-page-context", setup_to_main)
diff --git a/python/packages/autogen-core/docs/src/generate_api_toc.py b/python/docs/src/generate_api_reference.py
similarity index 99%
rename from python/packages/autogen-core/docs/src/generate_api_toc.py
rename to python/docs/src/generate_api_reference.py
index caf7532f7..3b2495780 100644
--- a/python/packages/autogen-core/docs/src/generate_api_toc.py
+++ b/python/docs/src/generate_api_reference.py
@@ -47,7 +47,7 @@ def is_private_module(module_parts: List[str]) -> bool:
def find_python_packages() -> List[Path]:
"""Find documented Python packages in the workspace."""
- packages_dir = Path(__file__).parent.parent.parent.parent.parent / "packages"
+ packages_dir = Path(__file__).parent.parent.parent / "packages"
python_packages = []
for package_dir in packages_dir.iterdir():
diff --git a/python/packages/autogen-core/docs/src/images/assistant-agent.svg b/python/docs/src/images/assistant-agent.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/images/assistant-agent.svg
rename to python/docs/src/images/assistant-agent.svg
diff --git a/python/packages/autogen-core/docs/src/images/autogen-magentic-one-agents.png b/python/docs/src/images/autogen-magentic-one-agents.png
similarity index 100%
rename from python/packages/autogen-core/docs/src/images/autogen-magentic-one-agents.png
rename to python/docs/src/images/autogen-magentic-one-agents.png
diff --git a/python/packages/autogen-core/docs/src/images/autogen-magentic-one-example.png b/python/docs/src/images/autogen-magentic-one-example.png
similarity index 100%
rename from python/packages/autogen-core/docs/src/images/autogen-magentic-one-example.png
rename to python/docs/src/images/autogen-magentic-one-example.png
diff --git a/python/packages/autogen-core/docs/src/images/code.svg b/python/docs/src/images/code.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/images/code.svg
rename to python/docs/src/images/code.svg
diff --git a/python/packages/autogen-core/docs/src/images/example-company.jpg b/python/docs/src/images/example-company.jpg
similarity index 100%
rename from python/packages/autogen-core/docs/src/images/example-company.jpg
rename to python/docs/src/images/example-company.jpg
diff --git a/python/packages/autogen-core/docs/src/images/example-literature.jpg b/python/docs/src/images/example-literature.jpg
similarity index 100%
rename from python/packages/autogen-core/docs/src/images/example-literature.jpg
rename to python/docs/src/images/example-literature.jpg
diff --git a/python/packages/autogen-core/docs/src/images/example-travel.jpeg b/python/docs/src/images/example-travel.jpeg
similarity index 100%
rename from python/packages/autogen-core/docs/src/images/example-travel.jpeg
rename to python/docs/src/images/example-travel.jpeg
diff --git a/python/packages/autogen-core/docs/src/images/open-ai-telemetry-example.png b/python/docs/src/images/open-ai-telemetry-example.png
similarity index 100%
rename from python/packages/autogen-core/docs/src/images/open-ai-telemetry-example.png
rename to python/docs/src/images/open-ai-telemetry-example.png
diff --git a/python/packages/autogen-core/docs/src/index.md b/python/docs/src/index.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/index.md
rename to python/docs/src/index.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/custom-agents.ipynb b/python/docs/src/user-guide/agentchat-user-guide/custom-agents.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/custom-agents.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/custom-agents.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/examples/company-research.ipynb b/python/docs/src/user-guide/agentchat-user-guide/examples/company-research.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/examples/company-research.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/examples/company-research.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/examples/index.md b/python/docs/src/user-guide/agentchat-user-guide/examples/index.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/examples/index.md
rename to python/docs/src/user-guide/agentchat-user-guide/examples/index.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/examples/literature-review.ipynb b/python/docs/src/user-guide/agentchat-user-guide/examples/literature-review.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/examples/literature-review.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/examples/literature-review.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/examples/travel-planning.ipynb b/python/docs/src/user-guide/agentchat-user-guide/examples/travel-planning.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/examples/travel-planning.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/examples/travel-planning.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/graph-flow.ipynb b/python/docs/src/user-guide/agentchat-user-guide/graph-flow.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/graph-flow.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/graph-flow.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/index.md b/python/docs/src/user-guide/agentchat-user-guide/index.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/index.md
rename to python/docs/src/user-guide/agentchat-user-guide/index.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/installation.md b/python/docs/src/user-guide/agentchat-user-guide/installation.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/installation.md
rename to python/docs/src/user-guide/agentchat-user-guide/installation.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/jaeger.png b/python/docs/src/user-guide/agentchat-user-guide/jaeger.png
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/jaeger.png
rename to python/docs/src/user-guide/agentchat-user-guide/jaeger.png
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/logging.md b/python/docs/src/user-guide/agentchat-user-guide/logging.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/logging.md
rename to python/docs/src/user-guide/agentchat-user-guide/logging.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/magentic-one.md b/python/docs/src/user-guide/agentchat-user-guide/magentic-one.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/magentic-one.md
rename to python/docs/src/user-guide/agentchat-user-guide/magentic-one.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/memory.ipynb b/python/docs/src/user-guide/agentchat-user-guide/memory.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/memory.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/memory.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/migration-guide.md b/python/docs/src/user-guide/agentchat-user-guide/migration-guide.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/migration-guide.md
rename to python/docs/src/user-guide/agentchat-user-guide/migration-guide.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/quickstart.ipynb b/python/docs/src/user-guide/agentchat-user-guide/quickstart.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/quickstart.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/quickstart.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/selector-group-chat.ipynb b/python/docs/src/user-guide/agentchat-user-guide/selector-group-chat.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/selector-group-chat.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/selector-group-chat.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/selector-group-chat.svg b/python/docs/src/user-guide/agentchat-user-guide/selector-group-chat.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/selector-group-chat.svg
rename to python/docs/src/user-guide/agentchat-user-guide/selector-group-chat.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/serialize-components.ipynb b/python/docs/src/user-guide/agentchat-user-guide/serialize-components.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/serialize-components.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/serialize-components.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm.ipynb b/python/docs/src/user-guide/agentchat-user-guide/swarm.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/swarm.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm_customer_support.svg b/python/docs/src/user-guide/agentchat-user-guide/swarm_customer_support.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm_customer_support.svg
rename to python/docs/src/user-guide/agentchat-user-guide/swarm_customer_support.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm_stock_research.svg b/python/docs/src/user-guide/agentchat-user-guide/swarm_stock_research.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm_stock_research.svg
rename to python/docs/src/user-guide/agentchat-user-guide/swarm_stock_research.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tracing.ipynb b/python/docs/src/user-guide/agentchat-user-guide/tracing.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tracing.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/tracing.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/.gitignore b/python/docs/src/user-guide/agentchat-user-guide/tutorial/.gitignore
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/.gitignore
rename to python/docs/src/user-guide/agentchat-user-guide/tutorial/.gitignore
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/agentchat-team.svg b/python/docs/src/user-guide/agentchat-user-guide/tutorial/agentchat-team.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/agentchat-team.svg
rename to python/docs/src/user-guide/agentchat-user-guide/tutorial/agentchat-team.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/agents.ipynb b/python/docs/src/user-guide/agentchat-user-guide/tutorial/agents.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/agents.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/tutorial/agents.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop-termination.svg b/python/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop-termination.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop-termination.svg
rename to python/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop-termination.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop-user-proxy.svg b/python/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop-user-proxy.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop-user-proxy.svg
rename to python/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop-user-proxy.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop.ipynb b/python/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/index.md b/python/docs/src/user-guide/agentchat-user-guide/tutorial/index.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/index.md
rename to python/docs/src/user-guide/agentchat-user-guide/tutorial/index.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/messages.ipynb b/python/docs/src/user-guide/agentchat-user-guide/tutorial/messages.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/messages.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/tutorial/messages.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb b/python/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/state.ipynb b/python/docs/src/user-guide/agentchat-user-guide/tutorial/state.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/state.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/tutorial/state.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/teams.ipynb b/python/docs/src/user-guide/agentchat-user-guide/tutorial/teams.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/teams.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/tutorial/teams.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb b/python/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb
rename to python/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/experimental.md b/python/docs/src/user-guide/autogenstudio-user-guide/experimental.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/experimental.md
rename to python/docs/src/user-guide/autogenstudio-user-guide/experimental.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/faq.md b/python/docs/src/user-guide/autogenstudio-user-guide/faq.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/faq.md
rename to python/docs/src/user-guide/autogenstudio-user-guide/faq.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/index.md b/python/docs/src/user-guide/autogenstudio-user-guide/index.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/index.md
rename to python/docs/src/user-guide/autogenstudio-user-guide/index.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/installation.md b/python/docs/src/user-guide/autogenstudio-user-guide/installation.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/installation.md
rename to python/docs/src/user-guide/autogenstudio-user-guide/installation.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/jsoneditor.jpg b/python/docs/src/user-guide/autogenstudio-user-guide/jsoneditor.jpg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/jsoneditor.jpg
rename to python/docs/src/user-guide/autogenstudio-user-guide/jsoneditor.jpg
diff --git a/python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/teambuilder.jpg b/python/docs/src/user-guide/autogenstudio-user-guide/teambuilder.jpg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/teambuilder.jpg
rename to python/docs/src/user-guide/autogenstudio-user-guide/teambuilder.jpg
diff --git a/python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/usage.md b/python/docs/src/user-guide/autogenstudio-user-guide/usage.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/usage.md
rename to python/docs/src/user-guide/autogenstudio-user-guide/usage.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/command-line-code-executors.ipynb b/python/docs/src/user-guide/core-user-guide/components/command-line-code-executors.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/command-line-code-executors.ipynb
rename to python/docs/src/user-guide/core-user-guide/components/command-line-code-executors.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/model-clients.ipynb b/python/docs/src/user-guide/core-user-guide/components/model-clients.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/model-clients.ipynb
rename to python/docs/src/user-guide/core-user-guide/components/model-clients.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/model-context.ipynb b/python/docs/src/user-guide/core-user-guide/components/model-context.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/model-context.ipynb
rename to python/docs/src/user-guide/core-user-guide/components/model-context.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/tools.ipynb b/python/docs/src/user-guide/core-user-guide/components/tools.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/tools.ipynb
rename to python/docs/src/user-guide/core-user-guide/components/tools.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/workbench.ipynb b/python/docs/src/user-guide/core-user-guide/components/workbench.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/workbench.ipynb
rename to python/docs/src/user-guide/core-user-guide/components/workbench.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/azure-openai-with-aad-auth.md b/python/docs/src/user-guide/core-user-guide/cookbook/azure-openai-with-aad-auth.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/azure-openai-with-aad-auth.md
rename to python/docs/src/user-guide/core-user-guide/cookbook/azure-openai-with-aad-auth.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/data/nifty_500_quarterly_results.csv b/python/docs/src/user-guide/core-user-guide/cookbook/data/nifty_500_quarterly_results.csv
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/data/nifty_500_quarterly_results.csv
rename to python/docs/src/user-guide/core-user-guide/cookbook/data/nifty_500_quarterly_results.csv
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/extracting-results-with-an-agent.ipynb b/python/docs/src/user-guide/core-user-guide/cookbook/extracting-results-with-an-agent.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/extracting-results-with-an-agent.ipynb
rename to python/docs/src/user-guide/core-user-guide/cookbook/extracting-results-with-an-agent.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/index.md b/python/docs/src/user-guide/core-user-guide/cookbook/index.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/index.md
rename to python/docs/src/user-guide/core-user-guide/cookbook/index.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/instrumenting.md b/python/docs/src/user-guide/core-user-guide/cookbook/instrumenting.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/instrumenting.md
rename to python/docs/src/user-guide/core-user-guide/cookbook/instrumenting.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/langgraph-agent.ipynb b/python/docs/src/user-guide/core-user-guide/cookbook/langgraph-agent.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/langgraph-agent.ipynb
rename to python/docs/src/user-guide/core-user-guide/cookbook/langgraph-agent.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/llamaindex-agent.ipynb b/python/docs/src/user-guide/core-user-guide/cookbook/llamaindex-agent.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/llamaindex-agent.ipynb
rename to python/docs/src/user-guide/core-user-guide/cookbook/llamaindex-agent.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/llm-usage-logger.ipynb b/python/docs/src/user-guide/core-user-guide/cookbook/llm-usage-logger.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/llm-usage-logger.ipynb
rename to python/docs/src/user-guide/core-user-guide/cookbook/llm-usage-logger.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/local-llms-ollama-litellm.ipynb b/python/docs/src/user-guide/core-user-guide/cookbook/local-llms-ollama-litellm.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/local-llms-ollama-litellm.ipynb
rename to python/docs/src/user-guide/core-user-guide/cookbook/local-llms-ollama-litellm.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/openai-assistant-agent.ipynb b/python/docs/src/user-guide/core-user-guide/cookbook/openai-assistant-agent.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/openai-assistant-agent.ipynb
rename to python/docs/src/user-guide/core-user-guide/cookbook/openai-assistant-agent.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/structured-output-agent.ipynb b/python/docs/src/user-guide/core-user-guide/cookbook/structured-output-agent.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/structured-output-agent.ipynb
rename to python/docs/src/user-guide/core-user-guide/cookbook/structured-output-agent.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/termination-with-intervention.ipynb b/python/docs/src/user-guide/core-user-guide/cookbook/termination-with-intervention.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/termination-with-intervention.ipynb
rename to python/docs/src/user-guide/core-user-guide/cookbook/termination-with-intervention.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/tool-use-with-intervention.ipynb b/python/docs/src/user-guide/core-user-guide/cookbook/tool-use-with-intervention.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/tool-use-with-intervention.ipynb
rename to python/docs/src/user-guide/core-user-guide/cookbook/tool-use-with-intervention.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/topic-subscription-scenarios.ipynb b/python/docs/src/user-guide/core-user-guide/cookbook/topic-subscription-scenarios.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/topic-subscription-scenarios.ipynb
rename to python/docs/src/user-guide/core-user-guide/cookbook/topic-subscription-scenarios.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/agent-and-multi-agent-application.md b/python/docs/src/user-guide/core-user-guide/core-concepts/agent-and-multi-agent-application.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/agent-and-multi-agent-application.md
rename to python/docs/src/user-guide/core-user-guide/core-concepts/agent-and-multi-agent-application.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/agent-identity-and-lifecycle.md b/python/docs/src/user-guide/core-user-guide/core-concepts/agent-identity-and-lifecycle.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/agent-identity-and-lifecycle.md
rename to python/docs/src/user-guide/core-user-guide/core-concepts/agent-identity-and-lifecycle.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/agent-lifecycle.svg b/python/docs/src/user-guide/core-user-guide/core-concepts/agent-lifecycle.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/agent-lifecycle.svg
rename to python/docs/src/user-guide/core-user-guide/core-concepts/agent-lifecycle.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/application-stack.md b/python/docs/src/user-guide/core-user-guide/core-concepts/application-stack.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/application-stack.md
rename to python/docs/src/user-guide/core-user-guide/core-concepts/application-stack.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/application-stack.svg b/python/docs/src/user-guide/core-user-guide/core-concepts/application-stack.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/application-stack.svg
rename to python/docs/src/user-guide/core-user-guide/core-concepts/application-stack.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/architecture-distributed.svg b/python/docs/src/user-guide/core-user-guide/core-concepts/architecture-distributed.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/architecture-distributed.svg
rename to python/docs/src/user-guide/core-user-guide/core-concepts/architecture-distributed.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/architecture-standalone.svg b/python/docs/src/user-guide/core-user-guide/core-concepts/architecture-standalone.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/architecture-standalone.svg
rename to python/docs/src/user-guide/core-user-guide/core-concepts/architecture-standalone.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/architecture.md b/python/docs/src/user-guide/core-user-guide/core-concepts/architecture.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/architecture.md
rename to python/docs/src/user-guide/core-user-guide/core-concepts/architecture.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/code-gen-example.svg b/python/docs/src/user-guide/core-user-guide/core-concepts/code-gen-example.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/code-gen-example.svg
rename to python/docs/src/user-guide/core-user-guide/core-concepts/code-gen-example.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/subscription.svg b/python/docs/src/user-guide/core-user-guide/core-concepts/subscription.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/subscription.svg
rename to python/docs/src/user-guide/core-user-guide/core-concepts/subscription.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/topic-and-subscription.md b/python/docs/src/user-guide/core-user-guide/core-concepts/topic-and-subscription.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/topic-and-subscription.md
rename to python/docs/src/user-guide/core-user-guide/core-concepts/topic-and-subscription.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-multi-tenant.svg b/python/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-multi-tenant.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-multi-tenant.svg
rename to python/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-multi-tenant.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-single-tenant-multiple-topics.svg b/python/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-single-tenant-multiple-topics.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-single-tenant-multiple-topics.svg
rename to python/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-single-tenant-multiple-topics.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-single-tenant-single-topic.svg b/python/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-single-tenant-single-topic.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-single-tenant-single-topic.svg
rename to python/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-single-tenant-single-topic.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/code-execution-groupchat.ipynb b/python/docs/src/user-guide/core-user-guide/design-patterns/code-execution-groupchat.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/code-execution-groupchat.ipynb
rename to python/docs/src/user-guide/core-user-guide/design-patterns/code-execution-groupchat.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/coder-reviewer-data-flow.svg b/python/docs/src/user-guide/core-user-guide/design-patterns/coder-reviewer-data-flow.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/coder-reviewer-data-flow.svg
rename to python/docs/src/user-guide/core-user-guide/design-patterns/coder-reviewer-data-flow.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/concurrent-agents.ipynb b/python/docs/src/user-guide/core-user-guide/design-patterns/concurrent-agents.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/concurrent-agents.ipynb
rename to python/docs/src/user-guide/core-user-guide/design-patterns/concurrent-agents.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/group-chat.ipynb b/python/docs/src/user-guide/core-user-guide/design-patterns/group-chat.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/group-chat.ipynb
rename to python/docs/src/user-guide/core-user-guide/design-patterns/group-chat.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/groupchat.svg b/python/docs/src/user-guide/core-user-guide/design-patterns/groupchat.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/groupchat.svg
rename to python/docs/src/user-guide/core-user-guide/design-patterns/groupchat.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/handoffs.ipynb b/python/docs/src/user-guide/core-user-guide/design-patterns/handoffs.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/handoffs.ipynb
rename to python/docs/src/user-guide/core-user-guide/design-patterns/handoffs.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/handoffs.svg b/python/docs/src/user-guide/core-user-guide/design-patterns/handoffs.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/handoffs.svg
rename to python/docs/src/user-guide/core-user-guide/design-patterns/handoffs.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/intro.md b/python/docs/src/user-guide/core-user-guide/design-patterns/intro.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/intro.md
rename to python/docs/src/user-guide/core-user-guide/design-patterns/intro.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/mixture-of-agents.ipynb b/python/docs/src/user-guide/core-user-guide/design-patterns/mixture-of-agents.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/mixture-of-agents.ipynb
rename to python/docs/src/user-guide/core-user-guide/design-patterns/mixture-of-agents.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/multi-agent-debate.ipynb b/python/docs/src/user-guide/core-user-guide/design-patterns/multi-agent-debate.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/multi-agent-debate.ipynb
rename to python/docs/src/user-guide/core-user-guide/design-patterns/multi-agent-debate.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/reflection.ipynb b/python/docs/src/user-guide/core-user-guide/design-patterns/reflection.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/reflection.ipynb
rename to python/docs/src/user-guide/core-user-guide/design-patterns/reflection.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/sequential-workflow.ipynb b/python/docs/src/user-guide/core-user-guide/design-patterns/sequential-workflow.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/sequential-workflow.ipynb
rename to python/docs/src/user-guide/core-user-guide/design-patterns/sequential-workflow.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/sequential-workflow.svg b/python/docs/src/user-guide/core-user-guide/design-patterns/sequential-workflow.svg
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/sequential-workflow.svg
rename to python/docs/src/user-guide/core-user-guide/design-patterns/sequential-workflow.svg
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/faqs.md b/python/docs/src/user-guide/core-user-guide/faqs.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/faqs.md
rename to python/docs/src/user-guide/core-user-guide/faqs.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/agent-and-agent-runtime.ipynb b/python/docs/src/user-guide/core-user-guide/framework/agent-and-agent-runtime.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/agent-and-agent-runtime.ipynb
rename to python/docs/src/user-guide/core-user-guide/framework/agent-and-agent-runtime.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/component-config.ipynb b/python/docs/src/user-guide/core-user-guide/framework/component-config.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/component-config.ipynb
rename to python/docs/src/user-guide/core-user-guide/framework/component-config.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/distributed-agent-runtime.ipynb b/python/docs/src/user-guide/core-user-guide/framework/distributed-agent-runtime.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/distributed-agent-runtime.ipynb
rename to python/docs/src/user-guide/core-user-guide/framework/distributed-agent-runtime.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/logging.md b/python/docs/src/user-guide/core-user-guide/framework/logging.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/logging.md
rename to python/docs/src/user-guide/core-user-guide/framework/logging.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/message-and-communication.ipynb b/python/docs/src/user-guide/core-user-guide/framework/message-and-communication.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/message-and-communication.ipynb
rename to python/docs/src/user-guide/core-user-guide/framework/message-and-communication.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/telemetry.md b/python/docs/src/user-guide/core-user-guide/framework/telemetry.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/telemetry.md
rename to python/docs/src/user-guide/core-user-guide/framework/telemetry.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/index.md b/python/docs/src/user-guide/core-user-guide/index.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/index.md
rename to python/docs/src/user-guide/core-user-guide/index.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/installation.md b/python/docs/src/user-guide/core-user-guide/installation.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/installation.md
rename to python/docs/src/user-guide/core-user-guide/installation.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/quickstart.ipynb b/python/docs/src/user-guide/core-user-guide/quickstart.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/quickstart.ipynb
rename to python/docs/src/user-guide/core-user-guide/quickstart.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/azure-container-code-executor.ipynb b/python/docs/src/user-guide/extensions-user-guide/azure-container-code-executor.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/azure-container-code-executor.ipynb
rename to python/docs/src/user-guide/extensions-user-guide/azure-container-code-executor.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/azure-foundry-agent.ipynb b/python/docs/src/user-guide/extensions-user-guide/azure-foundry-agent.ipynb
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/azure-foundry-agent.ipynb
rename to python/docs/src/user-guide/extensions-user-guide/azure-foundry-agent.ipynb
diff --git a/python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/create-your-own.md b/python/docs/src/user-guide/extensions-user-guide/create-your-own.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/create-your-own.md
rename to python/docs/src/user-guide/extensions-user-guide/create-your-own.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/discover.md b/python/docs/src/user-guide/extensions-user-guide/discover.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/discover.md
rename to python/docs/src/user-guide/extensions-user-guide/discover.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/index.md b/python/docs/src/user-guide/extensions-user-guide/index.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/index.md
rename to python/docs/src/user-guide/extensions-user-guide/index.md
diff --git a/python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/installation.md b/python/docs/src/user-guide/extensions-user-guide/installation.md
similarity index 100%
rename from python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/installation.md
rename to python/docs/src/user-guide/extensions-user-guide/installation.md
diff --git a/python/packages/autogen-core/.gitignore b/python/packages/autogen-core/.gitignore
index 6f1f50b31..a93071a96 100644
--- a/python/packages/autogen-core/.gitignore
+++ b/python/packages/autogen-core/.gitignore
@@ -170,7 +170,4 @@ log.jsonl
docs/**/jupyter_execute
# Temporary files
-tmp_code_*.py
-
-# Reference files
-docs/src/reference
\ No newline at end of file
+tmp_code_*.py
\ No newline at end of file
diff --git a/python/packages/autogen-core/docs/README.md b/python/packages/autogen-core/docs/README.md
deleted file mode 100644
index 5aff221ea..000000000
--- a/python/packages/autogen-core/docs/README.md
+++ /dev/null
@@ -1,37 +0,0 @@
-## Building the AutoGen Documentation
-
-AutoGen documentation is based on the sphinx documentation system and uses the myst-parser to render markdown files. It uses the [pydata-sphinx-theme](https://pydata-sphinx-theme.readthedocs.io/en/latest/) to style the documentation.
-
-### Prerequisites
-
-Ensure you have all of the dev dependencies for the `autogen-core` package installed. You can install them by running the following command from the root of the python repository:
-
-```bash
-uv sync
-source .venv/bin/activate
-```
-
-## Building Docs
-
-To build the documentation, run the following command from the root of the python repository:
-
-```bash
-poe --directory ./packages/autogen-core/ docs-build
-```
-
-To serve the documentation locally, run the following command from the root of the python repository:
-
-```bash
-poe --directory ./packages/autogen-core/ docs-serve
-```
-
-[!NOTE]
-Sphinx will only rebuild files that have changed since the last build. If you want to force a full rebuild, you can delete the `./packages/autogen-core/docs/build` directory before running the `docs-build` command.
-
-## Versioning the Documentation
-
-The current theme - [pydata-sphinx-theme](https://pydata-sphinx-theme.readthedocs.io/en/latest/) - supports [switching between versions](https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/version-dropdown.html) of the documentation.
-
-To version the documentation, you need to create a new version of the documentation by copying the existing documentation to a new directory with the version number. For example, to create a new version of the documentation for version `0.1.0`, you would run the following command:
-
-How are various versions built? - TBD.
diff --git a/python/packages/autogen-core/pyproject.toml b/python/packages/autogen-core/pyproject.toml
index 29f5b5c13..0dc7e4797 100644
--- a/python/packages/autogen-core/pyproject.toml
+++ b/python/packages/autogen-core/pyproject.toml
@@ -58,35 +58,13 @@ dev = [
"types-protobuf",
"types-requests",
"wikipedia",
-
- # Documentation
- "myst-nb==1.1.2",
- "pydata-sphinx-theme==0.16.0",
- "sphinx-copybutton",
- "sphinx-design",
- "sphinx",
- "sphinxcontrib-apidoc",
- "autodoc_pydantic~=2.2",
- "pygments",
- "sphinxext-rediraffe",
- "opentelemetry-instrumentation-openai",
-
- "autogen_ext==0.6.2",
-
- # Documentation tooling
- "diskcache",
- "redis",
- "sphinx-autobuild",
]
[tool.ruff]
extend = "../../pyproject.toml"
exclude = ["build", "dist", "src/autogen_core/application/protos", "tests/protos"]
-include = ["src/**", "docs/**/*.ipynb", "tests/**"]
-
-[tool.ruff.lint.per-file-ignores]
-"docs/**.ipynb" = ["T20"]
+include = ["src/**", "tests/**"]
[tool.pyright]
extends = "../../pyproject.toml"
@@ -99,11 +77,6 @@ minversion = "6.0"
testpaths = ["tests"]
asyncio_default_fixture_loop_scope = "session"
-[tool.nbqa.addopts]
-mypy = [
- "--disable-error-code=top-level-await"
-]
-
[tool.poe]
include = "../../shared_tasks.toml"
@@ -112,24 +85,5 @@ test = "pytest -n auto --cov=src --cov-report=term-missing --cov-report=xml"
mypy.default_item_type = "cmd"
mypy.sequence = [
"mypy --config-file ../../pyproject.toml --exclude src/autogen_core/application/protos --exclude tests/protos src tests",
- "nbqa mypy docs/src --config-file ../../pyproject.toml",
]
-# Docs
-docs-clean = "rm -rf docs/build"
-
-# Inline tables are WAY easier to read but for some reason they break pyright. So we have to write it out this way.
-# Example of inline table:
-# docs-build = [
-# "docs-apidoc-all",
-# { cmd = "sphinx-build docs/src docs/build" }
-# ]
-
-docs-build = "sphinx-build docs/src docs/build"
-
-docs-serve = "sphinx-autobuild --watch src docs/src docs/build --port 8000 --jobs auto"
-
-docs-check = "sphinx-build --fail-on-warning docs/src docs/build"
-
-docs-check-examples = "sphinx-build -b code_lint docs/src docs/build"
-
diff --git a/python/packages/autogen-ext/src/autogen_ext/tools/mcp/_workbench.py b/python/packages/autogen-ext/src/autogen_ext/tools/mcp/_workbench.py
index 9ba08a673..49056b0c7 100644
--- a/python/packages/autogen-ext/src/autogen_ext/tools/mcp/_workbench.py
+++ b/python/packages/autogen-ext/src/autogen_ext/tools/mcp/_workbench.py
@@ -32,10 +32,12 @@ class McpWorkbenchState(BaseModel):
class McpWorkbench(Workbench, Component[McpWorkbenchConfig]):
- """
- A workbench that wraps an MCP server and provides an interface
+ """A workbench that wraps an MCP server and provides an interface
to list and call tools provided by the server.
+ This workbench should be used as a context manager to ensure proper
+ initialization and cleanup of the underlying MCP session.
+
Args:
server_params (McpServerParams): The parameters to connect to the MCP server.
This can be either a :class:`StdioServerParams` or :class:`SseServerParams`.
@@ -44,6 +46,9 @@ class McpWorkbench(Workbench, Component[McpWorkbenchConfig]):
customizing how server tools appear to consumers while maintaining the underlying
tool functionality.
+ Raises:
+ ValueError: If there are conflicts in tool override names.
+
Examples:
Here is a simple example of how to use the workbench with a `mcp-server-fetch` server:
diff --git a/python/pyproject.toml b/python/pyproject.toml
index 21a253128..14d830539 100644
--- a/python/pyproject.toml
+++ b/python/pyproject.toml
@@ -20,6 +20,21 @@ dev = [
"tomli-w",
"chainlit",
"streamlit",
+
+ # Documentation
+ "myst-nb==1.1.2",
+ "pydata-sphinx-theme==0.16.0",
+ "sphinx-copybutton",
+ "sphinx-design",
+ "sphinx",
+ "sphinxcontrib-apidoc",
+ "autodoc_pydantic~=2.2",
+ "pygments",
+ "sphinxext-rediraffe",
+ "opentelemetry-instrumentation-openai",
+ "diskcache",
+ "redis",
+ "sphinx-autobuild",
]
[tool.uv]
@@ -56,6 +71,9 @@ docstring-code-format = true
select = ["E", "F", "W", "B", "Q", "I", "ASYNC", "T20"]
ignore = ["F401", "E501"]
+[tool.ruff.lint.per-file-ignores]
+"docs/**.ipynb" = ["T20"]
+
[tool.ruff.lint.flake8-tidy-imports]
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"unittest".msg = "Use `pytest` instead."
@@ -84,6 +102,11 @@ typeCheckingMode = "strict"
reportUnnecessaryIsInstance = false
reportMissingTypeStubs = false
+[tool.nbqa.addopts]
+mypy = [
+ "--disable-error-code=top-level-await"
+]
+
[tool.poe.tasks]
fmt = "python run_task_in_pkgs_if_exist.py fmt"
format.ref = "fmt"
@@ -91,10 +114,18 @@ lint = "python run_task_in_pkgs_if_exist.py lint"
pyright = "python run_task_in_pkgs_if_exist.py pyright"
mypy = "python run_task_in_pkgs_if_exist.py mypy"
test = "python run_task_in_pkgs_if_exist.py test"
-markdown-code-lint = """python check_md_code_blocks.py ../README.md ./packages/autogen-core/docs/src/**/*.md ./packages/autogen-magentic-one/README.md"""
+markdown-code-lint = """python check_md_code_blocks.py ../README.md ./docs/src/**/*.md ./packages/autogen-magentic-one/README.md"""
samples-code-check = """pyright ./samples"""
-check = ["fmt", "lint", "pyright", "mypy", "test", "markdown-code-lint", "samples-code-check"]
+check = ["fmt", "lint", "pyright", "mypy", "docs-mypy", "test", "markdown-code-lint", "samples-code-check"]
+
+# Docs
+docs-mypy = "nbqa mypy docs/src --config-file ./pyproject.toml"
+docs-clean = "rm -rf docs/build docs/src/reference"
+docs-build = "sphinx-build docs/src docs/build"
+docs-serve = "sphinx-autobuild docs/src docs/build --watch packages/ --port 8000 --jobs auto"
+docs-check = "sphinx-build --fail-on-warning docs/src docs/build"
+docs-check-examples = "sphinx-build -b code_lint docs/src docs/build"
gen-proto = [
{ cmd = "python -m grpc_tools.protoc --python_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --grpc_python_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --mypy_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --mypy_grpc_out=./packages/autogen-ext/src/autogen_ext/runtimes/grpc/protos --proto_path ../protos/ agent_worker.proto --proto_path ../protos/ cloudevent.proto" },
diff --git a/python/uv.lock b/python/uv.lock
index 0a925aa53..f02ffde15 100644
--- a/python/uv.lock
+++ b/python/uv.lock
@@ -37,22 +37,35 @@ overrides = [
[manifest.dependency-groups]
dev = [
+ { name = "autodoc-pydantic", specifier = "~=2.2" },
{ name = "chainlit" },
{ name = "cookiecutter" },
+ { name = "diskcache" },
{ name = "grpcio-tools", specifier = "~=1.70.0" },
{ name = "mypy", specifier = "==1.13.0" },
{ name = "mypy-protobuf" },
+ { name = "myst-nb", specifier = "==1.1.2" },
+ { name = "opentelemetry-instrumentation-openai" },
{ name = "packaging" },
{ name = "poethepoet" },
{ name = "polars" },
+ { name = "pydata-sphinx-theme", specifier = "==0.16.0" },
+ { name = "pygments" },
{ name = "pyright", specifier = "==1.1.389" },
{ name = "pytest" },
{ name = "pytest-asyncio" },
{ name = "pytest-cov" },
{ name = "pytest-mock" },
{ name = "pytest-xdist" },
+ { name = "redis" },
{ name = "rich" },
{ name = "ruff", specifier = "==0.4.8" },
+ { name = "sphinx" },
+ { name = "sphinx-autobuild" },
+ { name = "sphinx-copybutton" },
+ { name = "sphinx-design" },
+ { name = "sphinxcontrib-apidoc" },
+ { name = "sphinxext-rediraffe" },
{ name = "streamlit" },
{ name = "tomli" },
{ name = "tomli-w" },
@@ -482,13 +495,10 @@ dependencies = [
dev = [
{ name = "aiofiles" },
{ name = "asyncio-atexit" },
- { name = "autodoc-pydantic" },
- { name = "autogen-ext" },
{ name = "autogen-test-utils" },
{ name = "azure-identity" },
{ name = "chess" },
{ name = "colorama" },
- { name = "diskcache" },
{ name = "langchain-openai" },
{ name = "langgraph" },
{ name = "llama-index" },
@@ -498,23 +508,12 @@ dev = [
{ name = "llama-index-readers-wikipedia" },
{ name = "llama-index-tools-wikipedia" },
{ name = "markdownify" },
- { name = "myst-nb" },
{ name = "nbqa" },
- { name = "opentelemetry-instrumentation-openai" },
{ name = "opentelemetry-sdk" },
{ name = "pip" },
{ name = "polars" },
- { name = "pydata-sphinx-theme" },
- { name = "pygments" },
{ name = "python-dotenv" },
- { name = "redis" },
{ name = "requests" },
- { name = "sphinx" },
- { name = "sphinx-autobuild" },
- { name = "sphinx-copybutton" },
- { name = "sphinx-design" },
- { name = "sphinxcontrib-apidoc" },
- { name = "sphinxext-rediraffe" },
{ name = "tavily-python" },
{ name = "textual" },
{ name = "textual-dev" },
@@ -542,13 +541,10 @@ requires-dist = [
dev = [
{ name = "aiofiles" },
{ name = "asyncio-atexit" },
- { name = "autodoc-pydantic", specifier = "~=2.2" },
- { name = "autogen-ext", editable = "packages/autogen-ext" },
{ name = "autogen-test-utils", editable = "packages/autogen-test-utils" },
{ name = "azure-identity" },
{ name = "chess" },
{ name = "colorama" },
- { name = "diskcache" },
{ name = "langchain-openai" },
{ name = "langgraph" },
{ name = "llama-index" },
@@ -558,23 +554,12 @@ dev = [
{ name = "llama-index-readers-wikipedia" },
{ name = "llama-index-tools-wikipedia" },
{ name = "markdownify" },
- { name = "myst-nb", specifier = "==1.1.2" },
{ name = "nbqa" },
- { name = "opentelemetry-instrumentation-openai" },
{ name = "opentelemetry-sdk", specifier = ">=1.34.1" },
{ name = "pip" },
{ name = "polars" },
- { name = "pydata-sphinx-theme", specifier = "==0.16.0" },
- { name = "pygments" },
{ name = "python-dotenv" },
- { name = "redis" },
{ name = "requests" },
- { name = "sphinx" },
- { name = "sphinx-autobuild" },
- { name = "sphinx-copybutton" },
- { name = "sphinx-design" },
- { name = "sphinxcontrib-apidoc" },
- { name = "sphinxext-rediraffe" },
{ name = "tavily-python" },
{ name = "textual" },
{ name = "textual-dev" },