Class ChatTransformation<TInput>
Sends each incoming row as JSON to an Microsoft.Extensions.AI.IChatClient and writes the returned object back into the data flow.
Typed output requests a JSON schema derived from TOutput; ExpandoObject output uses JSON mode.
Inheritance
DataFlowSource<TInput>
DataFlowTransformation<TInput, TInput>
ChatTransformation<TInput, TInput>
ChatTransformation<TInput>
Implements
IDataFlowTransformation<TInput, TInput>
IDataFlowSource<TInput>
IDataFlowDestination<TInput>
Inherited Members
Namespace: ETLBox.AI
Assembly: ETLBox.AI.dll
Syntax
public class ChatTransformation<TInput> : ChatTransformation<TInput, TInput>, IDataFlowTransformation<TInput, TInput>, IDataFlowSource<TInput>, IDataFlowSource, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, ILoggableTaskType Parameters
| Name | Description |
|---|---|
| TInput | Type of ingoing data. |
Constructors
ChatTransformation()
Declaration
public ChatTransformation()ChatTransformation(IChatClient)
Declaration
public ChatTransformation(IChatClient chatClient)Parameters
| Type | Name | Description |
|---|---|---|
| IChatClient | chatClient |