A programming framework for agentic AI
Move `docs` from `python/packages/autogen-core` to `python/docs` (#6757)
Eric Zhu4a3634d6da63
diff --git a/.gitattributes b/.gitattributesindex 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-generatedpython/packages/autogen-ext/tests/protos/*.pyi linguist-generateddocs/** linguist-documentation-python/packages/autogen-core/docs/** linguist-documentation+python/docs/** linguist-documentationdotnet/website/** linguist-documentationdiff --git a/.github/workflows/checks.yml b/.github/workflows/checks.ymlindex 7d3d350de..d27fc2e42 100644--- a/.github/workflows/checks.yml+++ b/.github/workflows/checks.yml@@ -75,6 +75,24 @@ jobs:poe --directory ${{ matrix.package }} mypyworking-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-lateststrategy:@@ -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 taskrun: |source ${{ github.workspace }}/python/.venv/bin/activate- poe --directory ${{ matrix.package }} docs-check+ poe docs-checkworking-directory: ./pythondocs-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 taskrun: |source ${{ github.workspace }}/python/.venv/bin/activate- poe --directory ${{ matrix.package }} docs-check-examples+ poe docs-check-examplesworking-directory: ./pythonsamples-code-check:diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.ymlindex 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@v5with:enable-cache: true- version: ${{ matrix.version.uv-version }}+ version: ${{ matrix.version.uv-version }}- uses: actions/setup-python@v5with:python-version: "3.11"- run: |uv sync --locked --all-extrassource .venv/bin/activate- poe --directory ./packages/autogen-core docs-build+ poe --directory ${{ matrix.version.poe-dir }} docs-buildmkdir -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: ./pythonenv:PY_DOCS_DIR: ${{ matrix.version.dest-dir }}/@@ -96,7 +221,7 @@ jobs:- name: generate redirectsrun: |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@v4with:path: "./python/docs-staging"@@ -241,7 +366,8 @@ jobs:name: github-pagesurl: ${{ 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@v4diff --git a/python/.gitignore b/python/.gitignoreindex d7d27c394..e5b2be591 100644--- a/python/.gitignore+++ b/python/.gitignore@@ -174,3 +174,6 @@ tmp_code_*.py# .NET Development settingsappsettings.Development.json++# Documentation reference files+docs/src/reference\ No newline at end of filediff --git a/python/README.md b/python/README.mdindex 504768c12..df1f24288 100644--- a/python/README.md+++ b/python/README.md@@ -1,15 +1,21 @@-# AutoGen Python packages+# AutoGen Python Development Guide-[](https://microsoft.github.io/autogen/dev/)+[](https://microsoft.github.io/autogen/dev/)+[](https://microsoft.github.io/autogen/dev/)[](https://pypi.org/project/autogen-core/) [](https://pypi.org/project/autogen-agentchat/) [](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/activatepoe 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 EnvironmentDuring 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 TasksTo 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 DependenciesWhen 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-extrasThis 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 PackageTo 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.mdnew file mode 100644index 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.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/agent-lifecycle.drawiorename to python/docs/drawio/agent-lifecycle.drawiodiff --git a/python/packages/autogen-core/docs/drawio/agentchat-team.drawio b/python/docs/drawio/agentchat-team.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/agentchat-team.drawiorename to python/docs/drawio/agentchat-team.drawiodiff --git a/python/packages/autogen-core/docs/drawio/application-stack.drawio b/python/docs/drawio/application-stack.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/application-stack.drawiorename to python/docs/drawio/application-stack.drawiodiff --git a/python/packages/autogen-core/docs/drawio/architecture-distributed.drawio b/python/docs/drawio/architecture-distributed.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/architecture-distributed.drawiorename to python/docs/drawio/architecture-distributed.drawiodiff --git a/python/packages/autogen-core/docs/drawio/architecture-standalone.drawio b/python/docs/drawio/architecture-standalone.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/architecture-standalone.drawiorename to python/docs/drawio/architecture-standalone.drawiodiff --git a/python/packages/autogen-core/docs/drawio/assistant-agent.drawio b/python/docs/drawio/assistant-agent.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/assistant-agent.drawiorename to python/docs/drawio/assistant-agent.drawiodiff --git a/python/packages/autogen-core/docs/drawio/code-gen-example.drawio b/python/docs/drawio/code-gen-example.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/code-gen-example.drawiorename to python/docs/drawio/code-gen-example.drawiodiff --git a/python/packages/autogen-core/docs/drawio/coder-reviewer.drawio b/python/docs/drawio/coder-reviewer.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/coder-reviewer.drawiorename to python/docs/drawio/coder-reviewer.drawiodiff --git a/python/packages/autogen-core/docs/drawio/groupchat.drawio b/python/docs/drawio/groupchat.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/groupchat.drawiorename to python/docs/drawio/groupchat.drawiodiff --git a/python/packages/autogen-core/docs/drawio/handoffs.drawio b/python/docs/drawio/handoffs.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/handoffs.drawiorename to python/docs/drawio/handoffs.drawiodiff --git a/python/packages/autogen-core/docs/drawio/human-in-the-loop-termination.drawio b/python/docs/drawio/human-in-the-loop-termination.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/human-in-the-loop-termination.drawiorename to python/docs/drawio/human-in-the-loop-termination.drawiodiff --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.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/human-in-the-loop-user-proxy.drawiorename to python/docs/drawio/human-in-the-loop-user-proxy.drawiodiff --git a/python/packages/autogen-core/docs/drawio/selector-group-chat.drawio b/python/docs/drawio/selector-group-chat.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/selector-group-chat.drawiorename to python/docs/drawio/selector-group-chat.drawiodiff --git a/python/packages/autogen-core/docs/drawio/sequential-workflow.drawio b/python/docs/drawio/sequential-workflow.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/sequential-workflow.drawiorename to python/docs/drawio/sequential-workflow.drawiodiff --git a/python/packages/autogen-core/docs/drawio/subscription.drawio b/python/docs/drawio/subscription.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/subscription.drawiorename to python/docs/drawio/subscription.drawiodiff --git a/python/packages/autogen-core/docs/drawio/swarm_customer_support.drawio b/python/docs/drawio/swarm_customer_support.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/swarm_customer_support.drawiorename to python/docs/drawio/swarm_customer_support.drawiodiff --git a/python/packages/autogen-core/docs/drawio/swarm_stock_research.drawio b/python/docs/drawio/swarm_stock_research.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/swarm_stock_research.drawiorename to python/docs/drawio/swarm_stock_research.drawiodiff --git a/python/packages/autogen-core/docs/drawio/type-subscription.drawio b/python/docs/drawio/type-subscription.drawiosimilarity index 100%rename from python/packages/autogen-core/docs/drawio/type-subscription.drawiorename to python/docs/drawio/type-subscription.drawiodiff --git a/python/packages/autogen-core/docs/redirects/redirect_template.html b/python/docs/redirects/redirect_template.htmlsimilarity index 100%rename from python/packages/autogen-core/docs/redirects/redirect_template.htmlrename to python/docs/redirects/redirect_template.htmldiff --git a/python/packages/autogen-core/docs/redirects/redirect_urls.txt b/python/docs/redirects/redirect_urls.txtsimilarity index 100%rename from python/packages/autogen-core/docs/redirects/redirect_urls.txtrename to python/docs/redirects/redirect_urls.txtdiff --git a/python/packages/autogen-core/docs/redirects/redirects.py b/python/docs/redirects/redirects.pysimilarity index 100%rename from python/packages/autogen-core/docs/redirects/redirects.pyrename to python/docs/redirects/redirects.pydiff --git a/python/packages/autogen-core/docs/src/_apidoc_templates/module.rst.jinja b/python/docs/src/_apidoc_templates/module.rst.jinjasimilarity index 100%rename from python/packages/autogen-core/docs/src/_apidoc_templates/module.rst.jinjarename to python/docs/src/_apidoc_templates/module.rst.jinjadiff --git a/python/packages/autogen-core/docs/src/_apidoc_templates/package.rst.jinja b/python/docs/src/_apidoc_templates/package.rst.jinjasimilarity index 100%rename from python/packages/autogen-core/docs/src/_apidoc_templates/package.rst.jinjarename to python/docs/src/_apidoc_templates/package.rst.jinjadiff --git a/python/packages/autogen-core/docs/src/_extension/code_lint.py b/python/docs/src/_extension/code_lint.pysimilarity index 100%rename from python/packages/autogen-core/docs/src/_extension/code_lint.pyrename to python/docs/src/_extension/code_lint.pydiff --git a/python/packages/autogen-core/docs/src/_extension/gallery_directive.py b/python/docs/src/_extension/gallery_directive.pysimilarity index 100%rename from python/packages/autogen-core/docs/src/_extension/gallery_directive.pyrename to python/docs/src/_extension/gallery_directive.pydiff --git a/python/packages/autogen-core/docs/src/_static/banner-override.js b/python/docs/src/_static/banner-override.jssimilarity index 100%rename from python/packages/autogen-core/docs/src/_static/banner-override.jsrename to python/docs/src/_static/banner-override.jsdiff --git a/python/packages/autogen-core/docs/src/_static/custom-icon.js b/python/docs/src/_static/custom-icon.jssimilarity index 100%rename from python/packages/autogen-core/docs/src/_static/custom-icon.jsrename to python/docs/src/_static/custom-icon.jsdiff --git a/python/packages/autogen-core/docs/src/_static/custom.css b/python/docs/src/_static/custom.csssimilarity index 100%rename from python/packages/autogen-core/docs/src/_static/custom.cssrename to python/docs/src/_static/custom.cssdiff --git a/python/packages/autogen-core/docs/src/_static/custom.js b/python/docs/src/_static/custom.jssimilarity index 100%rename from python/packages/autogen-core/docs/src/_static/custom.jsrename to python/docs/src/_static/custom.jsdiff --git a/python/packages/autogen-core/docs/src/_static/images/logo/favicon-16x16.png b/python/docs/src/_static/images/logo/favicon-16x16.pngsimilarity index 100%rename from python/packages/autogen-core/docs/src/_static/images/logo/favicon-16x16.pngrename to python/docs/src/_static/images/logo/favicon-16x16.pngdiff --git a/python/packages/autogen-core/docs/src/_static/images/logo/favicon-32x32.png b/python/docs/src/_static/images/logo/favicon-32x32.pngsimilarity index 100%rename from python/packages/autogen-core/docs/src/_static/images/logo/favicon-32x32.pngrename to python/docs/src/_static/images/logo/favicon-32x32.pngdiff --git a/python/packages/autogen-core/docs/src/_static/images/logo/favicon-512x512.png b/python/docs/src/_static/images/logo/favicon-512x512.pngsimilarity index 100%rename from python/packages/autogen-core/docs/src/_static/images/logo/favicon-512x512.pngrename to python/docs/src/_static/images/logo/favicon-512x512.pngdiff --git a/python/packages/autogen-core/docs/src/_static/images/logo/favicon.ico b/python/docs/src/_static/images/logo/favicon.icosimilarity index 100%rename from python/packages/autogen-core/docs/src/_static/images/logo/favicon.icorename to python/docs/src/_static/images/logo/favicon.icodiff --git a/python/packages/autogen-core/docs/src/_static/images/logo/logo.svg b/python/docs/src/_static/images/logo/logo.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/_static/images/logo/logo.svgrename to python/docs/src/_static/images/logo/logo.svgdiff --git a/python/packages/autogen-core/docs/src/_static/switcher.json b/python/docs/src/_static/switcher.jsonsimilarity index 100%rename from python/packages/autogen-core/docs/src/_static/switcher.jsonrename to python/docs/src/_static/switcher.jsondiff --git a/python/packages/autogen-core/docs/src/_templates/edit-this-page.html b/python/docs/src/_templates/edit-this-page.htmlsimilarity index 100%rename from python/packages/autogen-core/docs/src/_templates/edit-this-page.htmlrename to python/docs/src/_templates/edit-this-page.htmldiff --git a/python/packages/autogen-core/docs/src/_templates/footer-middle-links.html b/python/docs/src/_templates/footer-middle-links.htmlsimilarity index 100%rename from python/packages/autogen-core/docs/src/_templates/footer-middle-links.htmlrename to python/docs/src/_templates/footer-middle-links.htmldiff --git a/python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-agentchat.html b/python/docs/src/_templates/sidebar-nav-bs-agentchat.htmlsimilarity index 100%rename from python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-agentchat.htmlrename to python/docs/src/_templates/sidebar-nav-bs-agentchat.htmldiff --git a/python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-core.html b/python/docs/src/_templates/sidebar-nav-bs-core.htmlsimilarity index 100%rename from python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-core.htmlrename to python/docs/src/_templates/sidebar-nav-bs-core.htmldiff --git a/python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-extensions.html b/python/docs/src/_templates/sidebar-nav-bs-extensions.htmlsimilarity index 100%rename from python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-extensions.htmlrename to python/docs/src/_templates/sidebar-nav-bs-extensions.htmldiff --git a/python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-studio.html b/python/docs/src/_templates/sidebar-nav-bs-studio.htmlsimilarity index 100%rename from python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs-studio.htmlrename to python/docs/src/_templates/sidebar-nav-bs-studio.htmldiff --git a/python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs.html b/python/docs/src/_templates/sidebar-nav-bs.htmlsimilarity index 100%rename from python/packages/autogen-core/docs/src/_templates/sidebar-nav-bs.htmlrename to python/docs/src/_templates/sidebar-nav-bs.htmldiff --git a/python/packages/autogen-core/docs/src/_templates/theme-switcher.html b/python/docs/src/_templates/theme-switcher.htmlsimilarity index 100%rename from python/packages/autogen-core/docs/src/_templates/theme-switcher.htmlrename to python/docs/src/_templates/theme-switcher.htmldiff --git a/python/packages/autogen-core/docs/src/_templates/version-banner-override.html b/python/docs/src/_templates/version-banner-override.htmlsimilarity index 100%rename from python/packages/autogen-core/docs/src/_templates/version-banner-override.htmlrename to python/docs/src/_templates/version-banner-override.htmldiff --git a/python/packages/autogen-core/docs/src/conf.py b/python/docs/src/conf.pysimilarity index 94%rename from python/packages/autogen-core/docs/src/conf.pyrename to python/docs/src/conf.pyindex 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.pysimilarity index 99%rename from python/packages/autogen-core/docs/src/generate_api_toc.pyrename to python/docs/src/generate_api_reference.pyindex 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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/images/assistant-agent.svgrename to python/docs/src/images/assistant-agent.svgdiff --git a/python/packages/autogen-core/docs/src/images/autogen-magentic-one-agents.png b/python/docs/src/images/autogen-magentic-one-agents.pngsimilarity index 100%rename from python/packages/autogen-core/docs/src/images/autogen-magentic-one-agents.pngrename to python/docs/src/images/autogen-magentic-one-agents.pngdiff --git a/python/packages/autogen-core/docs/src/images/autogen-magentic-one-example.png b/python/docs/src/images/autogen-magentic-one-example.pngsimilarity index 100%rename from python/packages/autogen-core/docs/src/images/autogen-magentic-one-example.pngrename to python/docs/src/images/autogen-magentic-one-example.pngdiff --git a/python/packages/autogen-core/docs/src/images/code.svg b/python/docs/src/images/code.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/images/code.svgrename to python/docs/src/images/code.svgdiff --git a/python/packages/autogen-core/docs/src/images/example-company.jpg b/python/docs/src/images/example-company.jpgsimilarity index 100%rename from python/packages/autogen-core/docs/src/images/example-company.jpgrename to python/docs/src/images/example-company.jpgdiff --git a/python/packages/autogen-core/docs/src/images/example-literature.jpg b/python/docs/src/images/example-literature.jpgsimilarity index 100%rename from python/packages/autogen-core/docs/src/images/example-literature.jpgrename to python/docs/src/images/example-literature.jpgdiff --git a/python/packages/autogen-core/docs/src/images/example-travel.jpeg b/python/docs/src/images/example-travel.jpegsimilarity index 100%rename from python/packages/autogen-core/docs/src/images/example-travel.jpegrename to python/docs/src/images/example-travel.jpegdiff --git a/python/packages/autogen-core/docs/src/images/open-ai-telemetry-example.png b/python/docs/src/images/open-ai-telemetry-example.pngsimilarity index 100%rename from python/packages/autogen-core/docs/src/images/open-ai-telemetry-example.pngrename to python/docs/src/images/open-ai-telemetry-example.pngdiff --git a/python/packages/autogen-core/docs/src/index.md b/python/docs/src/index.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/index.mdrename to python/docs/src/index.mddiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/custom-agents.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/custom-agents.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/examples/company-research.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/examples/company-research.ipynbdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/examples/index.mdrename to python/docs/src/user-guide/agentchat-user-guide/examples/index.mddiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/examples/literature-review.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/examples/literature-review.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/examples/travel-planning.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/examples/travel-planning.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/graph-flow.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/graph-flow.ipynbdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/index.mdrename to python/docs/src/user-guide/agentchat-user-guide/index.mddiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/installation.mdrename to python/docs/src/user-guide/agentchat-user-guide/installation.mddiff --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.pngsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/jaeger.pngrename to python/docs/src/user-guide/agentchat-user-guide/jaeger.pngdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/logging.mdrename to python/docs/src/user-guide/agentchat-user-guide/logging.mddiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/magentic-one.mdrename to python/docs/src/user-guide/agentchat-user-guide/magentic-one.mddiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/memory.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/memory.ipynbdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/migration-guide.mdrename to python/docs/src/user-guide/agentchat-user-guide/migration-guide.mddiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/quickstart.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/quickstart.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/selector-group-chat.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/selector-group-chat.ipynbdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/selector-group-chat.svgrename to python/docs/src/user-guide/agentchat-user-guide/selector-group-chat.svgdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/serialize-components.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/serialize-components.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/swarm.ipynbdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm_customer_support.svgrename to python/docs/src/user-guide/agentchat-user-guide/swarm_customer_support.svgdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/swarm_stock_research.svgrename to python/docs/src/user-guide/agentchat-user-guide/swarm_stock_research.svgdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tracing.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/tracing.ipynbdiff --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/.gitignoresimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/.gitignorerename to python/docs/src/user-guide/agentchat-user-guide/tutorial/.gitignorediff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/agentchat-team.svgrename to python/docs/src/user-guide/agentchat-user-guide/tutorial/agentchat-team.svgdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/agents.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/tutorial/agents.ipynbdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop-termination.svgrename to python/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop-termination.svgdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop-user-proxy.svgrename to python/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop-user-proxy.svgdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/tutorial/human-in-the-loop.ipynbdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/index.mdrename to python/docs/src/user-guide/agentchat-user-guide/tutorial/index.mddiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/messages.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/tutorial/messages.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/state.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/tutorial/state.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/teams.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/tutorial/teams.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynbrename to python/docs/src/user-guide/agentchat-user-guide/tutorial/termination.ipynbdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/experimental.mdrename to python/docs/src/user-guide/autogenstudio-user-guide/experimental.mddiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/faq.mdrename to python/docs/src/user-guide/autogenstudio-user-guide/faq.mddiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/index.mdrename to python/docs/src/user-guide/autogenstudio-user-guide/index.mddiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/installation.mdrename to python/docs/src/user-guide/autogenstudio-user-guide/installation.mddiff --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.jpgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/jsoneditor.jpgrename to python/docs/src/user-guide/autogenstudio-user-guide/jsoneditor.jpgdiff --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.jpgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/teambuilder.jpgrename to python/docs/src/user-guide/autogenstudio-user-guide/teambuilder.jpgdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/usage.mdrename to python/docs/src/user-guide/autogenstudio-user-guide/usage.mddiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/command-line-code-executors.ipynbrename to python/docs/src/user-guide/core-user-guide/components/command-line-code-executors.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/model-clients.ipynbrename to python/docs/src/user-guide/core-user-guide/components/model-clients.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/model-context.ipynbrename to python/docs/src/user-guide/core-user-guide/components/model-context.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/tools.ipynbrename to python/docs/src/user-guide/core-user-guide/components/tools.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/components/workbench.ipynbrename to python/docs/src/user-guide/core-user-guide/components/workbench.ipynbdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/azure-openai-with-aad-auth.mdrename to python/docs/src/user-guide/core-user-guide/cookbook/azure-openai-with-aad-auth.mddiff --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.csvsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/data/nifty_500_quarterly_results.csvrename to python/docs/src/user-guide/core-user-guide/cookbook/data/nifty_500_quarterly_results.csvdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/extracting-results-with-an-agent.ipynbrename to python/docs/src/user-guide/core-user-guide/cookbook/extracting-results-with-an-agent.ipynbdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/index.mdrename to python/docs/src/user-guide/core-user-guide/cookbook/index.mddiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/instrumenting.mdrename to python/docs/src/user-guide/core-user-guide/cookbook/instrumenting.mddiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/langgraph-agent.ipynbrename to python/docs/src/user-guide/core-user-guide/cookbook/langgraph-agent.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/llamaindex-agent.ipynbrename to python/docs/src/user-guide/core-user-guide/cookbook/llamaindex-agent.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/llm-usage-logger.ipynbrename to python/docs/src/user-guide/core-user-guide/cookbook/llm-usage-logger.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/local-llms-ollama-litellm.ipynbrename to python/docs/src/user-guide/core-user-guide/cookbook/local-llms-ollama-litellm.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/openai-assistant-agent.ipynbrename to python/docs/src/user-guide/core-user-guide/cookbook/openai-assistant-agent.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/structured-output-agent.ipynbrename to python/docs/src/user-guide/core-user-guide/cookbook/structured-output-agent.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/termination-with-intervention.ipynbrename to python/docs/src/user-guide/core-user-guide/cookbook/termination-with-intervention.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/tool-use-with-intervention.ipynbrename to python/docs/src/user-guide/core-user-guide/cookbook/tool-use-with-intervention.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/cookbook/topic-subscription-scenarios.ipynbrename to python/docs/src/user-guide/core-user-guide/cookbook/topic-subscription-scenarios.ipynbdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/agent-and-multi-agent-application.mdrename to python/docs/src/user-guide/core-user-guide/core-concepts/agent-and-multi-agent-application.mddiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/agent-identity-and-lifecycle.mdrename to python/docs/src/user-guide/core-user-guide/core-concepts/agent-identity-and-lifecycle.mddiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/agent-lifecycle.svgrename to python/docs/src/user-guide/core-user-guide/core-concepts/agent-lifecycle.svgdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/application-stack.mdrename to python/docs/src/user-guide/core-user-guide/core-concepts/application-stack.mddiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/application-stack.svgrename to python/docs/src/user-guide/core-user-guide/core-concepts/application-stack.svgdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/architecture-distributed.svgrename to python/docs/src/user-guide/core-user-guide/core-concepts/architecture-distributed.svgdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/architecture-standalone.svgrename to python/docs/src/user-guide/core-user-guide/core-concepts/architecture-standalone.svgdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/architecture.mdrename to python/docs/src/user-guide/core-user-guide/core-concepts/architecture.mddiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/code-gen-example.svgrename to python/docs/src/user-guide/core-user-guide/core-concepts/code-gen-example.svgdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/subscription.svgrename to python/docs/src/user-guide/core-user-guide/core-concepts/subscription.svgdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/topic-and-subscription.mdrename to python/docs/src/user-guide/core-user-guide/core-concepts/topic-and-subscription.mddiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-multi-tenant.svgrename to python/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-multi-tenant.svgdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-single-tenant-multiple-topics.svgrename to python/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-single-tenant-multiple-topics.svgdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-single-tenant-single-topic.svgrename to python/docs/src/user-guide/core-user-guide/core-concepts/type-subscription-single-tenant-single-topic.svgdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/code-execution-groupchat.ipynbrename to python/docs/src/user-guide/core-user-guide/design-patterns/code-execution-groupchat.ipynbdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/coder-reviewer-data-flow.svgrename to python/docs/src/user-guide/core-user-guide/design-patterns/coder-reviewer-data-flow.svgdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/concurrent-agents.ipynbrename to python/docs/src/user-guide/core-user-guide/design-patterns/concurrent-agents.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/group-chat.ipynbrename to python/docs/src/user-guide/core-user-guide/design-patterns/group-chat.ipynbdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/groupchat.svgrename to python/docs/src/user-guide/core-user-guide/design-patterns/groupchat.svgdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/handoffs.ipynbrename to python/docs/src/user-guide/core-user-guide/design-patterns/handoffs.ipynbdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/handoffs.svgrename to python/docs/src/user-guide/core-user-guide/design-patterns/handoffs.svgdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/intro.mdrename to python/docs/src/user-guide/core-user-guide/design-patterns/intro.mddiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/mixture-of-agents.ipynbrename to python/docs/src/user-guide/core-user-guide/design-patterns/mixture-of-agents.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/multi-agent-debate.ipynbrename to python/docs/src/user-guide/core-user-guide/design-patterns/multi-agent-debate.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/reflection.ipynbrename to python/docs/src/user-guide/core-user-guide/design-patterns/reflection.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/sequential-workflow.ipynbrename to python/docs/src/user-guide/core-user-guide/design-patterns/sequential-workflow.ipynbdiff --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.svgsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/design-patterns/sequential-workflow.svgrename to python/docs/src/user-guide/core-user-guide/design-patterns/sequential-workflow.svgdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/faqs.mdrename to python/docs/src/user-guide/core-user-guide/faqs.mddiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/agent-and-agent-runtime.ipynbrename to python/docs/src/user-guide/core-user-guide/framework/agent-and-agent-runtime.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/component-config.ipynbrename to python/docs/src/user-guide/core-user-guide/framework/component-config.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/distributed-agent-runtime.ipynbrename to python/docs/src/user-guide/core-user-guide/framework/distributed-agent-runtime.ipynbdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/logging.mdrename to python/docs/src/user-guide/core-user-guide/framework/logging.mddiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/message-and-communication.ipynbrename to python/docs/src/user-guide/core-user-guide/framework/message-and-communication.ipynbdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/telemetry.mdrename to python/docs/src/user-guide/core-user-guide/framework/telemetry.mddiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/index.mdrename to python/docs/src/user-guide/core-user-guide/index.mddiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/installation.mdrename to python/docs/src/user-guide/core-user-guide/installation.mddiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/core-user-guide/quickstart.ipynbrename to python/docs/src/user-guide/core-user-guide/quickstart.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/azure-container-code-executor.ipynbrename to python/docs/src/user-guide/extensions-user-guide/azure-container-code-executor.ipynbdiff --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.ipynbsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/azure-foundry-agent.ipynbrename to python/docs/src/user-guide/extensions-user-guide/azure-foundry-agent.ipynbdiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/create-your-own.mdrename to python/docs/src/user-guide/extensions-user-guide/create-your-own.mddiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/discover.mdrename to python/docs/src/user-guide/extensions-user-guide/discover.mddiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/index.mdrename to python/docs/src/user-guide/extensions-user-guide/index.mddiff --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.mdsimilarity index 100%rename from python/packages/autogen-core/docs/src/user-guide/extensions-user-guide/installation.mdrename to python/docs/src/user-guide/extensions-user-guide/installation.mddiff --git a/python/packages/autogen-core/.gitignore b/python/packages/autogen-core/.gitignoreindex 6f1f50b31..a93071a96 100644--- a/python/packages/autogen-core/.gitignore+++ b/python/packages/autogen-core/.gitignore@@ -170,7 +170,4 @@ log.jsonldocs/**/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 filediff --git a/python/packages/autogen-core/docs/README.md b/python/packages/autogen-core/docs/README.mddeleted file mode 100644index 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.tomlindex 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.pyindex 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 interfaceto 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 underlyingtool 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.tomlindex 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 = trueselect = ["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 = falsereportMissingTypeStubs = 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.lockindex 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" },