Agent Skills are now available! Learn more about extending Claude's capabilities with Agent Skills.
简体中文
从基本描述生成比喻。
将此提示复制到我们的开发者控制台中亲自试用!
import anthropic client = anthropic.Anthropic( # defaults to os.environ.get("ANTHROPIC_API_KEY") api_key="my_api_key", ) message = client.messages.create( model="claude-sonnet-4-5", max_tokens=1000, temperature=1, messages=[ { "role": "user", "content": [ { "type": "text", "text": "Help me create some similes to describe a person's laughter that is joyful and contagious?" } ] } ] ) print(message.content)
此页面对您有帮助吗?