autogen/python
Leonardo Pinheiro 6cfa29b018 Add langchain tool adapter in autogen-ext (#570)
* 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>
2024-09-30 19:36:20 -04:00
..
benchmarks Moved the benchmarks to another repo. (#349) 2024-08-08 11:43:55 -07:00
packages Add langchain tool adapter in autogen-ext (#570) 2024-09-30 19:36:20 -04:00
templates/new-package fix config for pyright for most (#561) 2024-09-18 20:23:53 +00:00
.gitignore Add proto files (#378) 2024-08-19 20:32:34 +00:00
README.md Update README.md (#432) 2024-08-29 17:58:00 -04:00
pyproject.toml Check for prints (#616) 2024-09-23 20:10:57 +00:00
run_task_in_pkgs_if_exist.py Migrate to uv and poe for workspace management and task running (#424) 2024-08-29 09:46:06 -04:00
shared_tasks.toml Remove static subscription restriction (#439) 2024-08-30 14:00:11 -04:00
uv.lock Add langchain tool adapter in autogen-ext (#570) 2024-09-30 19:36:20 -04:00

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/