AIStreamChunk constructor

const AIStreamChunk({
  1. required String text,
  2. bool isComplete = false,
  3. AIUsage? usage,
  4. String? finishReason,
  5. String? provider,
  6. String? model,
  7. List<AIToolCall>? toolCalls,
})

Implementation

const AIStreamChunk({
  required this.text,
  this.isComplete = false,
  this.usage,
  this.finishReason,
  this.provider,
  this.model,
  this.toolCalls,
});