Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
將此提示複製到我們的開發者 Console 中親自試用!
| 內容 | |
|---|---|
| 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. |
| User | 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. |
- 將水壺裝滿水並放在爐子上煮沸。
- 在等待水煮沸的同時,選擇一個馬克杯並將茶包放入其中。
- 水煮沸後,小心地將熱水倒入馬克杯中,淋在茶包上。
- 讓茶在熱水中浸泡所需的時間,通常為 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?