概要
Generative UIへstructured-output approachで取り組むOpenAI公式sample appです。recursive component schemaと`generate_ui` toolを使い、model responseがtextだけでなく信頼性の高いUI definitionをstreamできるようにしつつ、multi-turn conversationとautomatic tool executionも扱います。
要約
1. Official implementation reference: OpenAIがdynamic UI generationをcodeでどう捉えるかを直接確認できる
2. Structured-output angle: freeform HTMLや曖昧なJSONより信頼性を上げたいteamに有用
3. Recursive rendering pattern: model-generated interfaceをrenderするcomponent-schema approachを示す
4. Conversation + UI together: multi-turn chat、tool execution、streamed UIを1つのcompact exampleで扱う
5. 収録価値: model output controlと実際のGenerative UI実装をつなぐ高シグナル資料