Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
将此提示复制到我们的开发者控制台中亲自试用!
| 内容 | |
|---|---|
| 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?