Foundry agent types: prompt vs voice-based prompt vs hosted
Verdict: No code or compute means a prompt agent. A real-time spoken conversation means a voice-based prompt agent. Your own code or custom orchestration logic means a hosted agent.
| Criterion | Prompt agent | Voice-based prompt agent | Hosted agent |
|---|---|---|---|
| How it is built | Configuration only, in the portal or SDK; no code or compute | Configuration only; clients connect through Voice Live | Your own code (Agent Framework, LangGraph or another framework), packaged as a container image or source zip |
| Runtime | Foundry fully manages the runtime | Foundry manages the voice orchestration | Foundry runs the code on autoscaling Micro VMs with a dedicated Entra identity and a managed endpoint |
| Choose when | No custom orchestration logic is needed | Real-time spoken conversations | The agent must run your own code or custom orchestration logic |
Rules
- Prompt agents need no application code or compute because Foundry fully manages the runtime.
- Hosted agents run packaged code on autoscaling Micro VMs with a dedicated Entra identity and a managed endpoint other apps can call.
- To ground one agent on several Azure AI Search indexes, connect a Foundry IQ knowledge base; the Foundry IQ (Azure AI Search) tool targets only one index.
- Coordinate tasks from a hosted agent with Microsoft Agent Framework workflows or another code framework, not the visual designer.
- Preserve multi-turn context by creating a conversation once and passing its id on each responses.create call.
Traps
- Connected agents are not a current agent type: they belong to the classic Agent Service, which retires on 31 March 2027.
- Prompt agents and hosted agents both get a managed endpoint, so 'other apps must call it' does not decide between them; your own code does.
- Hosted agents are not supported in the visual workflow designer.