Skip to content

Commit e6a9f6a

Browse files
davidmotsonDavid Motsonashvili
andauthored
Fixing documentation for M170 (#7385)
Co-authored-by: David Motsonashvili <[email protected]>
1 parent eb8e24a commit e6a9f6a

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

firebase-ai/CHANGELOG.md

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

4747
- [feature] Added support for configuring the "thinking" budget when using Gemini 2.5 series models.
4848
(#6990)
49-
- [feature] **Breaking Change**: Add support for Grounding with Google Search (#7042).
49+
- [feature] **Breaking Change**: Add support for grounding with Google Search (#7042).
5050
- **Action Required:** Update all references of `groundingAttributions`, `webSearchQueries`,
5151
`retrievalQueries` in `GroundingMetadata` to be non-optional.
5252
- [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
@@ -297,7 +297,7 @@ public class FinishReason private constructor(public val name: String, public va
297297
/**
298298
* Metadata returned to the client when grounding is enabled.
299299
*
300-
* If using Grounding with Google Search, you are required to comply with the "Grounding with Google
300+
* If using grounding with Google Search, you are required to comply with the "Grounding with Google
301301
* Search" usage requirements for your chosen API provider:
302302
* [Gemini Developer API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search) or
303303
* 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ internal constructor(
5656
return Tool(functionDeclarations, null, null)
5757
}
5858

59-
/** Creates a [Tool] instance that allows the model to use Code Execution. */
59+
/** Creates a [Tool] instance that allows the model to use code execution. */
6060
@JvmStatic
6161
public fun codeExecution(): Tool {
6262
return codeExecutionInstance
6363
}
6464

6565
/**
66-
* Creates a [Tool] instance that allows the model to use Grounding with Google Search.
66+
* Creates a [Tool] instance that allows the model to use grounding with Google Search.
6767
*
6868
* Grounding with Google Search can be used to allow the model to connect to Google Search to
6969
* access and incorporate up-to-date information from the web into it's responses.
7070
*
71-
* When using this feature, you are required to comply with the "Grounding with Google Search"
71+
* When using this feature, you are required to comply with the "grounding with Google Search"
7272
* usage requirements for your chosen API provider:
7373
* [Gemini Developer API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search)
7474
* or Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms)

0 commit comments

Comments
 (0)