Class AsyncGenAI

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

public class AsyncGenAI 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.

  • Method Details

    • agents

      public AsyncAgents agents()
    • environments

      public AsyncEnvironments environments()
    • interactions

      public AsyncInteractions interactions()
    • triggers

      public AsyncTriggers triggers()
    • webhooks

      public AsyncWebhooks webhooks()
    • sync

      public GenAI sync()
      Switches to the sync SDK.
      Returns:
      The sync SDK
    • close

      public void close() throws Exception
      Releases the configured HTTP client's owned resources. The sync and async SDKs share one client, which is closed at most once.
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception - if the configured client cannot be closed