Overview of the AI class
The
AI class (extending Script) provides an interface to interact with AI models, primarily Gemini. It supports text and multimodal queries, real-time audio/video AI sessions (Gemini Live), and manages session locking to prevent concurrent operations.