الهدف
بعد هالدرس تقدر ترسل mixed content — نص + صورة + PDF في نفس الـ request — وتبني workflows تحلّل المشاريع والوثائق تلقائيا.
ليش هذا الحين؟
Batch API جاهز. الحين نكمّل الـ content types — PDF و multi-modal workflows. هذا يفتح use cases مثل: تحليل تقارير، مقارنة وثائق، review مشاريع من صور + specs.
الفكرة
Content Types في Request واحد:
content: [
{ type: "text", text: "..." }
{ type: "image", source: { type: "base64", ... } }
{ type: "document", source: { type: "base64", media_type: "application/pdf", ... } }
]
الترتيب مهم:
Claude يقرأ content blocks بالترتيب
Block 1: "هالـ diagram"
Block 2: [صورة]
Block 3: "هالـ spec doc"
Block 4: [PDF]
Block 5: "قارن بينهم"
ترى النص قبل الـ image/doc يعطي context