Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
1 year ago | |
|---|---|---|
| .. | ||
| packages | 1 year ago | |
| samples | 1 year ago | |
| templates/new-package | 1 year ago | |
| .gitignore | 1 year ago | |
| README.md | 1 year ago | |
| check_md_code_blocks.py | 1 year ago | |
| fixup_generated_files.py | 1 year ago | |
| pyproject.toml | 1 year ago | |
| run_task_in_pkgs_if_exist.py | 1 year ago | |
| shared_tasks.toml | 1 year ago | |
| uv.lock | 1 year ago | |
This directory works as a single uv workspace containing all project packages. See packages to discover all project packages.
Please refer to the migration guide for how to migrate your code from 0.2.x to 0.4.x.
TL;DR, run all checks with:
uv sync --all-extras
source .venv/bin/activate
poe check
uv is a package manager that assists in creating the necessary environment and installing packages to run AutoGen.
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 for example.
For example, to change your version to 0.5.18, run:
uv self update 0.5.18
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.
Run the following commands at the root level of the Python directory:
uv sync --all-extras
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.To create a pull request (PR), ensure the following checks are met. You can run each check individually:
poe formatpoe lintpoe testpoe mypypoe pyrightpoe --directory ./packages/autogen-core/ docs-buildpoe --directory ./packages/autogen-core/ docs-servepython/samples: poe samples-code-checkpoe check[!NOTE]
These need to be run in the virtual environment.
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:
uv sync --all-extras
This will update the dependencies in the virtual environment.
To create a new package, similar to autogen-core or autogen-chat, use the following:
uv sync --python 3.12
source .venv/bin/activate
cookiecutter ./templates/new-package/
This is a mirror of AutoGen from GitHub. AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.
Python SVG Jupyter Notebook C# TSX other