Skip to content

Index

NexusLabs.Needlr.Copilot Namespace

Classes
CopilotChatClient Microsoft.Extensions.AI.IChatClient implementation that calls the GitHub Copilot chat completions API directly (raw model endpoint, no CLI agent harness). Only tools explicitly provided via Microsoft.Extensions.AI.ChatOptions.Tools are sent; no built-in Copilot CLI tools are injected.
CopilotChatClientOptions Configuration options for CopilotChatClient and related Copilot API types.
CopilotToolSet Factory for creating Copilot-backed Microsoft.Extensions.AI.AIFunction instances. Use with Needlr's agent framework tool sets or pass directly to Microsoft.Extensions.AI.ChatOptions.Tools.
CopilotToolSetOptions Configuration for which Copilot-backed tools to enable.
CopilotWebSearchFunction Microsoft.Extensions.AI.AIFunction that calls the Copilot MCP server's web_search tool. Register this with Needlr's agent framework tool set to give agents access to Copilot's AI-powered web search.
Interfaces
ICopilotTokenProvider Provides short-lived Copilot API tokens obtained via GitHub OAuth token exchange.
IGitHubOAuthTokenProvider Provides the raw GitHub OAuth token used for GitHub API calls (token exchange) and MCP server authentication. This is the foundational credential — the Copilot API token is derived from it via ICopilotTokenProvider.
Enums
CopilotTokenSource Controls where the GitHub OAuth token is sourced from.