LiveGenerativeModel
@available(iOS 15.0, macOS 12.0, tvOS 15.0, *)
@available(watchOS, unavailable)
public final class LiveGenerativeModelA multimodal model (like Gemini) capable of real-time content generation based on various input types, supporting bidirectional streaming.
You can create a new session via connect().
- 
                  
                  Start a LiveSessionwith the server for bidirectional streaming.DeclarationSwift public func connect() async throws -> LiveSessionReturn ValueA new LiveSessionthat you can use to stream messages to and from the server.