Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Oracle · Agentic AI Foundations

OCI Enterprise AI Agents

Agentic AI Foundations · Lesson 13 of 20 · 1:33:04

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.

In this lesson

Prepare for the Oracle Agentic AI Foundations Associate exam (1Z0-1157-26). In this lesson: the two approaches (the OpenAI-compatible OCI Responses API and hosted applications), what OCI manages for you, tools (File Search, Code Interpreter, Function Calling, and MCP Calling) and foundational APIs, and projects with their conversation and long-term memory. 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.

Two ways to production

Fairhaven wants its support agent in production, without building all seven runtime layers itself. OCI Enterprise AI Agents offers two ways to get there. The team can call an API and let OCI run the agent loop, or bring its own agent in a container and let OCI host it.

Approach 1: the OCI Responses API

The first approach is the OCI Responses API, the primary API for agentic workflows in OCI Generative AI. It is OpenAI-compatible: you use the same request syntax as the OpenAI Responses API, so code written for OpenAI carries over. Three things change: the base URL points to OCI, authentication uses OCI credentials, and requests run on OCI models, in OCI regions. In one request, the model can reason over several steps and call several tools. You deploy nothing: your application calls the API, and OCI runs the loop.

Approach 2: hosted applications

The second approach is hosted agentic applications. You package your own agent, built with any framework, as a container image, and push it to OCI Container Registry. In OCI Generative AI, you create an application, which holds the hosting settings, and a deployment, which runs your image. OCI then gives it an HTTP endpoint, and handles scaling, networking, storage, and authentication. And because both approaches exist, a hybrid architecture can call the Responses API for models, tools, and memory, while a hosted deployment runs a custom agent runtime.

What OCI manages

Here is how the service maps to the runtime needs from the last lesson. Hosted applications get an HTTP endpoint, with identity domain authentication, and autoscaling; with the Responses API, there is nothing to scale, because OCI handles the capacity. Memory is built in, from conversations to long-term memory. Code runs in sandboxes, like the code interpreter, containers, and sandbox workspaces, and the platform connects to OCI logging, monitoring, and auditing. What stays yours is the agent logic: its instructions, its tools, its knowledge sources, and the business outcome it serves.

Four built-in tools

With the Responses API, you add tools directly in the request, and the model can call several of them in one request. File Search finds relevant passages in your uploaded documents, through a vector store. Code Interpreter writes and runs Python in a sandbox, for analysis and calculations. Function Calling describes your own functions: the model asks for a call, and your code runs it. And MCP Calling connects the model to remote MCP servers, with their tools.

Foundational APIs

Under the tools, three foundational APIs give you more control. The Files API uploads and manages the files that agents use, the Vector Stores API chunks and embeds documents for semantic search, and the Containers API runs isolated execution environments. Like the Responses API, they are OpenAI-compatible, and you need them only for custom work, like your own retrieval pipeline. OCI also offers Enterprise AI NL2SQL, which turns a question into validated SQL for data in Autonomous AI Database, but only generates the query: a separate MCP server runs it.

Three kinds of memory

The service provides three kinds of memory. Short-term memory carries context within one conversation, through the Conversations API and the Responses API. Long-term memory, when you enable it, pulls out key information from conversations, like stable preferences, and recalls it in future conversations, within the same project. And short-term memory compaction summarizes earlier turns of a long conversation, to cut tokens and latency, while keeping the key details.

Projects

All of this belongs to a project. A project is an OCI resource that groups responses, conversations, files, containers, and sandboxes, and you pass its OCID in every agent call to the OpenAI-compatible API. Projects are isolated from each other: an artifact in one project cannot be reached from another. Each project has its own settings: how long responses and conversations are kept, long-term memory, and compaction. And deleting a project deletes everything created in it.

Recap

Let's recap. The OCI Responses API is OpenAI-compatible, runs on OCI models and credentials, and needs no deployment, while hosted applications run your own container behind an HTTP endpoint, and a hybrid design uses both. The built-in tools are File Search, Code Interpreter, Function Calling, and MCP Calling, with Files, Vector Stores, and Containers as foundational APIs. Memory is short-term, long-term, or compacted. And a project groups an agent's artifacts and settings, isolated from other projects.

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.

  1. Fairhaven’s delivery planner is an agent with its own orchestration code, built with the OpenAI Agents SDK. The team wants it to run on OCI-managed infrastructure, behind an HTTP endpoint, with autoscaling. Which approach fits?

    • Rewrite it as Responses API calls only
    • Package it and deploy a hosted application
    • Expose it through the Conversations API instead
    • Turn on long-term memory in a project
    Show the answer

    Package it and deploy a hosted application

    A hosted application runs your own packaged agent on OCI-managed infrastructure, with an HTTP endpoint and autoscaling. “Rewrite it as Responses API calls only” would throw away the orchestration code that the team already wrote, and a hybrid design could keep both. “Expose it through the Conversations API instead” manages conversation memory, but it does not host an agent. And “Turn on long-term memory in a project” would keep context across conversations, without running anything.

  2. Fairhaven’s agent must answer from 300 assembly guides in PDF, with semantic search, and the team does not want to build a retrieval pipeline. Which built-in tool fits?

    • Code Interpreter, to parse each PDF
    • MCP Calling, to a remote server
    • Function Calling, with custom search code
    • File Search, over a vector store
    Show the answer

    File Search, over a vector store

    File Search retrieves relevant passages from uploaded documents, through a vector store, with no pipeline to build. “Code Interpreter, to parse each PDF” runs code, so the team would write the search itself. “MCP Calling, to a remote server” needs an MCP server that someone has to build or find. And “Function Calling, with custom search code” is exactly the custom retrieval code that the team wants to avoid.

  3. Last month, a returning customer told Fairhaven’s agent that their building has no elevator. Today, in a new conversation, the agent should take this into account for the delivery. What should the team enable?

    • Short-term memory compaction
    • A longer retention for responses
    • Long-term memory in the project
    • A separate project for each customer
    Show the answer

    Long-term memory in the project

    Long-term memory pulls out key information from conversations, and recalls it in later ones, within the same project. “Short-term memory compaction” only summarizes earlier turns inside one conversation. “A longer retention for responses” keeps responses longer, but the agent does not remember them in a new conversation. And “A separate project for each customer” would isolate customers, but it does not make the agent remember anything.