mirror of https://github.com/microsoft/autogen.git
![]() * add langhcain tool adapter * remove langchain package * fix type errors * test type fixes * fix imports * install extras in CI * improve typing and use to_thread * pin min langchain version * install all extras in ci test * update to langchain 0.3.1 * install extras in CI * ignore pyright errors * add missing uv sync extra reqs --------- Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com> Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> Co-authored-by: Ryan Sweet <rysweet@microsoft.com> Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com> |
||
---|---|---|
.. | ||
benchmarks | ||
packages | ||
templates/new-package | ||
.gitignore | ||
README.md | ||
pyproject.toml | ||
run_task_in_pkgs_if_exist.py | ||
shared_tasks.toml | ||
uv.lock |
README.md
AutoGen Python packages
See autogen-core
package for main functionality.
Development
TL;DR, run all checks with:
uv sync
source .venv/bin/activate
poe check
Setup
Virtual environment
To get a shell with the package available (virtual environment), in the current directory, run:
uv sync
source .venv/bin/activate
Common tasks
- Format:
poe format
- Lint:
poe lint
- 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
[!NOTE] These need to be run in the virtual environment.
Create new package
To create a new package, run:
uv sync
source .venv/bin/activate
cookiecutter ./templates/new-package/