DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
AI for Frontend Developers Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
AI for Frontend Developers
Why is it recommended to shape a small custom response object (e.g. { text, stopReason }) instead of returning the raw SDK response object to the frontend?
A
It's required by the SDK's license
B
It insulates the frontend from future changes to the SDK's internal response shape and avoids leaking billing-relevant internals like usage
C
The raw response object cannot be serialized to JSON
D
It makes the response faster to generate
Check Answer