Class AsyncChats

  • All Implemented Interfaces:

    
    public class AsyncChats
    
                        

    A class for creating async 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
      AsyncChat create(String model, GenerateContentConfig config) Creates a new async chat session.
      AsyncChat create(String model) Creates a new async 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

         AsyncChat create(String model, GenerateContentConfig config)

        Creates a new async chat session.

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

        The async chat session.

      • create

         AsyncChat create(String model)

        Creates a new async chat session.

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

        The async chat session.