Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
AI and LLM engineering
/
AI and LLM engineering
How should an OpenAI Responses API client extract generated text reliably?
from AI and LLM engineering
beginner
1 min
How should an OpenAI Responses API client extract generated text reliably?
Check the response status, iterate output items by type, and collect text from message content blocks
Always read output[0].content[0].text because the first item is guaranteed to be text
Serialize the entire response object and display it as the answer
Check
Ask AI about this kata
Report an error
previous kata
Which statement correctly separates MCP host, client, and server responsibilities?
Quiz
next kata
A model emits a function call with schema-valid arguments. What should happen next?
Quiz
A new version is available
Reload