ChatMessage.custom constructor

ChatMessage.custom(
  1. String content, {
  2. required String role,
})

Chat message with custom role.

Implementation

factory ChatMessage.custom(
  final String content, {
  required final String role,
}) =>
    CustomChatMessage(
      content: content,
      role: role,
    );