Message constructor

const Message({
  1. required Role role,
  2. Contents contents = Contents.empty,
  3. List<ToolCall> toolCalls = const [],
  4. Map<String, String> channels = const {},
})

Implementation

const Message({
  required this.role,
  this.contents = Contents.empty,
  this.toolCalls = const [],
  this.channels = const {},
});