Foundry agent types: prompt vs hosted vs connected

Verdict: No code or compute means a prompt agent. A managed, callable endpoint for packaged code means a hosted agent. Several instances of one knowledge tool means connected agents behind an orchestrator.

CriterionPrompt agentHosted agentConnected agent
How it is builtConfiguration only, in the portal or SDK; no code or computePackage Agent Framework code as a container or source zipA registered agent orchestrated by another agent
RuntimeFoundry fully manages the runtimeFoundry runs the code on autoscaling Micro VMs with a dedicated Entra identity and a callable endpointRuns as a specialist called by an orchestrator agent
Choose whenNo custom orchestration logic is neededOther apps must call a network-addressable managed endpointOne agent needs several instances of a knowledge tool, e.g. multiple Azure AI Search indexes

Rules

Traps