Mohammad Mazraeh be5c0b5d3e
fix: remove subscription on client disconnect in worker runtime (#3653)
* remove subscription on client disconnect in worker runtime

* address PR feedback

* remove outdated comment

* remove public properties

* fix mypy issue

* address PR feedback

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-10-05 08:15:01 -07:00
..
2024-08-19 20:32:34 +00:00
2024-09-23 20:10:57 +00:00
2024-08-29 17:58:00 -04:00
2024-10-01 18:59:03 -04:00

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/