Partager via


Ajouter un outil GPT à votre agent

Importante

Certaines informations contenues dans cet article concernent le produit en préversion, qui peut être considérablement modifié avant sa publication commerciale. Microsoft n’offre aucune garantie, explicite ou implicite, concernant les informations fournies ici.

Dans cet exemple, vous êtes guidé dans la création d’un outil GPT (compétence) pour votre agent qui déboguera une URL.

Créer et charger un outil GPT sur Security Copilot

L’outil GPT est défini comme suit :

Descriptor:
  Name: DCA_SampleGPT
  DisplayName: DCA_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-4.1
          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}}

Pour obtenir des instructions sur le chargement et l’activation du plug-in, consultez Générer le manifeste de l’agent.

Les résultats finaux après l’exécution du plug-in :

L’image de l’outil GPT aboutit à Security Copilot