microsoft / microsoft/Agent365-python
Python Agent Framework sample fails to import with currently resolved SDK dependencies
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 41
- Fork
- 23
- Merge medio
- 7h 43m
- PR unite (30g)
- 3
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia nella directory python/agent-framework/sample-agent riproducendo l’installazione di uv e il comando python -c "import agent", quindi esamina gli import del sample e le dichiarazioni delle dipendenze. Aggiorna il sample per le API disponibili nelle dipendenze Agent Framework risolte e verifica con uno smoke test che l’importazione dell’applicazione e la creazione dell’agente abbiano esito positivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 68/100