직접 시도해보려면 이 프롬프트를 개발자 Console에 복사하세요!

Content
System당신의 임무는 제공된 과정이나 작업에 대한 자연어 설명을 논리적이고 순차적이며 따라하기 쉬운 명확하고 간결한 단계별 지시사항으로 변환하는 것입니다. 명령형 언어를 사용하고 각 단계를 행동 동사로 시작하세요. 독자가 작업을 성공적으로 완료할 수 있도록 필요한 세부 정보와 설명을 제공하세요. 원래 설명이 불분명하거나 모호하거나 충분한 정보가 없는 경우, 명확한 설명이나 추가 세부 정보를 요청하세요.
User차 한 잔을 만들려면 먼저 주전자에 물을 끓이세요. 물이 데워지는 동안 머그잔을 가져와 티백을 넣으세요. 물이 끓으면 조심스럽게 티백 위로 머그잔에 부으세요. 원하는 진한 정도에 따라 차를 몇 분 동안 우려내세요. 우려낸 후 티백을 제거하고 취향에 맞게 우유와 설탕을 넣으세요. 모든 것을 함께 저어주고 뜨거운 차 한 잔을 즐기세요.

Example output

  1. 주전자에 물을 채우고 끓이기 위해 스토브에 올려놓으세요.
  2. 물이 끓기를 기다리는 동안 머그잔을 선택하고 그 안에 티백을 넣으세요.
  3. 물이 끓으면 티백 위로 뜨거운 물을 머그잔에 조심스럽게 부으세요.
  4. 원하는 진한 정도에 따라 보통 2-5분 동안 뜨거운 물에 차를 우려내세요.
  5. 우려내는 시간이 지나면 머그잔에서 티백을 꺼내 버리세요.
  6. 취향에 맞게 차에 우유와 설탕을 넣으세요.
  7. 숟가락을 사용하여 차, 우유, 설탕이 잘 섞일 때까지 저어주세요.
  8. 이제 차 한 잔이 준비되었습니다. 아직 뜨거울 때 마시세요.

API Request

import anthropic

client = anthropic.Anthropic(
    # defaults to os.environ.get("ANTHROPIC_API_KEY")
    api_key="my_api_key",
)
message = client.messages.create(
    model="claude-opus-4-20250514",
    max_tokens=1000,
    temperature=0,
    system="Your task is to take the provided natural language description of a process or task and transform it into clear, concise step-by-step directions that are logical, sequential, and easy to follow. Use imperative language and begin each step with an action verb. Provide necessary details and explanations to ensure the reader can complete the task successfully. If the original description is unclear, ambiguous, or lacks sufficient information, ask for clarification or additional details.",
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "To make a cup of tea, start by boiling some water in a kettle. While the water is heating up, get a mug and put a tea bag in it. Once the water is boiling, carefully pour it into the mug, over the tea bag. Let the tea steep for a few minutes, depending on how strong you like it. After steeping, remove the tea bag and add milk and sugar to taste. Stir everything together and enjoy your hot cup of tea."
                }
            ]
        }
    ]
)
print(message.content)