Azure / Azure/azure-sdk-for-python
azure-ai-agentserver-langgraph cannot be installed with azure-ai-projects>=2.0
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description
The `azure-ai-agentserver-langgraph` package cannot be installed alongside `azure-ai-projects>=2.0.0b2` due to conflicting transitive dependencies.
The hosted-agents tutorial at https://learn.microsoft.com/azure/ai-foundry/agents/concepts/hosted-agents recommends using:
```bash
pip install --pre azure-ai-projects==2.0.0b2
```
However, installing `azure-ai-agentserver-langgraph` fails because:
1. `azure-ai-agentserver-langgraph` depends on `langchain-azure-ai[opentelemetry]>=1.0.0`
2. `langchain-azure-ai>=1.0.0` requires `azure-ai-projects>=1.0,<2.0` (hard upper bound)
3. This conflicts with `azure-ai-projects>=2.0.0b2`
## To Reproduce
```bash
pip install azure-ai-agentserver-langgraph azure-ai-projects>=2.0.0b2
```
Or with uv (faster error):
```bash
uv pip install --prerelease=allow azure-ai-agentserver-langgraph azure-ai-projects>=2.0.0b2
```
## Error Output (uv)
```
× No solution found when resolving dependencies:
╰─▶ Because langchain-azure-ai==1.0.4 depends on azure-ai-projects>=1.0,<2.0 and azure-ai-projects>=1.0,<2.0, we can
conclude that langchain-azure-ai[opentelemetry]>=1.0.3 depends on azure-ai-projects>=1.0,<2.0.
...
we can conclude that all versions of azure-ai-agentserver-langgraph depend on azure-ai-projects>=1.0.0b12,<2.0.
And because you require azure-ai-agentserver-langgraph and azure-ai-projects>=2.0.0b2, we can conclude that your
requirements are unsatisfiable.
```
Contributor guide
Assessment
This issue has not been assessed yet.