CopilotClientOptions
Options for connecting to the Copilot CLI.
Inheritance
- Object
- CopilotClientOptions
Constructors
public CopilotClientOptions() #Methods
public Boolean TryApplyConfig(String path = null, String baseDirectory = null) #BooleanAttempts to apply configuration from disk.
Parameters
- path System.String = null
- Optional config path.
- baseDirectory System.String = null
- Optional base directory for resolving the default config path.
Returns
true when a config file was loaded.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public String CliPath { get; set; } #Path to the Copilot CLI executable.
public List<String> CliArgs { get; } #Additional CLI arguments.
public String CliUrl { get; set; } #Override URL for the Copilot CLI download.
public Boolean UseStdio { get; set; } #Whether to use stdio transport.
public Int32 Port { get; set; } #Port for HTTP transport when not using stdio.
public String LogLevel { get; set; } #Log level for the CLI.
public String WorkingDirectory { get; set; } #Working directory for the CLI process.
public Dictionary<String, String> Environment { get; } #Environment variables for the CLI process.
public Boolean InheritEnvironment { get; set; } #Whether to inherit the current process environment.
public Boolean AutoStart { get; set; } #Whether to start the CLI automatically.
public Boolean AutoInstallCli { get; set; } #Whether to auto-install the CLI when missing.
public CopilotCliInstallMethod AutoInstallMethod { get; set; } #Preferred auto-install method.
public Boolean AutoInstallPrerelease { get; set; } #Whether to allow prerelease installs.
public TimeSpan ConnectTimeout { get; set; } #Connection timeout.
public Int32 ConnectRetryCount { get; set; } #Retry count for connection attempts.
public TimeSpan ConnectRetryInitialDelay { get; set; } #Initial delay for connect retries.
public TimeSpan ConnectRetryMaxDelay { get; set; } #Maximum delay for connect retries.
public TimeSpan ShutdownTimeout { get; set; } #Timeout for graceful shutdown.
public RpcRetryOptions RpcRetry { get; } #Retry options for RPC calls.