Loading...
    • 建構
    • 管理
    • 模型與定價
    • 客戶端 SDK
    • API 參考
    Search...
    ⌘K
    第一步
    Claude 簡介快速入門
    使用 Claude 建構
    功能概覽使用 Messages API處理停止原因
    模型功能
    延伸思考自適應思考效能快速模式(測試版:研究預覽)結構化輸出引用來源串流訊息批次處理搜尋結果串流拒絕多語言支援嵌入向量
    工具
    概覽工具使用方式網路搜尋工具網路擷取工具程式碼執行工具記憶體工具Bash 工具電腦使用工具文字編輯器工具
    工具基礎架構
    工具搜尋程式化工具呼叫細粒度工具串流
    上下文管理
    上下文視窗壓縮上下文編輯提示快取Token 計數
    處理檔案
    Files APIPDF 支援圖像與視覺
    技能
    概覽快速入門最佳實踐企業版技能API 中的技能
    MCP
    遠端 MCP 伺服器MCP 連接器
    提示工程
    概覽提示最佳實踐Console 提示工具
    測試與評估
    定義成功標準並建立評估在 Console 中使用評估工具降低延遲
    強化防護欄
    減少幻覺提高輸出一致性防範越獄減少提示洩漏
    資源
    詞彙表
    版本說明
    Claude Platform
    Console
    Log in
    Loading...
    Loading...
    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
    定義您的代理

    技能

    為您的代理附加可重複使用的、基於檔案系統的專業知識,以支援特定領域的工作流程。

    技能是可重複使用的、基於檔案系統的資源,為您的代理提供特定領域的專業知識:工作流程、上下文和最佳實踐,將通用代理轉變為專業代理。與提示詞(針對一次性任務的對話層級指令)不同,技能按需載入,僅在需要時影響上下文視窗。

    支援兩種類型的技能。兩者的工作方式相同:當技能與任務相關時,您的代理會自動調用它們。

    • Anthropic 預建技能: 常見的文件任務,例如 PowerPoint、Excel、Word 和 PDF 處理。
    • 自訂技能: 您自行編寫並上傳至組織的技能。

    若要了解如何編寫自訂技能,請參閱代理技能概覽和最佳實踐。本頁假設您的組織中已有可用的技能,或您正在使用 Anthropic 預建技能。

    所有 Managed Agents API 請求都需要 managed-agents-2026-04-01 beta 標頭。SDK 會自動設定 beta 標頭。

    在工作階段中啟用技能

    在建立代理時附加技能。每個工作階段最多支援 20 個技能——如果您正在使用多個代理,這包括工作階段中所有代理的技能。

    agent=$(curl -sS https://api.anthropic.com/v1/agents \
      -H "x-api-key: $ANTHROPIC_API_KEY" \
      -H "anthropic-version: 2023-06-01" \
      -H "anthropic-beta: managed-agents-2026-04-01" \
      --json @- <<'EOF'
    {
      "name": "Financial Analyst",
      "model": "claude-sonnet-4-6",
      "system": "You are a financial analysis agent.",
      "skills": [
        {"type": "anthropic", "skill_id": "xlsx"},
        {"type": "custom", "skill_id": "skill_abc123", "version": "latest"}
      ]
    }
    EOF
    )

    技能類型

    欄位描述
    type預建技能使用 anthropic,組織自行編寫的技能使用 custom。
    skill_id技能識別碼。對於 Anthropic 技能,使用簡短名稱(例如 xlsx)。對於自訂技能,使用建立時返回的 skill_* ID。
    version僅限自訂技能。固定至特定版本或使用 latest。

    Was this page helpful?