3.8 KiB
title, intro, versions, topics, shortTitle, contentType
| title | intro | versions | topics | shortTitle | contentType | |||
|---|---|---|---|---|---|---|---|---|
| Testing and releasing {% data variables.copilot.custom_agents_short %} in your organization or enterprise | Ensure your {% data variables.copilot.custom_agents_short %} are performant and compliant before releasing them to your company. |
|
|
Test custom agents | how-tos |
{% data reusables.copilot.custom-agents-preview-note %}
Introduction
Before you release or update a {% data variables.copilot.copilot_custom_agent_short %} in your organization or enterprise, you can test the agent privately to ensure it meets your standards. Once you are satisfied, you can then easily change the location of your {% data variables.copilot.agent_profile %} to make it available across your company.
Prerequisites
Before you can test a {% data variables.copilot.copilot_custom_agent_short %}, you need to set up your organization or enterprise for {% data variables.copilot.custom_agents_short %}. See AUTOTITLE or AUTOTITLE.
1. Create your test {% data variables.copilot.copilot_custom_agent_short %}
- In your organization or enterprise's
.github-privaterepository, create a new directory called.github/agents. Agents stored in this directory are only available to members of your organization or enterprise who have access to the.github-privaterepository, and can only be used when they start a task within that repository. - In your
.github/agentsdirectory, create the {% data variables.copilot.agent_profile %} for your test agent. You can create a net-new profile or duplicate an existing profile to test potential updates. For information on configuring an {% data variables.copilot.agent_profile %}, see AUTOTITLE. - Merge your test {% data variables.copilot.agent_profile %} into the default branch of your repository.
2. Test your {% data variables.copilot.copilot_custom_agent_short %}
- Navigate to the agents tab at https://github.com/copilot/agents.
- Using the dropdown menu in the prompt box, select your
.github-privaterepository. - Select {% octicon "copilot" aria-label="Select a custom agent" %}, then click your test agent.
- To test your {% data variables.copilot.copilot_custom_agent_short %}, send {% data variables.product.prodname_copilot_short %} a prompt.
- In the "Recent sessions" section, click your session to see detailed information about your results.
- Continue making changes and testing your {% data variables.copilot.copilot_custom_agent_short %} as needed until you are satisfied with its performance.
3. Release your {% data variables.copilot.copilot_custom_agent_short %}
- In your
.github-privaterepository, move your {% data variables.copilot.agent_profile %} from the.github/agentsdirectory into theagentsdirectory. - Merge your changes into the default branch. Your {% data variables.copilot.copilot_custom_agent_short %} is now available to all users in your organization or enterprise.
Next steps
To monitor the usage of {% data variables.copilot.custom_agents_short %} in your organization, filter your organization's audit log by actor:Copilot. See AUTOTITLE.
To monitor the usage of {% data variables.copilot.custom_agents_short %} in your enterprise, see AUTOTITLE.