
Firebase Vertex AI integration enabling agent-framework LLM prompts with preconfigured Gemini model definitions, streaming responses, and simple executor adapters for easy backend connection.
Firebase Vertex AI integration for the Koog Agent Framework.
Add to your libs.versions.toml:
[versions]
koog-firebase = "0.1.1"
[libraries]
koog-firebase = { module = "dev.ynagai.koog.firebase:koog-firebase", version.ref = "koog-firebase" }Then in your build.gradle.kts:
dependencies {
implementation(libs.koog.firebase)
}dependencies {
implementation("dev.ynagai.koog.firebase:koog-firebase:0.1.1")
}import ai.koog.agents.core.agent.AIAgent
import dev.ynagai.koog.firebase.FirebaseModels
import dev.ynagai.koog.firebase.simpleFirebaseExecutor
val agent = AIAgent(
promptExecutor = simpleFirebaseExecutor(),
systemPrompt = "You are a helpful assistant.",
llmModel = FirebaseModels.Gemini2_5Flash
)
val result = agent.run("Hello!")import dev.ynagai.firebase.Firebase
import dev.ynagai.firebase.ai.GenerativeBackend
import dev.ynagai.koog.firebase.simpleFirebaseExecutor
// Use Vertex AI backend
val executor = simpleFirebaseExecutor(
app = Firebase.app,
backend = GenerativeBackend.vertexAI()
)| Model | Description |
|---|---|
FirebaseModels.Gemini2_5Flash |
Fast and efficient with speculation support |
FirebaseModels.Gemini2_5Pro |
High-capability with speculation support |
FirebaseModels.Gemini2_0Flash |
Fast with image vision support |
FirebaseModels.Gemini2_0FlashLite |
Lightweight and efficient |
Copyright 2025 Yuki Nagai
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Firebase Vertex AI integration for the Koog Agent Framework.
Add to your libs.versions.toml:
[versions]
koog-firebase = "0.1.1"
[libraries]
koog-firebase = { module = "dev.ynagai.koog.firebase:koog-firebase", version.ref = "koog-firebase" }Then in your build.gradle.kts:
dependencies {
implementation(libs.koog.firebase)
}dependencies {
implementation("dev.ynagai.koog.firebase:koog-firebase:0.1.1")
}import ai.koog.agents.core.agent.AIAgent
import dev.ynagai.koog.firebase.FirebaseModels
import dev.ynagai.koog.firebase.simpleFirebaseExecutor
val agent = AIAgent(
promptExecutor = simpleFirebaseExecutor(),
systemPrompt = "You are a helpful assistant.",
llmModel = FirebaseModels.Gemini2_5Flash
)
val result = agent.run("Hello!")import dev.ynagai.firebase.Firebase
import dev.ynagai.firebase.ai.GenerativeBackend
import dev.ynagai.koog.firebase.simpleFirebaseExecutor
// Use Vertex AI backend
val executor = simpleFirebaseExecutor(
app = Firebase.app,
backend = GenerativeBackend.vertexAI()
)| Model | Description |
|---|---|
FirebaseModels.Gemini2_5Flash |
Fast and efficient with speculation support |
FirebaseModels.Gemini2_5Pro |
High-capability with speculation support |
FirebaseModels.Gemini2_0Flash |
Fast with image vision support |
FirebaseModels.Gemini2_0FlashLite |
Lightweight and efficient |
Copyright 2025 Yuki Nagai
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.