Loading...
    • 开发者指南
    • API 参考
    • MCP
    • 资源
    • 发布说明
    Search...
    ⌘K
    资源
    概览词汇表系统提示词
    用例
    概览工单路由客户支持 Agent内容审核法律总结
    提示词库
    提示词库Cosmic KeystrokesCorporate clairvoyantWebsite wizardExcel formula expertGoogle apps scripterPython bug busterTime travel consultantStorytelling sidekick引用你的来源SQL sorcererDream interpreterPun-ditCulinary creatorPortmanteau poetHal the humorous helperLaTeX legendMood colorizerGit gudSimile savantEthical dilemma navigatorMeeting scribeIdiom illuminatorCode consultantFunction fabricatorNeologism creatorCSV converterEmoji encoderProse polisherPerspectives pondererTrivia generatorMindfulness mentorSecond-grade simplifierVR fitness innovatorPII purifierMemo maestroCareer coachGrading guruTongue twisterInterview question crafterGrammar genieRiddle me thisCode clarifierAlien anthropologistData organizerBrand builderEfficiency estimatorReview classifierDirection decoderMotivational museEmail extractorMaster moderatorLesson plannerSocratic sageAlliteration alchemistFuturistic fashion advisorPolyglot superpowersProduct naming proPhilosophical musingsSpreadsheet sorcererSci-fi scenario simulatorAdaptive editorBabel's broadcastsTweet tone detectorAirport code analyst
    Console
    Log in
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Partners

    • Amazon Bedrock
    • Google Cloud's Vertex AI

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Help and security

    • Availability
    • Status
    • Support
    • Discord

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy
    提示词库

    方向解码器

    将自然语言转换为逐步指导。

    将此提示复制到我们的开发者控制台中亲自试用!

    内容
    System您的任务是将提供的过程或任务的自然语言描述转换为清晰、简洁的逐步指导,这些指导应该是逻辑性的、顺序性的且易于遵循。使用祈使语言,每个步骤都以动作动词开头。提供必要的细节和解释,确保读者能够成功完成任务。如果原始描述不清楚、模糊或缺乏足够信息,请要求澄清或额外细节。
    User要泡一杯茶,首先在水壶中烧一些水。在水加热的时候,拿一个杯子并在里面放一个茶包。一旦水开了,小心地将水倒入杯子中,倒在茶包上。让茶浸泡几分钟,取决于你喜欢多浓的茶。浸泡后,取出茶包并根据口味添加牛奶和糖。将所有东西搅拌在一起,享受你的热茶。

    示例输出

    1. 在水壶中装满水并将其放在炉子上烧开。
    2. 在等待水烧开的时候,选择一个杯子并在里面放一个茶包。
    3. 一旦水烧开,小心地将热水倒入杯子中,倒在茶包上。
    4. 让茶在热水中浸泡所需的时间,通常为2-5分钟,取决于喜好的浓度。
    5. 浸泡时间结束后,从杯子中取出茶包并丢弃。
    6. 根据您的口味偏好,在茶中添加牛奶和糖。
    7. 用勺子将茶、牛奶和糖搅拌在一起,直到充分混合。
    8. 您的茶现在可以享用了。趁热饮用。

    API 请求

    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=0,
        system="您的任务是将提供的过程或任务的自然语言描述转换为清晰、简洁的逐步指导,这些指导应该是逻辑性的、顺序性的且易于遵循。使用祈使语言,每个步骤都以动作动词开头。提供必要的细节和解释,确保读者能够成功完成任务。如果原始描述不清楚、模糊或缺乏足够信息,请要求澄清或额外细节。",
        messages=[
            {
                "role": "user",
                "content": [
                    {
                        "type": "text",
                        "text": "要泡一杯茶,首先在水壶中烧一些水。在水加热的时候,拿一个杯子并在里面放一个茶包。一旦水开了,小心地将水倒入杯子中,倒在茶包上。让茶浸泡几分钟,取决于你喜欢多浓的茶。浸泡后,取出茶包并根据口味添加牛奶和糖。将所有东西搅拌在一起,享受你的热茶。"
                    }
                ]
            }
        ]
    )
    print(message.content)
    
    • API 请求