Skip to content
Open
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
2b57549
add KSP processor for Firebase AI
Oct 30, 2025
8643046
add the code
Oct 30, 2025
811122b
Update firebase-ai-ksp-processor/src/main/kotlin/com/google/firebase/…
davidmotson Oct 30, 2025
0d5d3f7
Update firebase-ai-ksp-processor/src/main/kotlin/com/google/firebase/…
davidmotson Oct 30, 2025
e7a1ab8
Update firebase-ai-ksp-processor/README.md
davidmotson Oct 30, 2025
54e9466
Update firebase-ai-ksp-processor/src/main/kotlin/com/google/firebase/…
davidmotson Oct 30, 2025
368c2ec
add generated annotation to generated class
Nov 5, 2025
bf2aa4d
improve file formatting and indentation
Nov 5, 2025
94a2e45
move annotations to firebase-ai, and rename the artifact
Nov 5, 2025
d7ff3d4
fix imports in schema processor and update firebase-ai/api.txt
Nov 5, 2025
da74532
format
Nov 5, 2025
534022a
Merge branch 'main' into davidmotson.firebase-ai-ksp-processor
davidmotson Nov 5, 2025
d32ec1f
format
Nov 5, 2025
8624f43
update readme for new artifact name
Nov 6, 2025
334f3a3
Add support for enum schema
Nov 11, 2025
8ffa303
added JsonSchema type and altered schema generator to output it
Nov 26, 2025
74eece1
introduced new auto function declaration type and auto function calling
Dec 4, 2025
23969d5
Merge branch 'main' into davidmotson.firebase-ai-ksp-processor
davidmotson Dec 4, 2025
5de85e9
update api.txt and schema generation type safety
Dec 9, 2025
b9a59d3
format
Dec 9, 2025
fb93399
format, add documentation, and generate api.txt file
Dec 12, 2025
a6493b1
add AutoFunctionDeclaration documentation
Dec 12, 2025
67d3c26
fix tests
Dec 13, 2025
45a26e8
Merge branch 'main' into davidmotson.firebase-ai-ksp-processor
davidmotson Dec 13, 2025
fe5255a
bump version and add changelog
Dec 13, 2025
db689c4
fix major version bumps and formatting
Dec 13, 2025
fe0b47b
fix ksp-processor readme
Dec 13, 2025
eaf7671
update api.txt
Dec 13, 2025
2e2a6b1
add description to generable, and restrict guide to fields only
Dec 16, 2025
08a6918
minor ksp processor formatting
Dec 16, 2025
ad10143
add response json schema param to generationConfig
Dec 16, 2025
6892a1e
update api.txt
Dec 16, 2025
e94e207
add GenerateObjectResponse and generateObject api
Dec 17, 2025
e2564e1
Fixes for comments
Jan 6, 2026
b918b98
update lang level to 9 for the @Generated annotation
Jan 6, 2026
e8fcda9
Merge branch 'main' into davidmotson.firebase-ai-ksp-processor
Jan 6, 2026
59812c5
fix tests
Jan 8, 2026
d1a959e
format and java version fix
Jan 9, 2026
17e1b22
Add Function generation capability to ksp processor (#7591)
davidmotson Jan 12, 2026
d23e4ed
Split schema/function generation into several files, and fix bug in a…
Jan 12, 2026
426f0f9
add tests, fix text and thought history, and swap the default output …
Jan 14, 2026
5708df3
fix tests for JsonObject -> FunctionResponsePart change
Jan 15, 2026
ef96551
add normalization and method to improve user experience
Jan 15, 2026
35da073
Add to
Jan 15, 2026
0d39cd2
swap the ksp processor to use firebase-java library
Jan 15, 2026
5f76005
add generateObject test
Jan 16, 2026
130144a
add support for multi-modal function responses
Jan 16, 2026
5626e80
add KSP tests for symbol processor
Jan 22, 2026
6f0cf18
pin compilation to 2.0.21 using a newer compiler
Jan 23, 2026
275d686
Merge branch 'main' into davidmotson.firebase-ai-ksp-processor
Jan 26, 2026
dae27da
format
Jan 26, 2026
ec61d37
remove ksp processor compile test, fix firebase-ai-tests and add prop…
Jan 26, 2026
b4201f4
Merge branch 'main' into davidmotson.firebase-ai-ksp-processor
davidmotson Jan 26, 2026
e93b821
update api.txt file
Jan 26, 2026
02e7ea1
format ksp processor
Jan 26, 2026
7a4ef9e
Add ksp processor test app
Jan 26, 2026
e3a6b60
fix copyright failure
Jan 26, 2026
b9816a0
format test app
Jan 26, 2026
25e343e
fix testapp build and test
Jan 27, 2026
a755974
hide Tool annotation
Jan 27, 2026
bd5ad75
format tests
Jan 27, 2026
d85bf93
re-add missing constructors for imagepart and inlinedatapart
Jan 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions firebase-ai-ksp-processor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
To build run `./gradlew :publishToMavenLocal`

To integrate: add the following to your app's gradle file:

```kotlin
plugins {
id("com.google.devtools.ksp")
}
dependencies {
implementation("com.google.firebase:firebase-ai:<latest_version>")
ksp("com.google.firebase:firebase-ai-processor:1.0.0")
}
```

46 changes: 46 additions & 0 deletions firebase-ai-ksp-processor/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* Copyright 2025 Google LLC
*
* 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
*
* http://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.
*/

plugins {
kotlin("jvm")
id("java-library")
id("maven-publish")
}

dependencies {
testImplementation(kotlin("test"))
implementation(libs.symbol.processing.api)
implementation(libs.kotlinpoet.ksp)
}

tasks.test { useJUnitPlatform() }

kotlin { jvmToolchain(21) }

publishing {
publications {
create<MavenPublication>("mavenKotlin") {
from(components["kotlin"])
groupId = "com.google.firebase"
artifactId = "firebase-ai-processor"
version = "1.0.0"
}
}
repositories {
maven { url = uri("m2/") }
mavenLocal()
}
}
1 change: 1 addition & 0 deletions firebase-ai-ksp-processor/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kotlin.code.style=official
Loading