ChatResponseUpdate constructor

ChatResponseUpdate({
  1. ChatRole? role,
  2. String? authorName,
  3. List<AIContent>? contents,
  4. Object? rawRepresentation,
  5. AdditionalPropertiesDictionary? additionalProperties,
  6. String? responseId,
  7. String? messageId,
  8. String? conversationId,
  9. DateTime? createdAt,
  10. ChatFinishReason? finishReason,
  11. String? modelId,
  12. ResponseContinuationToken? continuationToken,
  13. UsageDetails? usage,
})

Creates a new ChatResponseUpdate.

Implementation

ChatResponseUpdate({
  this.role,
  this.authorName,
  List<AIContent>? contents,
  this.rawRepresentation,
  this.additionalProperties,
  this.responseId,
  this.messageId,
  this.conversationId,
  this.createdAt,
  this.finishReason,
  this.modelId,
  this.continuationToken,
  this.usage,
}) : contents = contents ?? [];