Class ChatBatchTransformation
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
ChatBatchTransformation
Implements
Inherited Members
Namespace: ETLBox.AI
Assembly: ETLBox.AI.dll
Syntax
public class ChatBatchTransformation : ChatBatchTransformation<ExpandoObject, ExpandoObject>, IDataFlowTransformation<ExpandoObject, ExpandoObject>, IDataFlowSource<ExpandoObject>, IDataFlowSource, IDataFlowDestination<ExpandoObject>, IDataFlowDestination, IDataFlowComponent, ILoggableTaskConstructors
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 |