GenerateResponseChunk<Output> constructor

GenerateResponseChunk<Output>(
  1. ModelResponseChunk _chunk, {
  2. List<ModelResponseChunk> previousChunks = const [],
  3. Output? output,
})

Implementation

GenerateResponseChunk(
  this._chunk, {
  this.previousChunks = const [],
  this.output,
}) : super(
       index: _chunk.index,
       role: _chunk.role,
       content: _chunk.content,
       custom: _chunk.custom,
     );