AiMessage.assistant constructor

const AiMessage.assistant({
  1. String? text,
  2. List<AiToolCall> toolCalls = const [],
})

An assistant message, optionally with text and/or toolCalls.

Implementation

const AiMessage.assistant({
  String? text,
  List<AiToolCall> toolCalls = const [],
}) : this(role: AiRole.assistant, text: text, toolCalls: toolCalls);