IntelligenceX
Class

CopilotDirectClient

Namespace IntelligenceX.Copilot.Direct
Assembly IntelligenceX
Implements
IDisposable
Modifiers sealed

Experimental direct HTTP client for Copilot-compatible endpoints.

Inheritance

  • Object
  • CopilotDirectClient

Remarks

This transport is unsupported and may change or be removed.

Constructors

public CopilotDirectClient(CopilotDirectOptions options) #

Initializes a new direct Copilot client with the provided options.

Parameters

options IntelligenceX.Copilot.Direct.CopilotDirectOptions
Direct client options.

Methods

public async Task<String> ChatAsync(String prompt, String model, CancellationToken cancellationToken = null) #
Returns: Task<String>

Sends a chat request and returns the response text.

Parameters

prompt System.String
Prompt text to send.
model System.String
Model identifier.
cancellationToken System.Threading.CancellationToken = null
Cancellation token.
public virtual Void Dispose() #
Returns: Void

Disposes the client and its underlying HTTP resources.