Exercise 02 — Structured Job Extractor¶
Timebox: 30-45 minutes
Goal¶
Turn extract_job.py into a reliable structured-output extractor for job postings.
Work in¶
extract_job.pysample_job_posting.txt
Tasks¶
- Keep the output schema strict.
- Replace the mock response with a real structured-output or tool-call flow.
- Retry when validation fails.
- Handle missing compensation fields gracefully.
- Batch-process multiple postings when the single-item path works.
Done when¶
- The output validates against the schema
- Bad responses fail clearly instead of silently
- The script can process the sample posting end-to-end