Sort: Prompt, Schema, or Validator?
Differentiate what belongs in prompt instructions, schema constraints, and runtime validation.
Prompt instruction Schema constraint Runtime validation Explain that the summary should be concise and written for an account manager Require priority and limit it to the enum low, medium, or high Check that owner_id belongs to an active user in the live system Disallow surprise keys the downstream parser does not understand Tell the model how to handle ambiguous wording from the source message Confirm that the proposed booking slot is still available right now Specify that the model should return one object rather than prose commentary Require nested line items to include amount as a number, not a string
Sign up free — one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in