Prompt Engineering Interactive Tutorial: Based on Anthropic Materials · Урок 1
Basic Prompt Structure
Messages API, required parameters (model, max_tokens, messages), user/assistant roles, the system prompt, and how to shape response format on current Claude models.
ENМатеріали курсів поки англійською. Інтерфейс, ШІ-наставник і перевірка завдань — українською.
Messages API: Required Parameters
Every Claude call via the Messages API includes three parameters:
- model — the model ID (e.g.,
claude-opus-5-5; for simple or high-volume tasks,claude-sonnet-5-5orclaude-haiku-5-5) - max_tokens — hard limit on response tokens
- messages — an array of objects with
roleandcontentfields
The models are trained on alternating user and assistant turns, so start the conversation with user and alternate roles from there.
Далі урок відкривається після безкоштовної реєстрації
Реєстрація через email або Google відкриває перші два уроки кожного курсу назавжди і 7 днів повного доступу до всього каталогу. Картка не потрібна.


