Class GenAI

java.lang.Object
com.google.genai.gaos.GenAI
All Implemented Interfaces:
AutoCloseable

public class GenAI extends Object implements AutoCloseable
Gemini API: The Gemini Interactions API allows developers to build generative AI applications using Gemini models. Gemini is our most capable model, built from the ground up to be multimodal.

It can generalize and seamlessly understand, operate across, and combine different types of information including language, images, audio, video, and code. You can use the Gemini API for use cases like reasoning across text and images, content generation, dialogue agents, summarization and classification systems, and more.

  • Field Details

    • SERVERS

      public static final String[] SERVERS
      SERVERS contains the list of server urls available to the SDK.
  • Method Details

    • agents

      public Agents agents()
    • environments

      public Environments environments()
    • interactions

      public Interactions interactions()
    • triggers

      public Triggers triggers()
    • webhooks

      public Webhooks webhooks()
    • builder

      public static GenAI.Builder builder()
      Get a new instance of the SDK builder to configure a new instance of the SDK.
      Returns:
      The SDK builder instance.
    • async

      public AsyncGenAI async()
      Switches to the async SDK.
      Returns:
      The async SDK
    • close

      public void close() throws Exception
      Releases the configured HTTP client's owned resources.
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception - if the configured client cannot be closed