BasePublisherModel
Java-friendly base for implementing a Model. A Java subclass overrides generateContentJava, which returns a Reactive Streams Publisher; this base adapts it to the Flow-returning generateContent contract that Java cannot express. Both the unary and streaming cases flow through that one method, exactly as they do for a Kotlin Model; a subclass that supports live connections also overrides connectAsync.
Functions
Link copied to clipboard
Opens a live (bidirectional streaming) connection, configured by LlmRequest.liveConnectConfig.
Link copied to clipboard
Generates content for the given LlmRequest. This returns a Flow of LlmResponses.