Loading...
    • 開發者指南
    • API 參考
    • MCP
    • 資源
    • 發行說明
    Search...
    ⌘K

    資源

    overview詞彙表系統提示

    使用案例

    概述工單路由客戶支援代理內容審核法律文件摘要

    提示詞庫

    提示詞庫宇宙按鍵企業先知網站精靈Excel 公式專家Google apps 腳本編寫器Python 錯誤修復器時間旅行顧問故事創作夥伴引用您的來源SQL 魔法師夢境解析師雙關語專家烹飪創作者混成詞詩人Hal 幽默助手LaTeX 傳奇情緒色彩化器Git gud比喻專家倫理困境導航器會議記錄員成語解釋器程式碼顧問函數製造器新詞創造者CSV 轉換器表情符號編碼器散文潤飾師觀點思考者問答題產生器正念導師二年級簡化器VR 健身創新者PII 淨化器備忘錄大師職業教練評分專家繞口令面試問題製作器語法精靈猜猜這個謎題程式碼解釋器外星人類學家資料整理器品牌建構師效率估算器評論分類器方向解碼器激勵繆思電子郵件提取器主審查員課程規劃師蘇格拉底式智者頭韻煉金術師未來主義時尚顧問多語言超能力產品命名專家哲學思辨試算表魔法師科幻情境模擬器適應性編輯器Babel的廣播推文語調檢測器機場代碼分析器
    Console
    提示詞庫

    資料整理器

    將非結構化文字轉換為客製化的 JSON 表格。

    將此提示複製到我們的開發者 Console 中親自試用!

    內容
    System您的任務是將提供的非結構化文字轉換為使用 JSON 的井然有序的表格格式。識別文字中提到的主要實體、屬性或類別,並將它們用作 JSON 物件中的鍵。然後,從文字中提取相關資訊,並填入 JSON 物件中對應的值。確保資料在 JSON 結構中準確表示並正確格式化。產生的 JSON 表格應提供原始文字中所呈現資訊的清晰、結構化概覽。
    UserSilvermist Hollow,一個迷人的村莊,是一群非凡個體的家園。其中包括 Dr. Liam Patel,一位 45 歲的耶魯大學培養的神經外科醫師,他在區域醫療中心革新了手術技術。Olivia Chen,28 歲,是一位來自加州大學柏克萊分校的創新建築師,她以可持續且令人驚嘆的設計改變了村莊的景觀。當地劇院因 Ethan Kovacs 迷人的交響樂而增色不少,他是一位 72 歲的茱莉亞音樂學院培養的音樂家和作曲家。Isabella Torres,一位自學成才的廚師,對當地食材充滿熱情,她以農場到餐桌的餐廳創造了烹飪轟動,成為美食愛好者的必訪目的地。這些傑出的個體,各自擁有獨特的才能,為 Silvermist Hollow 的生活織錦增添了活力。

    範例輸出

    [
      {
        "name": "Dr. Liam Patel",
        "age": 45,
        "profession": "神經外科醫師",
        "education": "耶魯大學",
        "accomplishments": "在區域醫療中心革新了手術技術"
      },
      {
        "name": "Olivia Chen",
        "age": 28,
        "profession": "建築師",
        "education": "加州大學柏克萊分校",
        "accomplishments": "以可持續且令人驚嘆的設計改變了村莊的景觀"
      },
      {
        "name": "Ethan Kovacs",
        "age": 72,
        "profession": "音樂家和作曲家",
        "education": "茱莉亞音樂學院",
        "accomplishments": "以迷人的交響樂為當地劇院增色"
      },
      {
        "name": "Isabella Torres",
        "age": null,
        "profession": "廚師",
        "education": "自學成才",
        "accomplishments": "以農場到餐桌的餐廳創造了烹飪轟動,成為美食愛好者的必訪目的地"
      }
    ]

    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="您的任務是將提供的非結構化文字轉換為使用 JSON 的井然有序的表格格式。識別文字中提到的主要實體、屬性或類別,並將它們用作 JSON 物件中的鍵。然後,從文字中提取相關資訊,並填入 JSON 物件中對應的值。確保資料在 JSON 結構中準確表示並正確格式化。產生的 JSON 表格應提供原始文字中所呈現資訊的清晰、結構化概覽。",
        messages=[
            {
                "role": "user",
                "content": [
                    {
                        "type": "text",
                        "text": "Silvermist Hollow,一個迷人的村莊,是一群非凡個體的家園。其中包括 Dr. Liam Patel,一位 45 歲的耶魯大學培養的神經外科醫師,他在區域醫療中心革新了手術技術。Olivia Chen,28 歲,是一位來自加州大學柏克萊分校的創新建築師,她以可持續且令人驚嘆的設計改變了村莊的景觀。當地劇院因 Ethan Kovacs 迷人的交響樂而增色不少,他是一位 72 歲的茱莉亞音樂學院培養的音樂家和作曲家。Isabella Torres,一位自學成才的廚師,對當地食材充滿熱情,她以農場到餐桌的餐廳創造了烹飪轟動,成為美食愛好者的必訪目的地。這些傑出的個體,各自擁有獨特的才能,為 Silvermist Hollow 的生活織錦增添了活力。"
                    }
                ]
            }
        ]
    )
    print(message.content)
    
      © 2025 ANTHROPIC PBC

      Products

      • Claude
      • Claude Code
      • Max plan
      • Team plan
      • Enterprise plan
      • Download app
      • Pricing
      • Log in

      Features

      • Claude and Slack
      • Claude in Excel

      Models

      • Opus
      • Sonnet
      • Haiku

      Solutions

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

      Claude Developer Platform

      • Overview
      • Developer docs
      • Pricing
      • Amazon Bedrock
      • Google Cloud’s Vertex AI
      • Console login

      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

      Help and security

      • Availability
      • Status
      • Support center

      Terms and policies

      • Privacy policy
      • Responsible disclosure policy
      • Terms of service: Commercial
      • Terms of service: Consumer
      • Usage policy

      Products

      • Claude
      • Claude Code
      • Max plan
      • Team plan
      • Enterprise plan
      • Download app
      • Pricing
      • Log in

      Features

      • Claude and Slack
      • Claude in Excel

      Models

      • Opus
      • Sonnet
      • Haiku

      Solutions

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

      Claude Developer Platform

      • Overview
      • Developer docs
      • Pricing
      • Amazon Bedrock
      • Google Cloud’s Vertex AI
      • Console login

      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

      Help and security

      • Availability
      • Status
      • Support center

      Terms and policies

      • Privacy policy
      • Responsible disclosure policy
      • Terms of service: Commercial
      • Terms of service: Consumer
      • Usage policy
      © 2025 ANTHROPIC PBC