AiChatMessage constructor

AiChatMessage({
  1. required String id,
  2. required AiMessageRole role,
  3. required String content,
  4. required DateTime timestamp,
  5. List<AgentAction>? actions,
  6. bool isVoice = false,
  7. List<ChatContent>? richContent,
  8. bool buttonsDisabled = false,
  9. int tappedButtonIndex = -1,
})

Implementation

AiChatMessage({
  required this.id,
  required this.role,
  required this.content,
  required this.timestamp,
  this.actions,
  this.isVoice = false,
  this.richContent,
  this.buttonsDisabled = false,
  this.tappedButtonIndex = -1,
});