Class ChatBatchTransformation<TInput>
Sends each batch to an Microsoft.Extensions.AI.IChatClient as one request and emits the returned rows in the order they came back.
The batch is sent as {"Items":[...]} and the same envelope is expected in the response.
Set RequireSameItemCount to enforce one item per input row. Default batch size is 10.
Inheritance
DataFlowSource<TInput>
DataFlowTransformation<TInput, TInput>
ChatBatchTransformation<TInput, TInput>
ChatBatchTransformation<TInput>
Implements
IDataFlowTransformation<TInput, TInput>
IDataFlowSource<TInput>
IDataFlowDestination<TInput>
Inherited Members
Namespace: ETLBox.AI
Assembly: ETLBox.AI.dll
Syntax
public class ChatBatchTransformation<TInput> : ChatBatchTransformation<TInput, TInput>, IDataFlowTransformation<TInput, TInput>, IDataFlowSource<TInput>, IDataFlowSource, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, ILoggableTaskType Parameters
| Name | Description |
|---|---|
| TInput | Type of ingoing data. |
Constructors
ChatBatchTransformation()
Declaration
public ChatBatchTransformation()ChatBatchTransformation(IChatClient)
Declaration
public ChatBatchTransformation(IChatClient chatClient)Parameters
| Type | Name | Description |
|---|---|---|
| IChatClient | chatClient |
ChatBatchTransformation(IChatClient, int)
Declaration
public ChatBatchTransformation(IChatClient chatClient, int batchSize)Parameters
| Type | Name | Description |
|---|---|---|
| IChatClient | chatClient | |
| int | batchSize |