ChatMessage.ai constructor

ChatMessage.ai(
  1. String content, {
  2. List<AIChatMessageToolCall> toolCalls = const [],
})

Type of message that is spoken by the AI.

Implementation

factory ChatMessage.ai(
  final String content, {
  final List<AIChatMessageToolCall> toolCalls = const [],
}) =>
    AIChatMessage(
      content: content,
      toolCalls: toolCalls,
    );