Python Agent Framework sample fails to import with currently resolved SDK dependencies
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
Bắt đầu trong thư mục python/agent-framework/sample-agent bằng cách tái hiện quá trình cài đặt uv và lệnh python -c "import agent", sau đó kiểm tra các import của sample và các khai báo dependency. Cập nhật sample để sử dụng các API có trong các dependency Agent Framework đã được phân giải, đồng thời xác minh bằng một smoke test rằng việc import ứng dụng và khởi tạo agent đều thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Title: Python Agent Framework sample fails to import with currently resolved SDK dependencies
Description:
Summary
The Python Agent Framework sample uses SDK APIs that are unavailable in the dependency versions resolved during setup.
I encountered this in a local copy of the sample. I also checked upstream main on September 9, 2026 and confirmed that it contains the same imports and unconstrained Agent Framework dependency.
Sample: https://github.com/microsoft/Agent365-Samples/tree/main/python/agent-framework/sample-agent
Environment
- macOS, Apple Silicon ARM64
- Python 3.11.15
agent-framework-core==1.17.0agent-framework-openai==1.14.2agent-framework-azure-ai==1.0.0rc6microsoft-agents-a365-tooling-extensions-agentframework==1.0.0
Steps to Reproduce
From an unmodified copy of the sample directory:
uv venv --python 3.11
source .venv/bin/activate
uv pip install -e .
python -c "import agent"
Dependency resolution can change over time; the versions above describe the environment where I observed the failure.
Actual Behavior
Importing the sample fails before startup or credential validation:
ImportError: cannot import name 'ChatAgent' from 'agent_framework'
After updating that import and its constructor locally, the next import fails:
ImportError: cannot import name 'AzureOpenAIChatClient' from 'agent_framework.azure'
Expected Behavior
Following the documented installation steps should produce an application that imports successfully with the resolved dependencies.
Suggested Resolution
Update the sample to APIs compatible with the Agent 365 integration and provide a tested dependency set. An import and agent-construction smoke test would help catch future SDK incompatibilities.
- Ngôn ngữ chính
- Python
- Star
- 41
- Fork
- 23
- Merge trung bình
- 7 giờ 43 phút
- Pull request đã merge (30 ngày)
- 3
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/Agent365-python
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/Agent365-python#249 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
microsoft/Agent365-python#271 ·
-
[python/agent-framework/sample-agent] Sample dependencies are inconsistent on PyPI — cannot run Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
microsoft/Agent365-python#262 ·
-
microsoft/Agent365-python#257 · 2 bình luận · 1 người được giao ·
-
microsoft/Agent365-python#239 · 1 reaction · 2 người được giao ·
Tất cả issue của microsoft/Agent365-python
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
zostera/django-bootstrap4#894 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
use-agent-os/agent-os#3276 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NousResearch/hermes-agent#117848 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
zilliztech/memsearch#759 ·