You already have an agent framework and want to run your own code on Foundry. Which option fits?
Why B is the answer
A hosted agent
Foundry supports declarative prompt agents, and hosted agents for your own packaged code.
In detail
- A hosted agent runs your own code on Foundry.
- Prompt agents suit no-code cases.
Use case
An illustrative scenario, not a real incident.
A team already built agents with its own framework. A hosted agent runs that code on Foundry, with no rewrite.
See it in different ways
flowchart LR A["Model"] --> D["Agent"] B["Instructions"] --> D C["Tools: file search, web search, code interpreter, MCP, functions"] --> D D --> E["Conversation and actions"]
mindmap
root((Foundry agent))
Definition
Role
Goals
Conversation state
Tools
Code interpreter
Custom functions
Tool schemas
Hosting
Prompt agent
Hosted agent
Control
Human approval
Monitoringflowchart TD
Q{"What do you have?"}
Q -->|"No code"| A0["Prompt agent"]
Q -->|"Your own framework"| A1["Hosted agent"]Key point: Hosted agents run your own code.
Why the other options are wrong
- A. A Content Safety filter on its own
- A filter does not host code.
- C. A prompt agent with no code at all
- A prompt agent does not run your framework code.
- D. A translation resource
- Translation is unrelated.

