microsoft / microsoft/Agent365-python
Python Agent Framework sample fails to import with currently resolved SDK dependencies
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 41
- Forks
- 23
- Ø Merge
- 7 Std. 43 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne im Verzeichnis python/agent-framework/sample-agent damit, die uv-Installation und den Befehl python -c "import agent" zu reproduzieren, und untersuche anschließend die Imports des Samples und die Deklarationen seiner Abhängigkeiten. Aktualisiere das Sample für die in den aufgelösten Agent Framework-Abhängigkeiten verfügbaren APIs und verifiziere mit einem Smoke-Test, dass der Import der Anwendung und die Erstellung des Agents erfolgreich sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- backend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 68/100