[azure-ai-projects] Support an HTTPX async transport for AnyIO/Trio applications
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 5.6k
- Fork
- 3.4k
- Merge medio
- 1g 22h
- PR unite (30g)
- 189
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi 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.
Altre issue di Azure/azure-sdk-for-python
-
needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
Azure/azure-sdk-for-python#50155 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
[Teams Chatbot]: next-mypy install 404s should point to CFS auth or --pypi workaroundForse già presa @jianingwang123 l’ha presa 17 giorni fa. Apertaneeds-triage
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
Azure/azure-sdk-for-python#49886 · 1 commento · 2 reazioni · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
[AI Projects] AIProjectInstrumentor: non-streamed responses.create raises AttributeError ('NonRecordingSpan' object has no attribute 'attributes') when the span is not sampledForse già presa @14H034160212 l’ha presa 19 giorni fa. ApertaAI Projects Client customer-reported question
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Azure/azure-sdk-for-python#49854 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
azure-eventhub migration guide: legacy checkpoint sample writes "None" metadata for partitions that were never checkpointedForse già presa @hidingmyname l’ha presa 27 giorni fa. ApertaClient customer-reported Event Hubs needs-team-attention question Service Attention
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Azure/azure-sdk-for-python#49723 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Scheduled test pipelines fail at the Analyze_Test stage due to date formattingForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaEngSys
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Azure/azure-sdk-for-python#49614 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Azure/azure-sdk-for-python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
vllm-project/vllm#70030 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TigreGotico/tugaphone#408 ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
gke-labs/kube-agents#7308 ·
I maintainer di solito rispondono entro 1 giorno
-
t: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 3 giorni
-
chore
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
lugassawan/swe-workbench#841 ·