An agent needs to read the user's calendar from an internal system. With Function Calling, who actually calls the calendar system?
- Exam domain
- Agents with the OCI Responses API
- Difficulty
- Medium
- In this mock
- 6 questions on this domainPractise this domain
Why A is the answer
Your application, after the model requests the function
Function Calling lets the model request data or actions from your application. Your code runs the function and returns the result to the model.
Remember: With functions, your code runs the call.
In detail
- Model asks.
- Your app acts.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Your application, after the model requests the functionRight
With functions, your code runs the call.
B. OCI Generative AI, directly and without your codeWrong
OCI does not call your internal systems for function tools.
C. The vector store, which stores calendar data automatically for every user who signs inWrong
Vector stores hold files, not live calendar data.
D. Nobody; the model guesses the calendarWrong
Guessing is what tools are meant to prevent.
Use case
An illustrative scenario, not a real incident.
Illustrative: a scheduling agent asks for get_free_slots and the app queries the company calendar.
See it in different ways
sequenceDiagram participant P0 as Model participant P1 as Your app participant P2 as Calendar P0->>P1: call get_events P1->>P2: query P2-->>P1: events P1-->>P0: function result
How to read this chart
- 1. Model sends "call get_events" to Your app.
- 2. Your app sends "query" to Calendar.
- 3. Your app gets a reply from Calendar: "events".
- 4. Model gets a reply from Your app: "function result".
mindmap
root(("Responses API tools"))
n1["File Search"]
n2["Vector store retrieval"]
n3["Code Interpreter"]
n4["Python in an isolated container"]
n5["Function Calling"]
n6["Your application runs it"]
n7["MCP Calling"]
n8["Remote MCP server tools"]How to read this chart
- The centre is "Responses API tools".
- "File Search" covers "Vector store retrieval".
- "Code Interpreter" covers "Python in an isolated container".
- "Function Calling" covers "Your application runs it".
- "MCP Calling" covers "Remote MCP server tools".