Tutorial
Prompt Design and Structured Outputs
A useful prompt states the task, supplies relevant context, defines constraints, and describes the expected result. Structured outputs make the result easier for application code to validate and use. Treat model output as untrusted input and validate it like any other external data.
Knowledge check
Prompt Design Quiz
Check your understanding of prompts and structured output.
Sign in to save completion.