Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
このプロンプトを開発者コンソールにコピーして、ぜひお試しください!
| 内容 | |
|---|---|
| System | あなたのタスクは、提供されたプロセスやタスクの自然言語による説明を、論理的で順序立てられた、わかりやすい明確で簡潔なステップバイステップの手順に変換することです。命令形の言語を使用し、各ステップをアクション動詞で始めてください。読者がタスクを正常に完了できるよう、必要な詳細と説明を提供してください。元の説明が不明確、曖昧、または十分な情報が不足している場合は、明確化または追加の詳細を求めてください。 |
| User | お茶を入れるには、まずケトルでお湯を沸かします。お湯が沸いている間に、マグカップを用意してティーバッグを入れます。お湯が沸騰したら、ティーバッグの上から慎重にマグカップにお湯を注ぎます。お好みの濃さに応じて、数分間お茶を蒸らします。蒸らした後、ティーバッグを取り出し、お好みでミルクと砂糖を加えます。すべてをかき混ぜて、温かいお茶をお楽しみください。 |
- ケトルに水を入れ、コンロにかけて沸騰させます。
- お湯が沸くのを待つ間に、マグカップを選び、中にティーバッグを入れます。
- お湯が沸騰したら、ティーバッグの上から慎重に熱湯をマグカップに注ぎます。
- お好みの濃さに応じて、通常2〜5分間、お茶を熱湯に浸して蒸らします。
- 蒸らし時間が経過したら、マグカップからティーバッグを取り出して捨てます。
- お好みに応じて、お茶にミルクと砂糖を加えます。
- スプーンを使って、お茶、ミルク、砂糖をよく混ざるまでかき混ぜます。
- お茶の準備ができました。まだ温かいうちにお楽しみください。
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-6",
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)
Was this page helpful?