[azure-ai-projects] Support an HTTPX async transport for AnyIO/Trio applications
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 45/100
Piste de recherche
The issue is about adding HTTPX async transport support to azure-ai-projects and azure-ai-inference. Start by reading the linked azure-core issue #41382 and the existing AsyncHttpXTransport in azure-core-experimental. Examine the generated async client in azure/ai/projects/aio/_client.py and the pyproject.toml dependencies. The goal is to allow using HTTPX instead of aiohttp, enabling Trio/AnyIO support while preserving the asyncio path. 'Done' means the async clients work with both asyncio and Trio backends via AnyIO, including authentication and streaming.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Motivation
Microsoft Agent Framework is assessing support for applications running on either asyncio or Trio through AnyIO. Its Foundry integration uses azure.ai.projects.aio.AIProjectClient (and azure.ai.inference.aio for embeddings). The current azure-ai-projects package explicitly requires aiohttp, and these async clients use azure-core's pipeline, whose default async transport is aiohttp. HTTPX supports both asyncio and Trio; requiring aiohttp keeps this path tied to asyncio even if the calling framework uses AnyIO.
Request
Please make a supported HTTPX-based async transport available end to end for azure-ai-projects (and coordinate with azure-ai-inference and async identity/credential paths where needed), so callers can use Foundry async clients under Trio without requiring aiohttp. Replacing the default aiohttp transport with HTTPX would meet the need; if a change of default is too disruptive, a stable, documented HTTPX transport option that avoids a mandatory aiohttp dependency would also work. Preserve the existing asyncio path.
An application should be able to run the same AIProjectClient operation with anyio.run(main, backend="asyncio") and anyio.run(main, backend="trio"), including authentication, concurrent requests, response streaming, and clean cancellation/close. A transport substitution alone is insufficient if another layer still creates asyncio-only resources.
Related work and references
- Shared
azure-corerequest: https://github.com/Azure/azure-sdk-for-python/issues/41382 (stable HTTPX transport/default selection). This issue is specifically about Foundry SDK usability and end-to-end tests once the core transport is available. azure-ai-projectsdependency on aiohttp: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/pyproject.toml- The generated async client uses
azure.core.AsyncPipelineClient: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/azure/ai/projects/aio/_client.py - Azure Core Experimental has an
AsyncHttpXTransport, but thecorehttpHTTPX transport documented separately is not an interchangeable transport for theseazure-coreclients: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-experimental - HTTPX backend support: https://www.python-httpx.org/async/#supported-async-environments
- Langage dominant
- Python
- Étoiles
- 5.6k
- Forks
- 3.4k
- Merge moyen
- 1 j 22 h
- PR mergées (30 j)
- 189
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Azure/azure-sdk-for-python
-
needs-triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
Azure/azure-sdk-for-python#50155 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
[Teams Chatbot]: next-mypy install 404s should point to CFS auth or --pypi workaroundPeut-être pris @jianingwang123 l’a pris il y a 17 jours. Ouverteneeds-triage
Difficulté 1/5 1-3 heures Accessibilité débutants 72/100
Azure/azure-sdk-for-python#49886 · 1 commentaire · 2 réactions · 2 personnes assignées ·
Les mainteneurs répondent en général sous 1 jour
-
[AI Projects] AIProjectInstrumentor: non-streamed responses.create raises AttributeError ('NonRecordingSpan' object has no attribute 'attributes') when the span is not sampledPeut-être pris @14H034160212 l’a pris il y a 19 jours. OuverteAI Projects Client customer-reported question
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Azure/azure-sdk-for-python#49854 · 2 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
azure-eventhub migration guide: legacy checkpoint sample writes "None" metadata for partitions that were never checkpointedPeut-être pris @hidingmyname l’a pris il y a 27 jours. OuverteClient customer-reported Event Hubs needs-team-attention question Service Attention
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Azure/azure-sdk-for-python#49723 · 2 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Scheduled test pipelines fail at the Analyze_Test stage due to date formattingPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. OuverteEngSys
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Azure/azure-sdk-for-python#49614 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de Azure/azure-sdk-for-python
Issues similaires
-
🧫10장-투향
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
hyunjimoon/golden-cage-book#188 ·
-
agent/scanner bug stage/010-actionable
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
torch-spyre/spyre-inference#1812 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug: fenced drafts inside <think> tags break parsing or are returned instead of the answerPeut-être pris @aad1tyaaaaa l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
google/langextract#639 ·
Les mainteneurs répondent en général sous 1 jour
-
[oblt-aw][autodoc] Update autodoc routing docs for relative in-repo lock usesPeut-être pris @github-actions l’a pris aujourd’hui. Ouverte
Difficulté 1/5 1-3 heures Accessibilité débutants 87/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour