Message.toolCall constructor

Message.toolCall({
  1. required String text,
})

Implementation

factory Message.toolCall({
  required String text,
}) {
  // Tool calls are from the model.
  return Message(
    text: text,
    type: MessageType.toolCall,
    isUser: false,
  );
}