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.

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, ILoggableTask

Constructors

ChatBatchTransformation()

Declaration
    public ChatBatchTransformation()

ChatBatchTransformation(IChatClient)

Declaration
    public ChatBatchTransformation(IChatClient chatClient)
Parameters
TypeNameDescription
IChatClientchatClient

ChatBatchTransformation(IChatClient, int)

Declaration
    public ChatBatchTransformation(IChatClient chatClient, int batchSize)
Parameters
TypeNameDescription
IChatClientchatClient
intbatchSize

Implements