With Function Calling on the OCI Responses API, who runs the function?
- Exam domain
- Agentic AI for enterprises on OCI
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why C is the answer
Your application runs it and returns the result
With Function Calling, the model returns the call and your application runs the function, then sends the result back. Code Interpreter is the tool that runs code in a managed container.
Remember: Function Calling: your app runs it.
In detail
- Function Calling: your application runs it.
- Code Interpreter: OCI runs Python for you.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. OCI runs it inside a managed containerWrong
That describes Code Interpreter.
B. The model provider runs it on its own GPU serversWrong
The model only proposes the call.
C. Your application runs it and returns the resultRight
Function Calling: your app runs it.
D. The vector store runs it during searchWrong
A vector store only answers searches.
Use case
An illustrative scenario, not a real incident.
Illustrative: an agent asks to create a ticket, and the company's own service creates it behind its firewall.
See it in different ways
sequenceDiagram participant P0 as Your app participant P1 as OCI Responses API P1-->>P0: Function call with arguments P0->>P1: Function result
How to read this chart
- 1. Your app gets a reply from OCI Responses API: "Function call with arguments".
- 2. Your app sends "Function result" to OCI Responses API.
flowchart TD
Q{"Where should the code run?"}
Q -->|"In your systems"| A0["Function Calling"]
Q -->|"In a sandbox"| A1["Code Interpreter"]
Q -->|"On an MCP server"| A2["MCP Calling"]How to read this chart
- At "Where should the code run?": if "In your systems", go to "Function Calling"; if "In a sandbox", go to "Code Interpreter"; if "On an MCP server", go to "MCP Calling".