Readonly[A unique symbol to identify BaseLlm classes.
Readonly[ReadonlymodelReadonlyuseProtected ReadonlyvertexaiStatic ReadonlysupportedA list of model name patterns that are supported by this LLM.
ProtectedtrackingConnects to the Gemini model and returns an llm connection.
LlmRequest, the request to send to the Gemini model.
BaseLlmConnection, the connection to the Gemini model.
Sends a request to the Gemini model.
The request to send to the Gemini model.
Whether to make a streaming call. Defaults to false.
OptionalabortSignal: AbortSignalEach LlmResponse produced by the model. A non-streaming
call yields exactly one; a streaming call yields the partial responses
as they arrive, then a final aggregated response whenever the stream
carried either content or usage/grounding/citation metadata. A
metadata-only stream therefore still ends with one, holding the
metadata and no content; only a stream with neither ends silently.
ProtectedgetProtectedgetAppends a user content, so that model can continue to output.
LlmRequest, the request to send to the LLM.
Integration for Gemini models.