From prototype to production
Agentic AI Foundations · Lesson 12 of 20 · 1:25:06
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Oracle Agentic AI Foundations Associate exam (1Z0-1157-26). In this lesson: the gap between a prototype and production, the seven runtime needs that a framework does not provide, and the OCI Enterprise AI platform in three layers: models (on demand or on a dedicated AI cluster), agents, and governance. Includes three original practice questions, with Fairhaven Furniture, a fictional furniture seller, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
The prototype problem
Fairhaven's support agent works well on a developer's laptop. Then a manager asks: can our customers use it on Monday? Suddenly, the questions change: where does it run, who can call it, where is memory kept, and what happens when something fails?
Three layers
Every agent system has three layers. On top, the user or app: a web page, a mobile app, or another service that calls an API. At the bottom, the agent logic, the code you write with LangChain or the OpenAI Agents SDK: the reasoning, the prompts, and the tool calls. In between sits the runtime architecture, and a framework alone gives you none of it.
Seven runtime needs
Here are seven things that production needs, and that a framework does not provide. First, request handling: the front door, which authenticates users, limits abusive request rates, and routes each request to the right agent. Second, an execution environment: a virtual machine, a Kubernetes cluster, or a serverless function that actually runs the code, and someone has to provision and patch it. Third, orchestration and state: an agent takes many steps, so something must retry a failed step, and keep the conversation across requests. Fourth, a tool sandbox, with limits on CPU, time, and permissions, so that one bad prompt cannot damage a production system.
Fifth, an integration layer, to reach databases and business systems, with secure credential storage, connection pools, and access control for each user. Sixth, scaling and reliability: when traffic jumps tenfold on a sale day, or a server crashes, the system should recover by itself. And seventh, observability: logs, metrics, and traces, so that the next day, you can replay exactly what an agent did. Each of these is real code, and real on-call work.
Do it yourself, or managed
You have two ways to get these seven layers. Do it yourself, by wrapping LangChain or the OpenAI SDK in your own infrastructure, and you own every layer, for weeks of work, then for as long as it runs. Or use a managed agent runtime, like the OCI Enterprise AI Agents service, which already provides most of it. Either way, you still write the agent logic: what changes is that the runtime stops being your problem.
The OCI Enterprise AI platform
OCI Enterprise AI is Oracle's platform for building, deploying, and governing AI applications, within the OCI Generative AI service. It has three layers. Enterprise AI Models are the brain: frontier models from several providers, behind one consistent API. Enterprise AI Agents are the action layer: tools, memory, retrieval, orchestration, and hosted execution, with standards like MCP. And Enterprise AI Governance is the trust layer: security, access, and compliance controls at every stage.
Chat, embedding, rerank
Enterprise AI Models come in three kinds. Chat models generate answers: they are stateless by default, so memory comes from the Conversations API, and they support tool calling, which agents depend on. Embedding models turn text into vectors of a fixed size, where texts with similar meanings land close together, which is what makes semantic search work. And rerank models score a list of candidate passages against a question, so that only the best few reach the chat model.
Serving modes
You also choose how models are served. On-demand mode is where most teams start: you pay for each call, with nothing reserved, on shared infrastructure, so heavy traffic can be throttled, and access ends when Oracle retires the model. Dedicated AI clusters reserve GPUs for your tenancy alone, for predictable latency, and they host the models that you import or fine-tune, while a running cluster can keep serving a model after it is retired. So explore and prototype on demand, then move to a dedicated cluster when production needs guarantees.
Governance in three layers
Enterprise AI Governance works in three layers, like the defense in depth from lesson three. Network security keeps model access inside a secure boundary, with private endpoints, and Zero Trust Packet Routing enforces identity-based communication between services. Identity control uses OCI IAM policies, which say who can access, use, or manage each generative AI resource, in a compartment or across the tenancy. And at runtime, guardrails check model inputs and outputs, with content moderation, prompt injection defense, and detection of personal data. So the network keeps unauthorized traffic out, IAM lets only the right identities in, and guardrails keep the model's behavior safe.
Recap
Let's recap. The agent logic is what you write, and the runtime architecture around it handles requests, execution, state, sandboxing, integration, scaling, and observability. A managed runtime, like OCI Enterprise AI Agents, provides most of it, so you keep writing only the agent logic. The OCI Enterprise AI platform has three layers: models, agents, and governance. Models are chat, embedding, and rerank models, served on demand or on dedicated AI clusters, and governance combines network security, IAM, and guardrails.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Fairhaven’s agent runs Python code to work out delivery costs. The team wants limits on CPU, time, and permissions, so that one malicious prompt cannot touch other systems. Which runtime need is this?
- Request handling at the front door
- Observability: logs, metrics, traces
- A tool sandbox around code execution
- Scaling and reliability
Show the answer
A tool sandbox around code execution
A tool sandbox puts walls around code that the agent runs, with limits on CPU, time, and permissions. “Request handling at the front door” is the front door, which authenticates and routes requests before they reach the agent. “Observability: logs, metrics, traces” logs what happened, but it does not stop anything. And “Scaling and reliability” is about handling more traffic, and recovering from failures.
Fairhaven has fine-tuned a model on its own product catalog, and its support agent needs predictable latency, with GPUs that no other customer shares. How should the team serve the model?
- On a dedicated AI cluster
- On demand, on shared infrastructure
- Through the Conversations API
- Through a rerank model
Show the answer
On a dedicated AI cluster
A dedicated AI cluster reserves GPUs for one tenancy, gives predictable latency, and hosts fine-tuned models. “On demand, on shared infrastructure” is shared infrastructure, and on-demand mode does not serve custom models. “Through the Conversations API” adds conversation memory, but it does not serve a model. And “Through a rerank model” would score candidate passages, and it is a different kind of model.
Fairhaven wants personal data, like phone numbers and email addresses, detected in what goes into the model and in what comes out, whoever sends the request. Which governance control does this?
- A private endpoint for the model
- An IAM policy on the Generative AI compartment
- Zero Trust Packet Routing
- Guardrails on model inputs and outputs
Show the answer
Guardrails on model inputs and outputs
Guardrails run on the model's inputs and outputs, and can detect personal data, whoever sends the request. “A private endpoint for the model” keeps traffic on a private network path, but it does not look at the content. “An IAM policy on the Generative AI compartment” decides who may use the resources, not what they send. And “Zero Trust Packet Routing” enforces which services can talk to each other.