Skip to content

Commit 04119ad

Browse files
committed
format
1 parent b26b61a commit 04119ad

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,12 @@ 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
301-
* "Grounding with Google Search" usage requirements for your chosen API provider: [Gemini Developer
302-
* API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search) or Vertex AI Gemini API
303-
* (see [Service Terms](https://cloud.google.com/terms/service-terms) section within the Service
304-
* Specific Terms).
300+
* If using Grounding with Google Search, you are required to comply with the "Grounding with Google
301+
* Search" usage requirements for your chosen API provider:
302+
* [Gemini Developer
303+
* API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search) or
304+
* Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms) section
305+
* within the Service Specific Terms).
305306
*
306307
* @property webSearchQueries The list of web search queries that the model performed to gather the
307308
* grounding information. These can be used to allow users to explore the search results themselves.
@@ -347,8 +348,8 @@ public class GroundingMetadata(
347348
/**
348349
* Represents a Google Search entry point.
349350
*
350-
* @property renderedContent An HTML/CSS snippet that can be embedded in your app.
351-
* To ensure proper rendering, it's recommended to display this content within a `WebView`.
351+
* @property renderedContent An HTML/CSS snippet that can be embedded in your app. To ensure proper
352+
* rendering, it's recommended to display this content within a `WebView`.
352353
* @property sdkBlob A blob of data for the client SDK to render the search entry point.
353354
*/
354355
public class SearchEntryPoint(
@@ -393,8 +394,8 @@ public class GroundingChunk(
393394
*
394395
* @property uri The URI of the retrieved web page.
395396
* @property title The title of the retrieved web page.
396-
* @property domain The domain of the original URI from which the content was retrieved.
397-
* This is only populated when using the Vertex AI Gemini API.
397+
* @property domain The domain of the original URI from which the content was retrieved. This is
398+
* only populated when using the Vertex AI Gemini API.
398399
*/
399400
public class WebGroundingChunk(
400401
public val uri: String?,

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ 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
26-
* Search" usage requirements for your chosen API provider: [Gemini Developer
27-
* API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search) or Vertex AI Gemini API
28-
* (see [Service Terms](https://cloud.google.com/terms/service-terms) section within the Service
29-
* Specific Terms).
25+
* When using this feature, you are required to comply with the "Grounding with Google Search" usage
26+
* requirements for your chosen API provider:
27+
* [Gemini Developer
28+
* API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search) or
29+
* Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms) section
30+
* within the Service Specific Terms).
3031
*/
3132
public class GoogleSearch {
3233
@Serializable internal class Internal()

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@ internal constructor(
6060
* Grounding with Google Search can be used to allow the model to connect to Google Search to
6161
* access and incorporate up-to-date information from the web into it's responses.
6262
*
63-
* When using this feature, you are required to comply with the "Grounding with
64-
* Google Search" usage requirements for your chosen API provider: [Gemini Developer
65-
* API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search) or Vertex AI Gemini
66-
* API (see [Service Terms](https://cloud.google.com/terms/service-terms) section within the
67-
* Service Specific Terms).
63+
* When using this feature, you are required to comply with the "Grounding with Google Search"
64+
* usage requirements for your chosen API provider:
65+
* [Gemini Developer
66+
* API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search)
67+
* or Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms)
68+
* section within the Service Specific Terms).
6869
*
6970
* @param googleSearch An empty [GoogleSearch] object. The presence of this object in the list
7071
* of tools enables the model to use Google Search.

0 commit comments

Comments
 (0)