Skip to content

Commit f1ab8e9

Browse files
committed
Merge branch 'main' into dl/url-context
2 parents 43330ce + e6a9f6a commit f1ab8e9

File tree

11 files changed

+57
-20
lines changed

11 files changed

+57
-20
lines changed

firebase-ai/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
- [feature] Added support for configuring the "thinking" budget when using Gemini 2.5 series models.
4949
(#6990)
50-
- [feature] **Breaking Change**: Add support for Grounding with Google Search (#7042).
50+
- [feature] **Breaking Change**: Add support for grounding with Google Search (#7042).
5151
- **Action Required:** Update all references of `groundingAttributions`, `webSearchQueries`,
5252
`retrievalQueries` in `GroundingMetadata` to be non-optional.
5353
- [changed] require at least one argument for `generateContent()`, `generateContentStream()` and

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Candidate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public class FinishReason private constructor(public val name: String, public va
307307
/**
308308
* Metadata returned to the client when grounding is enabled.
309309
*
310-
* If using Grounding with Google Search, you are required to comply with the "Grounding with Google
310+
* If using grounding with Google Search, you are required to comply with the "Grounding with Google
311311
* Search" usage requirements for your chosen API provider:
312312
* [Gemini Developer API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search) or
313313
* Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms) section

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/GoogleSearch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import kotlinx.serialization.Serializable
2222
* A tool that allows the generative model to connect to Google Search to access and incorporate
2323
* up-to-date information from the web into its responses.
2424
*
25-
* When using this feature, you are required to comply with the "Grounding with Google Search" usage
25+
* When using this feature, you are required to comply with the "grounding with Google Search" usage
2626
* requirements for your chosen API provider:
2727
* [Gemini Developer API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search) or
2828
* Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms) section

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/HarmCategory.kt

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,31 +71,34 @@ public class HarmCategory private constructor(public val ordinal: Int) {
7171
/** A new and not yet supported value. */
7272
@JvmField public val UNKNOWN: HarmCategory = HarmCategory(0)
7373

74-
/** Harassment content. */
74+
/** Represents the harm category for content that is classified as harassment. */
7575
@JvmField public val HARASSMENT: HarmCategory = HarmCategory(1)
7676

77-
/** Hate speech and content. */
77+
/** Represents the harm category for content that is classified as hate speech. */
7878
@JvmField public val HATE_SPEECH: HarmCategory = HarmCategory(2)
7979

80-
/** Sexually explicit content. */
80+
/** Represents the harm category for content that is classified as sexually explicit content. */
8181
@JvmField public val SEXUALLY_EXPLICIT: HarmCategory = HarmCategory(3)
8282

83-
/** Dangerous content. */
83+
/** Represents the harm category for content that is classified as dangerous content. */
8484
@JvmField public val DANGEROUS_CONTENT: HarmCategory = HarmCategory(4)
8585

86-
/** Content that may be used to harm civic integrity. */
86+
/**
87+
* Represents the harm category for content that is classified as content that may be used to
88+
* harm civic integrity.
89+
*/
8790
@JvmField public val CIVIC_INTEGRITY: HarmCategory = HarmCategory(5)
8891

89-
/** Content that is image hate. */
92+
/** Represents the harm category for image content that is classified as hateful. */
9093
@JvmField public val IMAGE_HATE: HarmCategory = HarmCategory(6)
9194

92-
/** Image dangerous content. */
95+
/** Represents the harm category for image content that is classified as dangerous. */
9396
@JvmField public val IMAGE_DANGEROUS_CONTENT: HarmCategory = HarmCategory(7)
9497

95-
/** Content is image harassment. */
98+
/** Represents the harm category for image content that is classified as harassment. */
9699
@JvmField public val IMAGE_HARASSMENT: HarmCategory = HarmCategory(8)
97100

98-
/** Image sexually explicit content. */
101+
/** Represents the harm category for image content that is classified as sexually explicit. */
99102
@JvmField public val IMAGE_SEXUALLY_EXPLICIT: HarmCategory = HarmCategory(9)
100103
}
101104
}

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Tool.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,14 @@ internal constructor(
6565
@OptIn(PublicPreviewAPI::class) return Tool(functionDeclarations, null, null, null)
6666
}
6767

68-
/** Creates a [Tool] instance that allows the model to use Code Execution. */
68+
/** Creates a [Tool] instance that allows the model to use code execution. */
6969
@JvmStatic
7070
public fun codeExecution(): Tool {
7171
return codeExecutionInstance
7272
}
7373

7474
/**
75+
<<<<<<< HEAD
7576
* Creates a [Tool] instance that allows you to provide additional context to the models in the
7677
* form of public web URLs. By including URLs in your request, the Gemini model will access the
7778
* content from those pages to inform and enhance its response.
@@ -91,7 +92,7 @@ internal constructor(
9192
* Grounding with Google Search can be used to allow the model to connect to Google Search to
9293
* access and incorporate up-to-date information from the web into it's responses.
9394
*
94-
* When using this feature, you are required to comply with the "Grounding with Google Search"
95+
* When using this feature, you are required to comply with the "grounding with Google Search"
9596
* usage requirements for your chosen API provider:
9697
* [Gemini Developer API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search)
9798
* or Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms)

firebase-firestore/CHANGELOG.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# Unreleased
22

3-
# 26.0.1
4-
5-
- [changed] Bumped internal dependencies.
6-
- [changed] Improve the performance of queries in collections that contain many deleted documents.
7-
[#7295](//github.com/firebase/firebase-android-sdk/issues/7295)
83
- [changed] Improve query performance in large result sets by replacing the deprecated AsyncTask
94
thread pool with a self-managed thread pool.
105
[#7376](//github.com/firebase/firebase-android-sdk/issues/7376)
@@ -15,6 +10,12 @@
1510
- [changed] Improve query performance by using an unsorted HashMap instead of a sorted TreeMap.
1611
[#7389](//github.com/firebase/firebase-android-sdk/pull/7389)
1712

13+
# 26.0.1
14+
15+
- [changed] Bumped internal dependencies.
16+
- [changed] Improve the performance of queries in collections that contain many deleted documents.
17+
[#7295](//github.com/firebase/firebase-android-sdk/issues/7295)
18+
1819
# 26.0.0
1920

2021
- [changed] **Breaking Change**: Updated minSdkVersion to API level 23 or higher.

firebase-functions/firebase-functions.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
1616

1717
plugins {
18+
id("LicenseResolverPlugin")
1819
id("firebase-library")
1920
id("kotlin-android")
2021
id("firebase-vendor")
@@ -61,6 +62,8 @@ kotlin {
6162
explicitApi()
6263
}
6364

65+
thirdPartyLicenses { add("dagger2", "${projectDir}/third_party/dagger2/LICENSE") }
66+
6467
dependencies {
6568
javadocClasspath("org.codehaus.mojo:animal-sniffer-annotations:1.21")
6669
javadocClasspath(libs.autovalue.annotations)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2012 The Dagger Authors
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

firebase-sessions/firebase-sessions.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2020

2121
plugins {
22+
id("LicenseResolverPlugin")
2223
id("firebase-library")
2324
id("firebase-vendor")
2425
id("kotlin-android")
@@ -66,6 +67,8 @@ kotlin {
6667
compilerOptions { jvmTarget = JvmTarget.JVM_1_8 }
6768
}
6869

70+
thirdPartyLicenses { add("dagger2", "${projectDir}/third_party/dagger2/LICENSE") }
71+
6972
dependencies {
7073
api(libs.firebase.common)
7174

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2012 The Dagger Authors
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

0 commit comments

Comments
 (0)