API Reference
CopilotNativeOptions
Configures direct Copilot HTTP access without a CLI or native runtime.
Inheritance
- Object
- CopilotNativeOptions
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
- Method CopilotConfig.ApplyTo
- Constructor CopilotNativeAuthentication.CopilotNativeAuthentication
Constructors
public CopilotNativeOptions() #Methods
public Void Validate() #VoidChecks endpoint and timeout configuration before any request is sent.
Inherited Methods
Properties
public String BaseUrl { get; set; } #Copilot inference API root. Custom deployments must use HTTPS.
public String GitHubToken { get; set; } #GitHub credential authorized for Copilot requests. Never written to disk automatically.
public Func<CancellationToken, Task<String>> TokenProvider { get; set; } #Optional credential callback, invoked for each request so hosts can renew credentials.
public IAuthBundleStore AuthStore { get; set; } #Optional shared authentication store containing the copilot provider bundle.
public String AccountId { get; set; } #Account to select from the authentication store.
public String GitHubClientId { get; set; } #Registered GitHub app client ID for interactive sign-in and OAuth renewal. Not needed for supplied credentials.
public String GitHubClientSecret { get; set; } #Optional client secret required by some registered app types when refreshing tokens. Never persisted by the SDK.
public String GitHubAuthBaseUrl { get; set; } #GitHub login root used only for explicitly requested device sign-in or token renewal.
public String GitHubApiBaseUrl { get; set; } #GitHub account API root used to verify the signed-in identity.
public Boolean UseEnvironmentCredentials { get; set; } #Allows COPILOT_GITHUB_TOKEN, GH_TOKEN, or GITHUB_TOKEN when no explicit credential source is configured.
public Boolean Streaming { get; set; } #Whether inference should stream text deltas.
public TimeSpan RequestTimeout { get; set; } #Maximum duration of each HTTP operation, including body reads.
public HttpMessageHandler HttpMessageHandler { get; set; } #Optional HTTP handler for host networking and deterministic tests. Ownership transfers to the client.