Перевірити рівеньКурсиПрограмиДля командТарифи
RUУвійтиРеєстрація
Перевірити рівеньКурсиПрограмиДля командТарифиТест із ClaudeПромптиБлогПитання та відповідіПошукРеєстраціяRU
AcademlКурсиPrompt Engineering Interactive Tutorial: Based on Anthropic MaterialsBasic Prompt Structure
Дані листа відокремлені від інструкції тегами emailМодель дописує фразу й обирає наступне слово з трьох варіантівПромпт із чотирьох частин: роль, завдання, контекст, формат
Курс

Prompt Engineering Interactive Tutorial: Based on Anthropic Materials

Модуль 1 · Structure and Clarity Foundations
01Basic Prompt Structure02Being Clear and Direct
Модуль 2 · Roles, Data, and Formatting
03Assigning Roles (Role Prompting)04Separating Data and Instructions05Formatting Output: XML Tags and Structured Outputs
Модуль 3 · Thinking, Examples, and Hallucinations
06Precognition: Thinking Step by Step07Using Examples (Few-Shot Prompting)08Avoiding Hallucinations
Модуль 4 · Complex Prompts and Chaining
09Complex Prompts from Scratch10Chaining Prompts
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Матеріали курсів поки англійською. Інтерфейс, ШІ-наставник і перевірка завдань — українською.

20 хв читанняОновлено 09.11.20263 питання у квізіГотовий промпт включено

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-5 or claude-haiku-5-5)
  • max_tokens — hard limit on response tokens
  • messages — an array of objects with role and content fields

The models are trained on alternating user and assistant turns, so start the conversation with user and alternate roles from there.

Далі урок відкривається після безкоштовної реєстрації

Реєстрація через email або Google відкриває перші два уроки кожного курсу назавжди і 7 днів повного доступу до всього каталогу. Картка не потрібна.

Зареєструватися безкоштовноАбо пробний урок без реєстрації →
У цьому уроці
Messages API: Required ParametersCorrect FormatSystem PromptWhy This MattersShaping the Start and Format of a ResponseWhat Else Changed in the Basic CallПрактикаГотовий промптКвіз
КурсиКурси з LLMДля командТарифиПитання та відповідіБлогПро насКонфіденційність
© 2026 AcademlРозробка та просування сайтів —MMIX — Marketing Mix
Почати безкоштовно