Class Chats

java.lang.Object
com.google.genai.Chats

public class Chats extends Object
A class for creating chat sessions.
  • Method Details

    • create

      public 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

      public Chat create(String model)
      Creates a new chat session.
      Parameters:
      model - The model to use for the chat session.
      Returns:
      The chat session.