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.5.tar.gz (73.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.5-py3-none-any.whl (87.2 kB view details)

Uploaded Python 3

File details

Details for the file bisheng_pyautogen_lc1-0.3.5.tar.gz.

File metadata

  • Download URL: bisheng_pyautogen_lc1-0.3.5.tar.gz
  • Upload date:
  • Size: 73.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for bisheng_pyautogen_lc1-0.3.5.tar.gz
Algorithm Hash digest
SHA256 8920e48e8ffee23aa5a70b817b96777e7fa563b12ce63d68e20cdb623dfb8387
MD5 6969d0a9b74117e9a6cd175bec34cae5
BLAKE2b-256 ad1d92ad5736171c29b52e22742d44e02276e2550cfca6ec1887a43de1ed904e

See more details on using hashes here.

File details

Details for the file bisheng_pyautogen_lc1-0.3.5-py3-none-any.whl.

File metadata

File hashes

Hashes for bisheng_pyautogen_lc1-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8ac27328cee160280a7eef99c15aa15756b824d00746bb38940b7b4432d0f7cd
MD5 c195453aa5f98d542d4e9a5c2f5a751a
BLAKE2b-256 5aacc2971378d021fb98928f57a74c42bc0e21f2cdcfb456b4019a60c5cdf100

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