# IntelligenceXClientTreatmentChatClient

Adapter from IntelligenceXClient chat turns to treatment chat responses.

Class 

`IntelligenceX.Treatment`

**Namespace**

`IntelligenceX.Treatment`

**Assembly**

`IntelligenceX`

**Source**

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

**Implements**

`ITreatmentChatClient`

**Modifiers**

sealed

Adapter from IntelligenceXClient chat turns to treatment chat responses.

## Inheritance

- object
- IntelligenceXClientTreatmentChatClient

Filter members 

Show inherited

## Constructors

`public IntelligenceXClientTreatmentChatClient(IntelligenceXClient client)` [#](#constructor-ctor-intelligencex-openai-intelligencexclient)

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

Initializes a new adapter.

Parameters

**client IntelligenceX.OpenAI.IntelligenceXClient required**

## Methods

`public async 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>`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

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