With function calling, which statement is true?
- Exam domain
- OpenAI Responses API and Agents SDK
- Difficulty
- Hard
- In this mock
- 5 questions on this domainPractise this domain
Why B is the answer
The model proposes the call; your code runs it
The model returns a function name and arguments that match your schema. Your application runs the function and sends the result back for the model to use.
Remember: The model proposes; your code runs.
In detail
- The model returns name and arguments.
- Your code executes and returns the result.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The model can only call functions with no argumentsWrong
Functions take arguments defined by a JSON schema.
B. The model proposes the call; your code runs itRight
The model proposes; your code runs.
C. The model runs your function on the provider's serversWrong
Your function runs in your systems, not the provider's.
D. The function runs before the model sees the promptWrong
The model decides to call it after reading the prompt.
Use case
An illustrative scenario, not a real incident.
Illustrative: the model asks for check_stock("SKU-9"), the app queries its inventory, and the model answers with the count.
See it in different ways
sequenceDiagram participant P0 as App participant P1 as Model participant P2 as Your function P0->>P1: Prompt with function schema P1-->>P0: Call with arguments P0->>P2: Run it P0->>P1: Result
How to read this chart
- 1. App sends "Prompt with function schema" to Model.
- 2. App gets a reply from Model: "Call with arguments".
- 3. App sends "Run it" to Your function.
- 4. App sends "Result" to Model.
flowchart LR S0["Describe the function"] --> S1["Model proposes a call"] --> S2["App runs it"] --> S3["Model uses the result"]
How to read this chart
- Read it in order: Describe the function, then Model proposes a call, then App runs it, then Model uses the result.