ChatResponse constructor
ChatResponse({
- List<
ChatMessage> ? messages, - String? responseId,
- String? conversationId,
- String? modelId,
- DateTime? createdAt,
- ChatFinishReason? finishReason,
- UsageDetails? usage,
- ResponseContinuationToken? continuationToken,
- Object? rawRepresentation,
- 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 ?? [];