Microsoft Security Copilot 中的 GPT 外掛程式

GPT 技能設定

設定名稱 類型 描述 必要項目
ModelName 字串 選取要使用的 GPT 模型。 必須是其中一個 可用的模型名稱。 是
Template 字串 GPT 提示範本。 最多支援 80,000 個字元。 是的,如果沒有指定 TemplateUrl。
TemplateUrl 字串 下載 GPT 提示範本的公用 URL (最多 80,000 個字元)。 是。 指定 TemplateUrl 或 Template,但不指定兩者。
PackageUrl 字串 ZIP 檔案的公用 URL,其中包含 GPT 提示範本。 注意:這在 SkillGroup 層級範例中有說明。 是的,如果沒有指定範本或範本網址。
TemplateFile 字串 PackageUrl zip 檔案內的 GPT 提示範本的相對路徑 (最多 80,000 個字元)。 是的,如果指定了 PackageUrl。

可用的模型名稱

模型名稱 模型系列 最大權杖
gpt-4o GPT 4o 128k

GPT 外掛程式資訊清單

Descriptor:
  Name: SampleGPT
  DisplayName: My Sample GPT Skillset
  Description: Skills for defanging URLs

SkillGroups:
  - Format: GPT
    Skills:
      - Name: DefangUrls
        DisplayName: Defang URLs
        Description: Defangs URLs in the given text
        Inputs:
          - Name: text
            Description: The text containing URLs to be defanged
        Settings:
          ModelName: gpt-4o
          Template: |-
            To 'defang' a URL means to change the scheme to either hxxp or hxxps and replace '.' with '[.]' in the domain so that the URL is still easily readable by a human but doesn't automatically render as a hyperlink if rendered in a rich client such as Outlook. This is often done when sharing potentially malicious links to prevent the reader accidentally clicking on them and visiting a malicious website.

            Some examples of defanging URLs:
            1. https://example.com --> hxxps://example[.]com
            2. http://subdomain.example.com/path.with.dots/ --> hxxp://subdomain[.]example[.]com/path.with.dots/

            Defang any URLs in the following text and return the new text:
            {{text}}

提示

針對生產外掛程式,慣用的實作是將 GPT 範本放在不同的檔案中,並使用 TemplateUrl 或 PackageUrl 設定指向它。

TemplateURL

Descriptor:
  Name: SampleGPTTemplate
  DisplayName: My Sample GPT Skillset With Template
  Description: Skills for defanging URLs

SkillGroups:
  - Format: GPT
    Skills:
      - Name: DefangUrls
        DisplayName: Defang URLs
        Description: Defangs URLs in the given text
        Inputs:
          - Name: text
            Description: The text containing URLs to be defanged
        Settings:
          ModelName: gpt-4o
          TemplateUrl: https://[domain]/template.txt

PackageUrl

Descriptor:
  Name: SampleGPTTemplateWithPackageUrl
  DisplayName: My Sample GPT Skillset With PackageUrl
  Description: Skills for defanging URLs

SkillGroups:
  - Format: GPT
    Settings:
        PackageUrl: https://[domain]/GPTTemplates.zip
    Skills:
      - Name: DefangUrls
        DisplayName: Defang URLs
        Description: Defangs URLs in the given text
        Inputs:
          - Name: text
            Description: The text containing URLs to be defanged
        Settings:
          ModelName: gpt-4o
          TemplateFile: GPTTemplates/SampleGPTTemplate.txt