ChatResponse constructor

ChatResponse({
  1. List<ChatMessage>? messages,
  2. String? responseId,
  3. String? conversationId,
  4. String? modelId,
  5. DateTime? createdAt,
  6. ChatFinishReason? finishReason,
  7. UsageDetails? usage,
  8. ResponseContinuationToken? continuationToken,
  9. Object? rawRepresentation,
  10. AdditionalPropertiesDictionary? additionalProperties,
})

Creates a new ChatResponse.

Implementation

ChatResponse({
  List<ChatMessage>? messages,
  this.responseId,
  this.conversationId,
  this.modelId,
  this.createdAt,
  this.finishReason,
  this.usage,
  this.continuationToken,
  this.rawRepresentation,
  this.additionalProperties,
}) : messages = messages ?? [];