CopilotClientExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides extension methods for GitHub.Copilot.CopilotClient to simplify the creation of GitHub Copilot agents.
public static class CopilotClientExtensions
type CopilotClientExtensions = class
Public Module CopilotClientExtensions
- Inheritance
-
CopilotClientExtensions
Remarks
These extensions bridge the gap between GitHub Copilot SDK client objects and the Microsoft Agent Framework.
They allow developers to easily create AI agents that can interact with GitHub Copilot by handling the conversion from Copilot clients to GitHubCopilotAgent instances that implement the AIAgent interface.
Methods
| Name | Description |
|---|---|
| AsAIAgent(CopilotClient, Boolean, String, String, String, IList<AITool>, String) |
Retrieves an instance of AIAgent for a GitHub Copilot client. |
| AsAIAgent(CopilotClient, SessionConfig, Boolean, String, String, String) |
Retrieves an instance of AIAgent for a GitHub Copilot client. |