Skip to main content

Fork of bisheng-pyautogen; LangChain v1 only

Project description

Bisheng PyAutoGen LC1

bisheng-pyautogen-lc1bisheng-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 > 1
  • langchain >= 1, < 2
  • langchain-core >= 1, < 2
  • diskcache
  • termcolor
  • flaml
  • python-dotenv

🛠️ 开发与测试

如果您希望参与开发或运行测试,请按照以下步骤操作:

  1. 克隆仓库

    git clone git@github.com:vekise-guo/bisheng-pyautogen-lc1.git
    cd bisheng-pyautogen-lc1
    
  2. 安装开发依赖

    pip install pytest pytest-asyncio
    
  3. 运行测试 我们提供了完整的测试套件,涵盖了 Agent 初始化、消息传递和异步通信等核心功能。

    pytest tests/
    

📝 变更日志

v0.3.2.post1

  • 修复 ConversableAgentlangchain.callbacks 导入错误,迁移至 langchain_core.callbacks
  • 添加 tests/ 目录,包含 ConversableAgent, AssistantAgent, UserProxyAgent 的单元测试。
  • 使用 pytest 替代原有的测试运行方式。
  • 更新 README.md 为中文文档。

🤝 贡献

欢迎提交 Issue 和 Pull Request!

📄 许可证

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bisheng_pyautogen_lc1-0.3.2.post1.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bisheng_pyautogen_lc1-0.3.2.post1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file bisheng_pyautogen_lc1-0.3.2.post1.tar.gz.

File metadata

File hashes

Hashes for bisheng_pyautogen_lc1-0.3.2.post1.tar.gz
Algorithm Hash digest
SHA256 a000b24a3d47e9c47cbbc48cb06ad64633da0795eed0e1f98166b44391f0b2f0
MD5 daf8842b20f9e5240b5c18ef1f4534dc
BLAKE2b-256 c76d063c3ab571ae732794e6f4ce83b6381c12279d2ed0911b2afd7a9f83ecca

See more details on using hashes here.

File details

Details for the file bisheng_pyautogen_lc1-0.3.2.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for bisheng_pyautogen_lc1-0.3.2.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e0c56896ad1281e18046bcd947cdb9d9286cdf6b372b3d5efe10760443e4cdf
MD5 15b772437a1cb06375dede12e5a02a4a
BLAKE2b-256 939fc34bcf6404a3fc30d4d7575615b6839e680aa114dd139e18e3b96e97571f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page