-
Notifications
You must be signed in to change notification settings - Fork 628
Move requestOptions to be the last positional argument #6292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Javadoc Changes:--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/FirebaseVertexAI.html 2024-09-24 14:54:51.213666845 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/FirebaseVertexAI.html 2024-09-24 14:52:42.205497349 +0000
@@ -70,7 +70,7 @@
<tr>
<td><code>final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/GenerativeModel.html">GenerativeModel</a></code></td>
<td>
- <div><code><a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/FirebaseVertexAI.html#generativeModel(kotlin.String,com.google.firebase.vertexai.type.GenerationConfig,kotlin.collections.List,com.google.firebase.vertexai.type.RequestOptions,kotlin.collections.List,com.google.firebase.vertexai.type.ToolConfig,com.google.firebase.vertexai.type.Content)">generativeModel</a>(<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a> modelName,<br> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/GenerationConfig.html">GenerationConfig</a> generationConfig,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a>> safetySettings,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/RequestOptions.html">RequestOptions</a> requestOptions,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/Tool.html">Tool</a>> tools,<br> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/ToolConfig.html">ToolConfig</a> toolConfig,<br> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/Content.html">Content</a> systemInstruction<br>)</code></div>
+ <div><code><a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/FirebaseVertexAI.html#generativeModel(kotlin.String,com.google.firebase.vertexai.type.GenerationConfig,kotlin.collections.List,kotlin.collections.List,com.google.firebase.vertexai.type.ToolConfig,com.google.firebase.vertexai.type.Content,com.google.firebase.vertexai.type.RequestOptions)">generativeModel</a>(<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a> modelName,<br> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/GenerationConfig.html">GenerationConfig</a> generationConfig,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a>> safetySettings,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/Tool.html">Tool</a>> tools,<br> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/ToolConfig.html">ToolConfig</a> toolConfig,<br> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/Content.html">Content</a> systemInstruction,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/RequestOptions.html">RequestOptions</a> requestOptions<br>)</code></div>
<p>Instantiates a new <code><a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/GenerativeModel.html">GenerativeModel</a></code> given the provided parameters.</p>
</td>
</tr>
@@ -100,9 +100,9 @@
</div>
<div class="list">
<h2>Public methods</h2>
- <div class="api-item"><a name="generativeModel(kotlin.String, com.google.firebase.vertexai.type.GenerationConfig, kotlin.collections.List, com.google.firebase.vertexai.type.RequestOptions, kotlin.collections.List, com.google.firebase.vertexai.type.ToolConfig, com.google.firebase.vertexai.type.Content)"></a><a name="generativeModel-kotlin.String-com.google.firebase.vertexai.type.GenerationConfig-kotlin.collections.List-com.google.firebase.vertexai.type.RequestOptions-kotlin.collections.List-com.google.firebase.vertexai.type.ToolConfig-com.google.firebase.vertexai.type.Content-"></a><a name="generativemodel"></a>
- <h3 class="api-name" id="generativeModel(kotlin.String,com.google.firebase.vertexai.type.GenerationConfig,kotlin.collections.List,com.google.firebase.vertexai.type.RequestOptions,kotlin.collections.List,com.google.firebase.vertexai.type.ToolConfig,com.google.firebase.vertexai.type.Content)">generativeModel</h3>
- <pre class="api-signature no-pretty-print">public final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/GenerativeModel.html">GenerativeModel</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/FirebaseVertexAI.html#generativeModel(kotlin.String,com.google.firebase.vertexai.type.GenerationConfig,kotlin.collections.List,com.google.firebase.vertexai.type.RequestOptions,kotlin.collections.List,com.google.firebase.vertexai.type.ToolConfig,com.google.firebase.vertexai.type.Content)">generativeModel</a>(<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a> modelName,<br> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/GenerationConfig.html">GenerationConfig</a> generationConfig,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a>> safetySettings,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/RequestOptions.html">RequestOptions</a> requestOptions,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/Tool.html">Tool</a>> tools,<br> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/ToolConfig.html">ToolConfig</a> toolConfig,<br> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/Content.html">Content</a> systemInstruction<br>)</pre>
+ <div class="api-item"><a name="generativeModel(kotlin.String, com.google.firebase.vertexai.type.GenerationConfig, kotlin.collections.List, kotlin.collections.List, com.google.firebase.vertexai.type.ToolConfig, com.google.firebase.vertexai.type.Content, com.google.firebase.vertexai.type.RequestOptions)"></a><a name="generativeModel-kotlin.String-com.google.firebase.vertexai.type.GenerationConfig-kotlin.collections.List-kotlin.collections.List-com.google.firebase.vertexai.type.ToolConfig-com.google.firebase.vertexai.type.Content-com.google.firebase.vertexai.type.RequestOptions-"></a><a name="generativemodel"></a>
+ <h3 class="api-name" id="generativeModel(kotlin.String,com.google.firebase.vertexai.type.GenerationConfig,kotlin.collections.List,kotlin.collections.List,com.google.firebase.vertexai.type.ToolConfig,com.google.firebase.vertexai.type.Content,com.google.firebase.vertexai.type.RequestOptions)">generativeModel</h3>
+ <pre class="api-signature no-pretty-print">public final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/GenerativeModel.html">GenerativeModel</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/FirebaseVertexAI.html#generativeModel(kotlin.String,com.google.firebase.vertexai.type.GenerationConfig,kotlin.collections.List,kotlin.collections.List,com.google.firebase.vertexai.type.ToolConfig,com.google.firebase.vertexai.type.Content,com.google.firebase.vertexai.type.RequestOptions)">generativeModel</a>(<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a> modelName,<br> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/GenerationConfig.html">GenerationConfig</a> generationConfig,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a>> safetySettings,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/Tool.html">Tool</a>> tools,<br> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/ToolConfig.html">ToolConfig</a> toolConfig,<br> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/Content.html">Content</a> systemInstruction,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/RequestOptions.html">RequestOptions</a> requestOptions<br>)</pre>
<p>Instantiates a new <code><a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/GenerativeModel.html">GenerativeModel</a></code> given the provided parameters.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
@@ -135,12 +135,6 @@
</td>
</tr>
<tr>
- <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/RequestOptions.html">RequestOptions</a> requestOptions</code></td>
- <td>
- <p>configuration options to utilize during backend communication</p>
- </td>
- </tr>
- <tr>
<td><code><a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/Tool.html">Tool</a>> tools</code></td>
<td>
<p>list of tools to make available to the model</p>
@@ -158,6 +152,12 @@
<p>contains a <code><a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/Content.html">Content</a></code> that directs the model to behave a certain way</p>
</td>
</tr>
+ <tr>
+ <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/https/github.com/docs/reference/android/com/google/firebase/vertexai/type/RequestOptions.html">RequestOptions</a> requestOptions</code></td>
+ <td>
+ <p>configuration options to utilize during backend communication</p>
+ </td>
+ </tr>
</tbody>
</table>
</div> --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/FirebaseVertexAI.html 2024-09-24 14:54:51.205666953 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/FirebaseVertexAI.html 2024-09-24 14:52:42.198497453 +0000
@@ -78,7 +78,7 @@
<tr>
<td><code><a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/GenerativeModel.html">GenerativeModel</a></code></td>
<td>
- <div><code><a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/FirebaseVertexAI.html#generativeModel(kotlin.String,com.google.firebase.vertexai.type.GenerationConfig,kotlin.collections.List,com.google.firebase.vertexai.type.RequestOptions,kotlin.collections.List,com.google.firebase.vertexai.type.ToolConfig,com.google.firebase.vertexai.type.Content)">generativeModel</a>(<br> modelName: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>,<br> generationConfig: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/GenerationConfig.html">GenerationConfig</a>?,<br> safetySettings: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a>>?,<br> requestOptions: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/RequestOptions.html">RequestOptions</a>,<br> tools: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/Tool.html">Tool</a>>?,<br> toolConfig: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/ToolConfig.html">ToolConfig</a>?,<br> systemInstruction: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/Content.html">Content</a>?<br>)</code></div>
+ <div><code><a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/FirebaseVertexAI.html#generativeModel(kotlin.String,com.google.firebase.vertexai.type.GenerationConfig,kotlin.collections.List,kotlin.collections.List,com.google.firebase.vertexai.type.ToolConfig,com.google.firebase.vertexai.type.Content,com.google.firebase.vertexai.type.RequestOptions)">generativeModel</a>(<br> modelName: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>,<br> generationConfig: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/GenerationConfig.html">GenerationConfig</a>?,<br> safetySettings: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a>>?,<br> tools: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/Tool.html">Tool</a>>?,<br> toolConfig: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/ToolConfig.html">ToolConfig</a>?,<br> systemInstruction: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/Content.html">Content</a>?,<br> requestOptions: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/RequestOptions.html">RequestOptions</a><br>)</code></div>
<p>Instantiates a new <code><a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/GenerativeModel.html">GenerativeModel</a></code> given the provided parameters.</p>
</td>
</tr>
@@ -128,9 +128,9 @@
</div>
<div class="list">
<h2>Public functions</h2>
- <div class="api-item"><a name="generativeModel(kotlin.String, com.google.firebase.vertexai.type.GenerationConfig, kotlin.collections.List, com.google.firebase.vertexai.type.RequestOptions, kotlin.collections.List, com.google.firebase.vertexai.type.ToolConfig, com.google.firebase.vertexai.type.Content)"></a><a name="generativeModel-kotlin.String-com.google.firebase.vertexai.type.GenerationConfig-kotlin.collections.List-com.google.firebase.vertexai.type.RequestOptions-kotlin.collections.List-com.google.firebase.vertexai.type.ToolConfig-com.google.firebase.vertexai.type.Content-"></a><a name="generativemodel"></a>
- <h3 class="api-name" id="generativeModel(kotlin.String,com.google.firebase.vertexai.type.GenerationConfig,kotlin.collections.List,com.google.firebase.vertexai.type.RequestOptions,kotlin.collections.List,com.google.firebase.vertexai.type.ToolConfig,com.google.firebase.vertexai.type.Content)">generativeModel</h3>
- <pre class="api-signature no-pretty-print">fun <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/FirebaseVertexAI.html#generativeModel(kotlin.String,com.google.firebase.vertexai.type.GenerationConfig,kotlin.collections.List,com.google.firebase.vertexai.type.RequestOptions,kotlin.collections.List,com.google.firebase.vertexai.type.ToolConfig,com.google.firebase.vertexai.type.Content)">generativeModel</a>(<br> modelName: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>,<br> generationConfig: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/GenerationConfig.html">GenerationConfig</a>? = null,<br> safetySettings: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a>>? = null,<br> requestOptions: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/RequestOptions.html">RequestOptions</a> = RequestOptions(),<br> tools: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/Tool.html">Tool</a>>? = null,<br> toolConfig: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/ToolConfig.html">ToolConfig</a>? = null,<br> systemInstruction: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/Content.html">Content</a>? = null<br>): <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/GenerativeModel.html">GenerativeModel</a></pre>
+ <div class="api-item"><a name="generativeModel(kotlin.String, com.google.firebase.vertexai.type.GenerationConfig, kotlin.collections.List, kotlin.collections.List, com.google.firebase.vertexai.type.ToolConfig, com.google.firebase.vertexai.type.Content, com.google.firebase.vertexai.type.RequestOptions)"></a><a name="generativeModel-kotlin.String-com.google.firebase.vertexai.type.GenerationConfig-kotlin.collections.List-kotlin.collections.List-com.google.firebase.vertexai.type.ToolConfig-com.google.firebase.vertexai.type.Content-com.google.firebase.vertexai.type.RequestOptions-"></a><a name="generativemodel"></a>
+ <h3 class="api-name" id="generativeModel(kotlin.String,com.google.firebase.vertexai.type.GenerationConfig,kotlin.collections.List,kotlin.collections.List,com.google.firebase.vertexai.type.ToolConfig,com.google.firebase.vertexai.type.Content,com.google.firebase.vertexai.type.RequestOptions)">generativeModel</h3>
+ <pre class="api-signature no-pretty-print">fun <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/FirebaseVertexAI.html#generativeModel(kotlin.String,com.google.firebase.vertexai.type.GenerationConfig,kotlin.collections.List,kotlin.collections.List,com.google.firebase.vertexai.type.ToolConfig,com.google.firebase.vertexai.type.Content,com.google.firebase.vertexai.type.RequestOptions)">generativeModel</a>(<br> modelName: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>,<br> generationConfig: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/GenerationConfig.html">GenerationConfig</a>? = null,<br> safetySettings: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a>>? = null,<br> tools: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/Tool.html">Tool</a>>? = null,<br> toolConfig: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/ToolConfig.html">ToolConfig</a>? = null,<br> systemInstruction: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/Content.html">Content</a>? = null,<br> requestOptions: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/RequestOptions.html">RequestOptions</a> = RequestOptions()<br>): <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/GenerativeModel.html">GenerativeModel</a></pre>
<p>Instantiates a new <code><a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/GenerativeModel.html">GenerativeModel</a></code> given the provided parameters.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
@@ -163,12 +163,6 @@
</td>
</tr>
<tr>
- <td><code>requestOptions: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/RequestOptions.html">RequestOptions</a> = RequestOptions()</code></td>
- <td>
- <p>configuration options to utilize during backend communication</p>
- </td>
- </tr>
- <tr>
<td><code>tools: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/Tool.html">Tool</a>>? = null</code></td>
<td>
<p>list of tools to make available to the model</p>
@@ -186,6 +180,12 @@
<p>contains a <code><a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/Content.html">Content</a></code> that directs the model to behave a certain way</p>
</td>
</tr>
+ <tr>
+ <td><code>requestOptions: <a href="/https/github.com/docs/reference/kotlin/com/google/firebase/vertexai/type/RequestOptions.html">RequestOptions</a> = RequestOptions()</code></td>
+ <td>
+ <p>configuration options to utilize during backend communication</p>
+ </td>
+ </tr>
</tbody>
</table>
</div> |
Generated by 🚫 Danger |
Coverage Report 1Affected ProductsNo changes between base commit (7bc8e51) and merge commit (91150e7).Test Logs |
Size Report 1Affected Products
Test Logs |
friendly ping |
daymxn
approved these changes
Sep 24, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
b/368716151