FirebaseAI

actual class FirebaseAI(source)

Entry point for all Firebase AI functionality.

expect class FirebaseAI(source)

Entry point for all Firebase AI functionality.

actual class FirebaseAI(source)

Entry point for all Firebase AI functionality.

Types

Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion

Functions

Link copied to clipboard
actual fun generativeModel(modelName: String, generationConfig: GenerationConfig?, safetySettings: List<SafetySetting>?, tools: List<Tool>?, toolConfig: ToolConfig?, systemInstruction: Content?, requestOptions: RequestOptions): GenerativeModel
actual fun generativeModel(modelName: String, generationConfig: GenerationConfig?, safetySettings: List<SafetySetting>?, tools: List<Tool>?, toolConfig: ToolConfig?, systemInstruction: Content?, requestOptions: RequestOptions, onDeviceConfig: OnDeviceConfig): GenerativeModel

Instantiates a new GenerativeModel given the provided parameters.

expect fun generativeModel(modelName: String, generationConfig: GenerationConfig? = null, safetySettings: List<SafetySetting>? = null, tools: List<Tool>? = null, toolConfig: ToolConfig? = null, systemInstruction: Content? = null, requestOptions: RequestOptions = RequestOptions()): GenerativeModel
expect fun generativeModel(modelName: String, generationConfig: GenerationConfig? = null, safetySettings: List<SafetySetting>? = null, tools: List<Tool>? = null, toolConfig: ToolConfig? = null, systemInstruction: Content? = null, requestOptions: RequestOptions = RequestOptions(), onDeviceConfig: OnDeviceConfig): GenerativeModel

Instantiates a new GenerativeModel given the provided parameters.

actual fun generativeModel(modelName: String, generationConfig: GenerationConfig?, safetySettings: List<SafetySetting>?, tools: List<Tool>?, toolConfig: ToolConfig?, systemInstruction: Content?, requestOptions: RequestOptions): GenerativeModel
actual fun generativeModel(modelName: String, generationConfig: GenerationConfig?, safetySettings: List<SafetySetting>?, tools: List<Tool>?, toolConfig: ToolConfig?, systemInstruction: Content?, requestOptions: RequestOptions, onDeviceConfig: OnDeviceConfig): GenerativeModel

Instantiates a new GenerativeModel given the provided parameters.

Link copied to clipboard
actual fun liveModel(modelName: String, generationConfig: LiveGenerationConfig?, tools: List<Tool>?, systemInstruction: Content?, requestOptions: RequestOptions): LiveGenerativeModel

Instantiates a new LiveGenerationConfig given the provided parameters.

expect fun liveModel(modelName: String, generationConfig: LiveGenerationConfig? = null, tools: List<Tool>? = null, systemInstruction: Content? = null, requestOptions: RequestOptions = RequestOptions()): LiveGenerativeModel

Instantiates a new LiveGenerationConfig given the provided parameters.

actual fun liveModel(modelName: String, generationConfig: LiveGenerationConfig?, tools: List<Tool>?, systemInstruction: Content?, requestOptions: RequestOptions): LiveGenerativeModel

Instantiates a new LiveGenerationConfig given the provided parameters.

Link copied to clipboard

Instantiates a new TemplateGenerativeModel given the provided parameters.

expect fun templateGenerativeModel(requestOptions: RequestOptions = RequestOptions(), tools: List<TemplateTool>? = null, toolConfig: TemplateToolConfig? = null): TemplateGenerativeModel

Instantiates a new TemplateGenerativeModel given the provided parameters.

Instantiates a new TemplateGenerativeModel given the provided parameters.