microsoft / microsoft/Agent365-python

Python Agent Framework sample fails to import with currently resolved SDK dependencies

Abierto
#270 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Python
Estrellas
41
Forks
23
Merge medio
7 h 43 min
PR fusionados (30 d)
3

Descripción

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.0
  • agent-framework-openai==1.14.2
  • agent-framework-azure-ai==1.0.0rc6
  • microsoft-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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza en el directorio python/agent-framework/sample-agent reproduciendo la instalación de uv y el comando python -c "import agent"; después, inspecciona los imports del sample y las declaraciones de dependencias. Actualiza el sample para las APIs disponibles en las dependencias resueltas de Agent Framework y verifica con una smoke test que la importación de la aplicación y la construcción del agente se realizan correctamente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
backend
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Activo
Claridad
Bastante claro
Aptitud para principiantes
68/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.