Class Chats

  • All Implemented Interfaces:

    
    public class Chats
    
                        

    A class for creating chat sessions.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Chat create(String model, GenerateContentConfig config) Creates a new chat session.
      Chat create(String model) Creates a new chat session.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • create

         Chat create(String model, GenerateContentConfig config)

        Creates a new chat session.

        Parameters:
        model - The model to use for the chat session.
        config - The configuration for the chat session.
        Returns:

        The chat session.

      • create

         Chat create(String model)

        Creates a new chat session.

        Parameters:
        model - The model to use for the chat session.
        Returns:

        The chat session.