By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
A European bank is deploying a claims assistant for its Irish subsidiary. Legal says claim documents and any text derived from them must be processed inside the European Union. Procurement already holds a cloud commitment. Two engineers want a managed agent runtime so nobody has to build session state. Security asks who holds the data and who can read the transcripts.
Each team proposes a different surface: the Anthropic API, Amazon Bedrock, Google Vertex AI or Microsoft Foundry. Every proposal is defensible in isolation. None of them separates the model surface from the agent runtime, which is why the meeting repeats next week.
In this lesson you will make those two decisions separately, filter by residency before cost, and name what you still own after the runtime takes the loop.
A deployment design answers two questions. Where is the model served, and who runs the loop around it? The first decides procurement, identity and region. The second decides session state, sandboxing, latency control and data custody.
| Decision | Options | What it controls |
|---|---|---|
| Model surface | Anthropic API, Amazon Bedrock, Google Vertex AI, Microsoft Foundry | Billing and identity, region, model availability, vendor attestations |
| Agent runtime | Your own Messages API loop, self-hosted Agent SDK, headless Claude Code, Claude Managed Agents | Session state, tool sandbox, retry and recovery, where transcripts live |
You can mix them. A managed runtime can call a cloud-hosted model. A self-hosted loop can call the Anthropic API. The mix is often the right answer, and it is the main reason to make the two decisions separately.
| Surface | What it is good at | What you give up |
|---|---|---|
| Anthropic API | Newest models and features first, direct support, simple pricing | You own region and compliance posture; procurement may prefer an existing cloud |
| Amazon Bedrock | Existing AWS identity, billing and private networking inside an approved boundary | Model and feature timing can lag, and region availability varies |
| Google Vertex AI | An existing Google Cloud commitment, identity and in-region processing where offered | Same catalogue and timing caveats; verify the region list |
| Microsoft Foundry | An existing Azure tenancy, identity and governance | Same caveats; confirm the model version and region you need |
Do not memorise a feature matrix; it changes monthly. Memorise the four questions to ask about any surface. Is the model version I need available in my region today? Which attestations and contracts cover it? Which identity and billing path applies? Who owns operations when it degrades? Verify each answer in the current documentation and write down the date you checked.
| Runtime | Session state | Sandbox and custody | Best fit |
|---|---|---|---|
| Messages API loop, built by you | Your store; you choose retention | Your infrastructure and tool sandbox | Short flows with strict custody rules |
| Agent SDK, self-hosted | Your process or store | Your container; tools run where you place them | Tool-using agents that must stay inside your network |
| Headless Claude Code | Per run, usually ephemeral | Your CI runner environment | Engineering workflows: migrations, reviews, batch edits |
| Claude Managed Agents | Held by the managed service | Anthropic's runtime; verify region and isolation terms | Long-running agents when you do not want to build state handling |
Latency is the second difference. A runtime you control lets you bound every hop. A managed runtime may add queueing you cannot see. Measure the 95th percentile end to end before you promise anything.
Feature availability is the third. New capabilities often appear in one runtime before another. If the design depends on a specific capability, confirm it exists in the pair of surface and runtime you chose, not only in the surface.
The order matters. Filtering by a legal constraint first saves a meeting, because comparing the cost of a surface your regulator forbids is wasted work that also raises false hope.
Name the data class and the legal constraint in one sentence.
Keep only the surfaces your compliance team has approved.
Confirm the model version and region exist today; date the check.
Choose the runtime by session length, tool risk and custody.
Price operations, not only tokens: review, audit and incident handling.
Write down what you still own, with a name against each line.
A managed runtime takes the loop, not accountability. Put this list in the design document with a named owner against each line.
Return to the Irish claims assistant. Claim documents must stay in the European Union. Each claim runs a 30-minute session. The agent uses four tools, including a payment proposal it may draft but never submit. The automated band has a 60-second p95.
Key takeaways
Separate the model surface from the agent runtime; they answer different questions.
The surface decides region, billing, identity, model availability and attestations.
The runtime decides session state, sandboxing, latency control and data custody.
Filter by residency and compliance before you compare cost.
A managed runtime reduces operational work, not accountability.
Verify model version, region and attestations against current documentation, and date the check.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.