# ITreatmentChatClient

Chat client abstraction used by treatment providers.

Interface 

`IntelligenceX.Treatment`

**Namespace**

`IntelligenceX.Treatment`

**Assembly**

`IntelligenceX`

**Source**

[OpenAIChatTreatmentProvider.cs:238](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/OpenAIChatTreatmentProvider.cs#L238)

**Modifiers**

abstract

Chat client abstraction used by treatment providers.

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 1

- Constructor [OpenAIChatTreatmentProvider.OpenAIChatTreatmentProvider](/api/intelligencex-treatment-openaichattreatmentprovider/#constructor-ctor-intelligencex-treatment-itreatmentchatclient) parameter `client`

Filter members 

Show inherited

## Methods

`public abstract Task<TreatmentChatResponse> SendAsync(ChatInput input, ChatOptions options, CancellationToken cancellationToken = default)` [#](#method-sendasync-intelligencex-openai-chat-chatinput-intelligencex-openai-chat-chatoptions-threading-cancellationtoken)

Sends a chat treatment prompt to the backing provider.

Parameters

**input IntelligenceX.OpenAI.Chat.ChatInput required**

**options IntelligenceX.OpenAI.Chat.ChatOptions required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<TreatmentChatResponse>`

<!-- PowerForge markdown artifact sha256:F97734C3015E6CC0F8994779E3668FD0D4B5D53B022066DA916632A13D06972B -->
