ChatResult constructor

const ChatResult({
  1. required String id,
  2. required AIChatMessage output,
  3. required FinishReason finishReason,
  4. required Map<String, dynamic> metadata,
  5. required LanguageModelUsage usage,
  6. bool streaming = false,
})

Result returned by the Chat Model.

Implementation

const ChatResult({
  required super.id,
  required super.output,
  required super.finishReason,
  required super.metadata,
  required super.usage,
  super.streaming = false,
});