Fork of bisheng-pyautogen; LangChain v1 only
Project description
Bisheng PyAutoGen LC1
bisheng-pyautogen-lc1 是 bisheng-pyautogen 的一个分支版本,专门针对 LangChain v1+ 进行适配。
本项目的目标是在保留原始 import autogen 导入路径的同时,解决与新版 LangChain 的兼容性问题(例如将 langchain.callbacks 更新为 langchain_core.callbacks)。
🌟 主要特性
- LangChain v1+ 支持: 移除了对旧版 LangChain 的依赖,全面适配
langchain-core。 - 无缝迁移: 您的应用程序代码可以继续使用
import autogen,无需修改业务逻辑。 - 最小化修改: 仅包含必要的兼容性补丁,确保与上游功能的最大的兼容性。
🚀 安装
通过 pip 安装 (推荐)
您可以直接从 GitHub 安装最新版本:
pip install "git+https://github.com/vekise-guo/bisheng-pyautogen-lc1.git@master"
依赖说明
本项目依赖以下核心库:
openai > 1langchain >= 1, < 2langchain-core >= 1, < 2diskcachetermcolorflamlpython-dotenv
🛠️ 开发与测试
如果您希望参与开发或运行测试,请按照以下步骤操作:
-
克隆仓库
git clone git@github.com:vekise-guo/bisheng-pyautogen-lc1.git cd bisheng-pyautogen-lc1
-
安装开发依赖
pip install pytest pytest-asyncio
-
运行测试 我们提供了完整的测试套件,涵盖了 Agent 初始化、消息传递和异步通信等核心功能。
pytest tests/
📝 变更日志
v0.3.2.post1
- 修复
ConversableAgent中langchain.callbacks导入错误,迁移至langchain_core.callbacks。 - 添加
tests/目录,包含ConversableAgent,AssistantAgent,UserProxyAgent的单元测试。 - 使用
pytest替代原有的测试运行方式。 - 更新
README.md为中文文档。
🤝 贡献
欢迎提交 Issue 和 Pull Request!
📄 许可证
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bisheng_pyautogen_lc1-0.3.2.post1.tar.gz.
File metadata
- Download URL: bisheng_pyautogen_lc1-0.3.2.post1.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a000b24a3d47e9c47cbbc48cb06ad64633da0795eed0e1f98166b44391f0b2f0
|
|
| MD5 |
daf8842b20f9e5240b5c18ef1f4534dc
|
|
| BLAKE2b-256 |
c76d063c3ab571ae732794e6f4ce83b6381c12279d2ed0911b2afd7a9f83ecca
|
File details
Details for the file bisheng_pyautogen_lc1-0.3.2.post1-py3-none-any.whl.
File metadata
- Download URL: bisheng_pyautogen_lc1-0.3.2.post1-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e0c56896ad1281e18046bcd947cdb9d9286cdf6b372b3d5efe10760443e4cdf
|
|
| MD5 |
15b772437a1cb06375dede12e5a02a4a
|
|
| BLAKE2b-256 |
939fc34bcf6404a3fc30d4d7575615b6839e680aa114dd139e18e3b96e97571f
|