Azure / Azure/azure-sdk-for-python

azure-ai-agentserver: support hosted agents on the application-scoped endpoint

Aperta
#45,941 2 commenti 5 reazioni 2 assegnatari Rivendicata da @lusu-msft Vedi su GitHub
customer-reported Hosted Agents needs-team-attention question Service Attention
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
202

Descrizione

## SDK Version
`azure-ai-agentserver==1.0.0b17`

## Problem

The application-scoped Responses API endpoint (`/applications/{agent}/protocols/openai/responses`) currently returns HTTP 400 for hosted agents:

> `Application-scoped routes only support prompt agents. Agent kind 'hosted' is not supported.`

This forces hosted agents to use the project-scoped endpoint (`/api/projects/{project}/openai/responses`), which pre-persists the current user message to the conversation store **before** invoking the agent. When `_fetch_historical_items` runs on a cold start (no `MemorySaver` checkpoint), it reads back the pre-persisted message and merges it with the current input — producing a duplicate. The SDK then writes the duplicate back to the store, corrupting conversation history.

## Expected Behaviour

The application-scoped endpoint should support hosted agents. This would bypass the project routing layer entirely, eliminating the pre-persistence behaviour and the resulting duplication.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.