AbstractCreates an instance of BaseLLM.
The parameters for creating a BaseLlm instance.
The name of the LLM, e.g. gemini-1.5-flash or gemini-1.5-flash-001.
ReadonlymodelStatic ReadonlysupportedList of supported models in regex for LlmRegistry.
AbstractconnectCreates a live connection to the LLM.
LlmRequest, the request to send to the LLM.
A live connection to the LLM.
AbstractgenerateGenerates one content from the given contents and tools.
LlmRequest, the request to send to the LLM.
Optionalstream: booleanwhether to do streaming call. For non-streaming call, it will only yield one Content.
A generator of LlmResponse.
Appends a user content, so that model can continue to output.
LlmRequest, the request to send to the LLM.
The BaseLLM class.