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>
This commit is contained in:
Leonardo Pinheiro
2024-10-01 09:35:49 +10:00
committed by Jack Gerrits
parent 18d52f606a
commit 6cfa29b018
7 changed files with 297 additions and 62 deletions

View File

@@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: uv sync --locked
- run: uv sync --locked --all-extras
working-directory: ./python
- name: Run task
run: |
@@ -33,7 +33,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: uv sync --locked
- run: uv sync --locked --all-extras
working-directory: ./python
- name: Run task
run: |
@@ -59,7 +59,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: uv sync --locked
- run: uv sync --locked --all-extras
working-directory: ./python
- name: Run task
run: |
@@ -85,14 +85,13 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: uv sync --locked
- run: uv sync --locked --all-extras
working-directory: ./python
- name: Run task
run: |
source ${{ github.workspace }}/python/.venv/bin/activate
poe --directory ${{ matrix.package }} pyright
working-directory: ./python
test:
runs-on: ubuntu-latest
strategy:
@@ -110,7 +109,10 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: uv sync --locked
- name: Run uv sync
run: |
uv sync --locked --all-extras
working-directory: ./python
- name: Run task
run: |
@@ -129,7 +131,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: uv sync --locked
- run: uv sync --locked --all-extras
working-directory: ./python
- name: Run task
run: |
@@ -145,7 +147,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: uv sync --locked
- run: uv sync --locked --all-extras
working-directory: ./python
- name: Run task
run: |

View File

@@ -34,7 +34,7 @@ jobs:
with:
python-version: '3.11'
- run: |
uv sync --locked
uv sync --locked --all-extras
source .venv/bin/activate
poe --directory ./packages/autogen-core docs-build
mkdir -p docs-staging/autogen/dev/