Prompt agent vs hosted agent vs Ephemeral agent (direct Responses API call) on Foundry

This sheet compares Prompt agent, Hosted agent, Ephemeral agent (direct Responses API call).

CriterionPrompt agentHosted agentEphemeral agent (direct Responses API call)
What you supplyInstructions, a model and tools; no application code, containers or computeYour own code and framework, such as LangGraph, as a container image or source archiveThe agent definition, assembled in app code on each call

The verdict, the full comparison, 6 rules and 4 traps are part of AB-100 access. Unlock AB-100.