Skip to content
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

Improved refdocs for Schema #6420

Merged
merged 9 commits into from
Nov 1, 2024
Merged

Improved refdocs for Schema #6420

merged 9 commits into from
Nov 1, 2024

Conversation

rlazo
Copy link
Collaborator

@rlazo rlazo commented Oct 31, 2024

The improvements include:

  • Clarify that integer and float types are hints to the model, and the returned data could potentially overflow the respective native types.
  • Include missing parameters for some of the functions.
  • Add examples for enumerations and obj.

The improvements include:

- Clarify that `integer` and `float` types are hints to the model, and
the returned data could potentially overflow the respective native
types.
- Include missing parameters for some of the functions.
- Add examples for `enumerations` and `obj`
Copy link
Contributor

github-actions bot commented Oct 31, 2024

Javadoc Changes:
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/Schema.Companion.html	2024-11-01 16:12:48.517033544 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/Schema.Companion.html	2024-11-01 16:10:43.394591397 +0000
@@ -28,63 +28,63 @@
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#array(com.google.firebase.vertexai.type.Schema,kotlin.String,kotlin.Boolean)">array</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;items,&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</code></div>
-              <p>Returns a schema for an array.</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for an array.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#boolean(kotlin.String,kotlin.Boolean)">boolean</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</code></div>
-              <p>Returns a schema for a boolean</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> representing a boolean value.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#enumeration(kotlin.collections.List,kotlin.String,kotlin.Boolean)">enumeration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a>&lt;@<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>&gt;&nbsp;values,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,<br>&nbsp;&nbsp;&nbsp;&nbsp;boolean&nbsp;nullable<br>)</code></div>
-              <p>Returns a schema for an enumeration</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for an enumeration.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#numDouble(kotlin.String,kotlin.Boolean)">numDouble</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</code></div>
-              <p>Returns a schema for a floating point number</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a double-precision floating-point number.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#numFloat(kotlin.String,kotlin.Boolean)">numFloat</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</code></div>
-              <p>Returns a schema for a floating point number</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a single-precision floating-point number.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#numInt(kotlin.String,kotlin.Boolean)">numInt</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</code></div>
-              <p>Returns a schema for a 32-bit integer number</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a 32-bit signed integer number.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#numLong(kotlin.String,kotlin.Boolean)">numLong</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</code></div>
-              <p>Returns a schema for a 64-bit integer number</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a 64-bit signed integer number.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#obj(kotlin.collections.Map,kotlin.collections.List,kotlin.String,kotlin.Boolean)">obj</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/Map.html">Map</a>&lt;@<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>,&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&gt;&nbsp;properties,<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a>&lt;@<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>&gt;&nbsp;optionalProperties,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,<br>&nbsp;&nbsp;&nbsp;&nbsp;boolean&nbsp;nullable<br>)</code></div>
-              <p>Returns a schema for a complex object.</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a complex data type.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#str(kotlin.String,kotlin.Boolean,com.google.firebase.vertexai.type.StringFormat)">str</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable,&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/StringFormat.html">StringFormat</a>&nbsp;format)</code></div>
-              <p>Returns a schema for a string</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a string.</p>
             </td>
           </tr>
         </tbody>
@@ -95,7 +95,7 @@
       <div class="api-item"><a name="array(com.google.firebase.vertexai.type.Schema, kotlin.String, kotlin.Boolean)"></a><a name="array-com.google.firebase.vertexai.type.Schema-kotlin.String-kotlin.Boolean-"></a><a name="array"></a>
         <h3 class="api-name" id="array(com.google.firebase.vertexai.type.Schema,kotlin.String,kotlin.Boolean)">array</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#array(com.google.firebase.vertexai.type.Schema,kotlin.String,kotlin.Boolean)">array</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;items,&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</pre>
-        <p>Returns a schema for an array.</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for an array.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -111,19 +111,19 @@
               <tr>
                 <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;items</code></td>
                 <td>
-                  <p>: The schema of the elements of this array</p>
+                  <p>The <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> of the elements stored in the array.</p>
                 </td>
               </tr>
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the array represents.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -133,12 +133,41 @@
       <div class="api-item"><a name="boolean(kotlin.String, kotlin.Boolean)"></a><a name="boolean-kotlin.String-kotlin.Boolean-"></a><a name="boolean"></a>
         <h3 class="api-name" id="boolean(kotlin.String,kotlin.Boolean)">boolean</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#boolean(kotlin.String,kotlin.Boolean)">boolean</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</pre>
-        <p>Returns a schema for a boolean</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> representing a boolean value.</p>
+        <div class="devsite-table-wrapper">
+          <table class="responsive">
+            <colgroup>
+              <col width="40%">
+              <col>
+            </colgroup>
+            <thead>
+              <tr>
+                <th colspan="100%">Parameters</th>
+              </tr>
+            </thead>
+            <tbody class="list">
+              <tr>
+                <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
+                <td>
+                  <p>An optional description of what the boolean should contain or represent.</p>
+                </td>
+              </tr>
+              <tr>
+                <td><code>boolean&nbsp;nullable</code></td>
+                <td>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
+                </td>
+              </tr>
+            </tbody>
+          </table>
+        </div>
       </div>
       <div class="api-item"><a name="enumeration(kotlin.collections.List, kotlin.String, kotlin.Boolean)"></a><a name="enumeration-kotlin.collections.List-kotlin.String-kotlin.Boolean-"></a><a name="enumeration"></a>
         <h3 class="api-name" id="enumeration(kotlin.collections.List,kotlin.String,kotlin.Boolean)">enumeration</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#enumeration(kotlin.collections.List,kotlin.String,kotlin.Boolean)">enumeration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a>&lt;@<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>&gt;&nbsp;values,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,<br>&nbsp;&nbsp;&nbsp;&nbsp;boolean&nbsp;nullable<br>)</pre>
-        <p>Returns a schema for an enumeration</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for an enumeration.</p>
+        <p>For example, the cardinal directions can be represented as:</p>
+        <pre class="prettyprint">Schema.enumeration(listOf(&quot;north&quot;, &quot;east&quot;, &quot;south&quot;, &quot;west&quot;), &quot;Cardinal directions&quot;)</pre>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -154,19 +183,19 @@
               <tr>
                 <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a>&lt;@<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>&gt;&nbsp;values</code></td>
                 <td>
-                  <p>: The list of valid values for this enumeration</p>
+                  <p>The list of valid values for this enumeration</p>
                 </td>
               </tr>
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>The description of what the parameter should contain or represent</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -176,7 +205,7 @@
       <div class="api-item"><a name="numDouble(kotlin.String, kotlin.Boolean)"></a><a name="numDouble-kotlin.String-kotlin.Boolean-"></a><a name="numdouble"></a>
         <h3 class="api-name" id="numDouble(kotlin.String,kotlin.Boolean)">numDouble</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#numDouble(kotlin.String,kotlin.Boolean)">numDouble</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</pre>
-        <p>Returns a schema for a floating point number</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a double-precision floating-point number.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -192,13 +221,13 @@
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the number should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -208,7 +237,8 @@
       <div class="api-item"><a name="numFloat(kotlin.String, kotlin.Boolean)"></a><a name="numFloat-kotlin.String-kotlin.Boolean-"></a><a name="numfloat"></a>
         <h3 class="api-name" id="numFloat(kotlin.String,kotlin.Boolean)">numFloat</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#numFloat(kotlin.String,kotlin.Boolean)">numFloat</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</pre>
-        <p>Returns a schema for a floating point number</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a single-precision floating-point number.</p>
+        <p><b>Important:</b> This <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> provides a hint to the model that it should generate a single-precision floating-point number, but only guarantees that the value will be a number. Therefore it's <em>possible</em> that decoding it as a <code>Float</code> variable (or <code>float</code> in Java) could overflow.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -224,13 +254,13 @@
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the number should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -240,7 +270,8 @@
       <div class="api-item"><a name="numInt(kotlin.String, kotlin.Boolean)"></a><a name="numInt-kotlin.String-kotlin.Boolean-"></a><a name="numint"></a>
         <h3 class="api-name" id="numInt(kotlin.String,kotlin.Boolean)">numInt</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#numInt(kotlin.String,kotlin.Boolean)">numInt</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</pre>
-        <p>Returns a schema for a 32-bit integer number</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a 32-bit signed integer number.</p>
+        <p><b>Important:</b> This <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> provides a hint to the model that it should generate a 32-bit integer, but only guarantees that the value will be an integer. Therefore it's <em>possible</em> that decoding it as an <code>Int</code> variable (or <code>int</code> in Java) could overflow.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -256,13 +287,13 @@
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the integer should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -272,7 +303,7 @@
       <div class="api-item"><a name="numLong(kotlin.String, kotlin.Boolean)"></a><a name="numLong-kotlin.String-kotlin.Boolean-"></a><a name="numlong"></a>
         <h3 class="api-name" id="numLong(kotlin.String,kotlin.Boolean)">numLong</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#numLong(kotlin.String,kotlin.Boolean)">numLong</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</pre>
-        <p>Returns a schema for a 64-bit integer number</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a 64-bit signed integer number.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -288,13 +319,13 @@
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the number should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -304,7 +335,10 @@
       <div class="api-item"><a name="obj(kotlin.collections.Map, kotlin.collections.List, kotlin.String, kotlin.Boolean)"></a><a name="obj-kotlin.collections.Map-kotlin.collections.List-kotlin.String-kotlin.Boolean-"></a><a name="obj"></a>
         <h3 class="api-name" id="obj(kotlin.collections.Map,kotlin.collections.List,kotlin.String,kotlin.Boolean)">obj</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#obj(kotlin.collections.Map,kotlin.collections.List,kotlin.String,kotlin.Boolean)">obj</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/Map.html">Map</a>&lt;@<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>,&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&gt;&nbsp;properties,<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a>&lt;@<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>&gt;&nbsp;optionalProperties,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,<br>&nbsp;&nbsp;&nbsp;&nbsp;boolean&nbsp;nullable<br>)</pre>
-        <p>Returns a schema for a complex object. In a function, it will be returned as a JSONObject.</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a complex data type.</p>
+        <p>This schema instructs the model to produce data of type object, which has keys of type <code>String</code> and values of type <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code>.</p>
+        <p><b>Example:</b> A <code>city</code> could be represented with the following object <code>Schema</code>.</p>
+        <pre class="prettyprint">Schema.obj(mapOf(<br>  &quot;name&quot;  to Schema.string(),<br>  &quot;population&quot; to Schema.integer()<br>))</pre>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -320,19 +354,25 @@
               <tr>
                 <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/Map.html">Map</a>&lt;@<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>,&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&gt;&nbsp;properties</code></td>
                 <td>
-                  <p>: The map of the object's fields to their schema</p>
+                  <p>The map of the object's property names to their <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code>s.</p>
+                </td>
+              </tr>
+              <tr>
+                <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a>&lt;@<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>&gt;&nbsp;optionalProperties</code></td>
+                <td>
+                  <p>The list of optional properties. They must correspond to the keys provided in the <code>properties</code> map. By default it's empty, signaling the model that all properties are to be included.</p>
                 </td>
               </tr>
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the object represents.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -342,7 +382,7 @@
       <div class="api-item"><a name="str(kotlin.String, kotlin.Boolean, com.google.firebase.vertexai.type.StringFormat)"></a><a name="str-kotlin.String-kotlin.Boolean-com.google.firebase.vertexai.type.StringFormat-"></a><a name="str"></a>
         <h3 class="api-name" id="str(kotlin.String,kotlin.Boolean,com.google.firebase.vertexai.type.StringFormat)">str</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#str(kotlin.String,kotlin.Boolean,com.google.firebase.vertexai.type.StringFormat)">str</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable,&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/StringFormat.html">StringFormat</a>&nbsp;format)</pre>
-        <p>Returns a schema for a string</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a string.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -358,19 +398,19 @@
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the string should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
               <tr>
                 <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/StringFormat.html">StringFormat</a>&nbsp;format</code></td>
                 <td>
-                  <p>: The pattern that values need to adhere to</p>
+                  <p>An optional pattern that values need to adhere to.</p>
                 </td>
               </tr>
             </tbody>
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/Schema.html	2024-11-01 16:12:48.513033458 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/Schema.html	2024-11-01 16:10:43.390591330 +0000
@@ -11,7 +11,9 @@
       <pre>public final class <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></pre>
     </p>
     <hr>
-    <p>Represents a schema</p>
+    <p>Definition of a data type.</p>
+    <p>These types can be objects, but also primitives and arrays. Represents a select subset of an <a href="https://spec.openapis.org/oas/v3.0.3#schema">OpenAPI 3.0 schema object</a>.</p>
+    <p><b>Note:</b> While optional, including a <code>description</code> field in your <code>Schema</code> is strongly encouraged. The more information the model has about what it's expected to generate, the better the results.</p>
     <h2>Summary</h2>
     <div class="devsite-table-wrapper">
       <table class="responsive">
@@ -112,63 +114,63 @@
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#array(com.google.firebase.vertexai.type.Schema,kotlin.String,kotlin.Boolean)">array</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;items,&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</code></div>
-              <p>Returns a schema for an array.</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for an array.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#boolean(kotlin.String,kotlin.Boolean)">boolean</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</code></div>
-              <p>Returns a schema for a boolean</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> representing a boolean value.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#double(kotlin.String,kotlin.Boolean)">double</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</code></div>
-              <p>Returns a schema for a floating point number</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a double-precision floating-point number.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#enumeration(kotlin.collections.List,kotlin.String,kotlin.Boolean)">enumeration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a>&lt;@<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>&gt;&nbsp;values,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,<br>&nbsp;&nbsp;&nbsp;&nbsp;boolean&nbsp;nullable<br>)</code></div>
-              <p>Returns a schema for an enumeration</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for an enumeration.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#float(kotlin.String,kotlin.Boolean)">float</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</code></div>
-              <p>Returns a schema for a floating point number</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a single-precision floating-point number.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#integer(kotlin.String,kotlin.Boolean)">integer</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</code></div>
-              <p>Returns a schema for a 32-bit integer number</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a 32-bit signed integer number.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#long(kotlin.String,kotlin.Boolean)">long</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</code></div>
-              <p>Returns a schema for a 64-bit integer number</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a 64-bit signed integer number.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#obj(kotlin.collections.Map,kotlin.collections.List,kotlin.String,kotlin.Boolean)">obj</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/Map.html">Map</a>&lt;@<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>,&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&gt;&nbsp;properties,<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a>&lt;@<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>&gt;&nbsp;optionalProperties,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,<br>&nbsp;&nbsp;&nbsp;&nbsp;boolean&nbsp;nullable<br>)</code></div>
-              <p>Returns a schema for a complex object.</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a complex data type.</p>
             </td>
           </tr>
           <tr>
             <td><code>static&nbsp;final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#string(kotlin.String,kotlin.Boolean,com.google.firebase.vertexai.type.StringFormat)">string</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable,&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/StringFormat.html">StringFormat</a>&nbsp;format)</code></div>
-              <p>Returns a schema for a string</p>
+              <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a string.</p>
             </td>
           </tr>
         </tbody>
@@ -214,7 +216,7 @@
       <div class="api-item"><a name="array(com.google.firebase.vertexai.type.Schema, kotlin.String, kotlin.Boolean)"></a><a name="array-com.google.firebase.vertexai.type.Schema-kotlin.String-kotlin.Boolean-"></a><a name="array"></a>
         <h3 class="api-name" id="array(com.google.firebase.vertexai.type.Schema,kotlin.String,kotlin.Boolean)">array</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#array(com.google.firebase.vertexai.type.Schema,kotlin.String,kotlin.Boolean)">array</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;items,&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</pre>
-        <p>Returns a schema for an array.</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for an array.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -230,19 +232,19 @@
               <tr>
                 <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;items</code></td>
                 <td>
-                  <p>: The schema of the elements of this array</p>
+                  <p>The <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> of the elements stored in the array.</p>
                 </td>
               </tr>
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the array represents.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -252,12 +254,39 @@
       <div class="api-item"><a name="boolean(kotlin.String, kotlin.Boolean)"></a><a name="boolean-kotlin.String-kotlin.Boolean-"></a><a name="boolean"></a>
         <h3 class="api-name" id="boolean(kotlin.String,kotlin.Boolean)">boolean</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#boolean(kotlin.String,kotlin.Boolean)">boolean</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</pre>
-        <p>Returns a schema for a boolean</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> representing a boolean value.</p>
+        <div class="devsite-table-wrapper">
+          <table class="responsive">
+            <colgroup>
+              <col width="40%">
+              <col>
+            </colgroup>
+            <thead>
+              <tr>
+                <th colspan="100%">Parameters</th>
+              </tr>
+            </thead>
+            <tbody class="list">
+              <tr>
+                <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
+                <td>
+                  <p>An optional description of what the boolean should contain or represent.</p>
+                </td>
+              </tr>
+              <tr>
+                <td><code>boolean&nbsp;nullable</code></td>
+                <td>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
+                </td>
+              </tr>
+            </tbody>
+          </table>
+        </div>
       </div>
       <div class="api-item"><a name="double(kotlin.String, kotlin.Boolean)"></a><a name="double-kotlin.String-kotlin.Boolean-"></a><a name="double"></a>
         <h3 class="api-name" id="double(kotlin.String,kotlin.Boolean)">double</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#double(kotlin.String,kotlin.Boolean)">double</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</pre>
-        <p>Returns a schema for a floating point number</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a double-precision floating-point number.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -273,13 +302,13 @@
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the number should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -289,7 +318,9 @@
       <div class="api-item"><a name="enumeration(kotlin.collections.List, kotlin.String, kotlin.Boolean)"></a><a name="enumeration-kotlin.collections.List-kotlin.String-kotlin.Boolean-"></a><a name="enumeration"></a>
         <h3 class="api-name" id="enumeration(kotlin.collections.List,kotlin.String,kotlin.Boolean)">enumeration</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#enumeration(kotlin.collections.List,kotlin.String,kotlin.Boolean)">enumeration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a>&lt;@<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>&gt;&nbsp;values,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,<br>&nbsp;&nbsp;&nbsp;&nbsp;boolean&nbsp;nullable<br>)</pre>
-        <p>Returns a schema for an enumeration</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for an enumeration.</p>
+        <p>For example, the cardinal directions can be represented as:</p>
+        <pre class="prettyprint">Schema.enumeration(listOf(&quot;north&quot;, &quot;east&quot;, &quot;south&quot;, &quot;west&quot;), &quot;Cardinal directions&quot;)</pre>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -305,19 +336,19 @@
               <tr>
                 <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a>&lt;@<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>&gt;&nbsp;values</code></td>
                 <td>
-                  <p>: The list of valid values for this enumeration</p>
+                  <p>The list of valid values for this enumeration</p>
                 </td>
               </tr>
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>The description of what the parameter should contain or represent</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -327,7 +358,8 @@
       <div class="api-item"><a name="float(kotlin.String, kotlin.Boolean)"></a><a name="float-kotlin.String-kotlin.Boolean-"></a><a name="float"></a>
         <h3 class="api-name" id="float(kotlin.String,kotlin.Boolean)">float</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#float(kotlin.String,kotlin.Boolean)">float</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</pre>
-        <p>Returns a schema for a floating point number</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a single-precision floating-point number.</p>
+        <p><b>Important:</b> This <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> provides a hint to the model that it should generate a single-precision floating-point number, but only guarantees that the value will be a number. Therefore it's <em>possible</em> that decoding it as a <code>Float</code> variable (or <code>float</code> in Java) could overflow.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -343,13 +375,13 @@
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the number should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -359,7 +391,8 @@
       <div class="api-item"><a name="integer(kotlin.String, kotlin.Boolean)"></a><a name="integer-kotlin.String-kotlin.Boolean-"></a><a name="integer"></a>
         <h3 class="api-name" id="integer(kotlin.String,kotlin.Boolean)">integer</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#integer(kotlin.String,kotlin.Boolean)">integer</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</pre>
-        <p>Returns a schema for a 32-bit integer number</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a 32-bit signed integer number.</p>
+        <p><b>Important:</b> This <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> provides a hint to the model that it should generate a 32-bit integer, but only guarantees that the value will be an integer. Therefore it's <em>possible</em> that decoding it as an <code>Int</code> variable (or <code>int</code> in Java) could overflow.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -375,13 +408,13 @@
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the integer should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -391,7 +424,7 @@
       <div class="api-item"><a name="long(kotlin.String, kotlin.Boolean)"></a><a name="long-kotlin.String-kotlin.Boolean-"></a><a name="long"></a>
         <h3 class="api-name" id="long(kotlin.String,kotlin.Boolean)">long</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#long(kotlin.String,kotlin.Boolean)">long</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable)</pre>
-        <p>Returns a schema for a 64-bit integer number</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a 64-bit signed integer number.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -407,13 +440,13 @@
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the number should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -423,7 +456,10 @@
       <div class="api-item"><a name="obj(kotlin.collections.Map, kotlin.collections.List, kotlin.String, kotlin.Boolean)"></a><a name="obj-kotlin.collections.Map-kotlin.collections.List-kotlin.String-kotlin.Boolean-"></a><a name="obj"></a>
         <h3 class="api-name" id="obj(kotlin.collections.Map,kotlin.collections.List,kotlin.String,kotlin.Boolean)">obj</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#obj(kotlin.collections.Map,kotlin.collections.List,kotlin.String,kotlin.Boolean)">obj</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/Map.html">Map</a>&lt;@<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>,&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&gt;&nbsp;properties,<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a>&lt;@<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>&gt;&nbsp;optionalProperties,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,<br>&nbsp;&nbsp;&nbsp;&nbsp;boolean&nbsp;nullable<br>)</pre>
-        <p>Returns a schema for a complex object. In a function, it will be returned as a JSONObject.</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a complex data type.</p>
+        <p>This schema instructs the model to produce data of type object, which has keys of type <code>String</code> and values of type <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code>.</p>
+        <p><b>Example:</b> A <code>city</code> could be represented with the following object <code>Schema</code>.</p>
+        <pre class="prettyprint">Schema.obj(mapOf(<br>  &quot;name&quot;  to Schema.string(),<br>  &quot;population&quot; to Schema.integer()<br>))</pre>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -439,19 +475,25 @@
               <tr>
                 <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/Map.html">Map</a>&lt;@<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>,&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&gt;&nbsp;properties</code></td>
                 <td>
-                  <p>: The map of the object's fields to their schema</p>
+                  <p>The map of the object's property names to their <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code>s.</p>
+                </td>
+              </tr>
+              <tr>
+                <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a>&lt;@<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>&gt;&nbsp;optionalProperties</code></td>
+                <td>
+                  <p>The list of optional properties. They must correspond to the keys provided in the <code>properties</code> map. By default it's empty, signaling the model that all properties are to be included.</p>
                 </td>
               </tr>
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the object represents.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -461,7 +503,7 @@
       <div class="api-item"><a name="string(kotlin.String, kotlin.Boolean, com.google.firebase.vertexai.type.StringFormat)"></a><a name="string-kotlin.String-kotlin.Boolean-com.google.firebase.vertexai.type.StringFormat-"></a><a name="string"></a>
         <h3 class="api-name" id="string(kotlin.String,kotlin.Boolean,com.google.firebase.vertexai.type.StringFormat)">string</h3>
         <pre class="api-signature no-pretty-print">public&nbsp;static&nbsp;final&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.Companion.html#string(kotlin.String,kotlin.Boolean,com.google.firebase.vertexai.type.StringFormat)">string</a>(<a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description,&nbsp;boolean&nbsp;nullable,&nbsp;<a href="/docs/reference/android/com/google/firebase/vertexai/type/StringFormat.html">StringFormat</a>&nbsp;format)</pre>
-        <p>Returns a schema for a string</p>
+        <p>Returns a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a string.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -477,19 +519,19 @@
               <tr>
                 <td><code><a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>&nbsp;description</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the string should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>boolean&nbsp;nullable</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
               <tr>
                 <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/StringFormat.html">StringFormat</a>&nbsp;format</code></td>
                 <td>
-                  <p>: The pattern that values need to adhere to</p>
+                  <p>An optional pattern that values need to adhere to.</p>
                 </td>
               </tr>
             </tbody>
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/package-summary.html	2024-11-01 16:12:48.517033544 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/package-summary.html	2024-11-01 16:10:43.390591330 +0000
@@ -208,7 +208,7 @@
           <tr>
             <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
-              <p>Represents a schema</p>
+              <p>Definition of a data type.</p>
             </td>
           </tr>
           <tr>
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/Schema.html	2024-11-01 16:12:48.505033283 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/Schema.html	2024-11-01 16:10:43.382591195 +0000
@@ -11,7 +11,9 @@
       <pre>class <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></pre>
     </p>
     <hr>
-    <p>Represents a schema</p>
+    <p>Definition of a data type.</p>
+    <p>These types can be objects, but also primitives and arrays. Represents a select subset of an <a href="https://spec.openapis.org/oas/v3.0.3#schema">OpenAPI 3.0 schema object</a>.</p>
+    <p><b>Note:</b> While optional, including a <code>description</code> field in your <code>Schema</code> is strongly encouraged. The more information the model has about what it's expected to generate, the better the results.</p>
     <h2>Summary</h2>
     <div class="devsite-table-wrapper">
       <table class="responsive">
@@ -29,63 +31,63 @@
             <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#array(com.google.firebase.vertexai.type.Schema,kotlin.String,kotlin.Boolean)">array</a>(items:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a>,&nbsp;description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>)</code></div>
-              <p>Returns a schema for an array.</p>
+              <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for an array.</p>
             </td>
           </tr>
           <tr>
             <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#boolean(kotlin.String,kotlin.Boolean)">boolean</a>(description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>)</code></div>
-              <p>Returns a schema for a boolean</p>
+              <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> representing a boolean value.</p>
             </td>
           </tr>
           <tr>
             <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#double(kotlin.String,kotlin.Boolean)">double</a>(description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>)</code></div>
-              <p>Returns a schema for a floating point number</p>
+              <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a double-precision floating-point number.</p>
             </td>
           </tr>
           <tr>
             <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#enumeration(kotlin.collections.List,kotlin.String,kotlin.Boolean)">enumeration</a>(values:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>&gt;,&nbsp;description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>)</code></div>
-              <p>Returns a schema for an enumeration</p>
+              <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for an enumeration.</p>
             </td>
           </tr>
           <tr>
             <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#float(kotlin.String,kotlin.Boolean)">float</a>(description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>)</code></div>
-              <p>Returns a schema for a floating point number</p>
+              <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a single-precision floating-point number.</p>
             </td>
           </tr>
           <tr>
             <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#integer(kotlin.String,kotlin.Boolean)">integer</a>(description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>)</code></div>
-              <p>Returns a schema for a 32-bit integer number</p>
+              <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a 32-bit signed integer number.</p>
             </td>
           </tr>
           <tr>
             <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#long(kotlin.String,kotlin.Boolean)">long</a>(description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>)</code></div>
-              <p>Returns a schema for a 64-bit integer number</p>
+              <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a 64-bit signed integer number.</p>
             </td>
           </tr>
           <tr>
             <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#obj(kotlin.collections.Map,kotlin.collections.List,kotlin.String,kotlin.Boolean)">obj</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;properties:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html">Map</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>,&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;optionalProperties:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?,<br>&nbsp;&nbsp;&nbsp;&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><br>)</code></div>
-              <p>Returns a schema for a complex object.</p>
+              <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a complex data type.</p>
             </td>
           </tr>
           <tr>
             <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
               <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#string(kotlin.String,kotlin.Boolean,com.google.firebase.vertexai.type.StringFormat)">string</a>(description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>,&nbsp;format:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/StringFormat.html">StringFormat</a>?)</code></div>
-              <p>Returns a schema for a string</p>
+              <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a string.</p>
             </td>
           </tr>
         </tbody>
@@ -159,7 +161,7 @@
       <div class="api-item"><a name="array(com.google.firebase.vertexai.type.Schema, kotlin.String, kotlin.Boolean)"></a><a name="array-com.google.firebase.vertexai.type.Schema-kotlin.String-kotlin.Boolean-"></a><a name="array"></a>
         <h3 class="api-name" id="array(com.google.firebase.vertexai.type.Schema,kotlin.String,kotlin.Boolean)">array</h3>
         <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#array(com.google.firebase.vertexai.type.Schema,kotlin.String,kotlin.Boolean)">array</a>(items:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a>,&nbsp;description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false):&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></pre>
-        <p>Returns a schema for an array.</p>
+        <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for an array.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -175,19 +177,19 @@
               <tr>
                 <td><code>items:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
                 <td>
-                  <p>: The schema of the elements of this array</p>
+                  <p>The <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> of the elements stored in the array.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the array represents.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -197,12 +199,39 @@
       <div class="api-item"><a name="boolean(kotlin.String, kotlin.Boolean)"></a><a name="boolean-kotlin.String-kotlin.Boolean-"></a><a name="boolean"></a>
         <h3 class="api-name" id="boolean(kotlin.String,kotlin.Boolean)">boolean</h3>
         <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#boolean(kotlin.String,kotlin.Boolean)">boolean</a>(description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false):&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></pre>
-        <p>Returns a schema for a boolean</p>
+        <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> representing a boolean value.</p>
+        <div class="devsite-table-wrapper">
+          <table class="responsive">
+            <colgroup>
+              <col width="40%">
+              <col>
+            </colgroup>
+            <thead>
+              <tr>
+                <th colspan="100%">Parameters</th>
+              </tr>
+            </thead>
+            <tbody class="list">
+              <tr>
+                <td><code>description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null</code></td>
+                <td>
+                  <p>An optional description of what the boolean should contain or represent.</p>
+                </td>
+              </tr>
+              <tr>
+                <td><code>nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false</code></td>
+                <td>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
+                </td>
+              </tr>
+            </tbody>
+          </table>
+        </div>
       </div>
       <div class="api-item"><a name="double(kotlin.String, kotlin.Boolean)"></a><a name="double-kotlin.String-kotlin.Boolean-"></a><a name="double"></a>
         <h3 class="api-name" id="double(kotlin.String,kotlin.Boolean)">double</h3>
         <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#double(kotlin.String,kotlin.Boolean)">double</a>(description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false):&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></pre>
-        <p>Returns a schema for a floating point number</p>
+        <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a double-precision floating-point number.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -218,13 +247,13 @@
               <tr>
                 <td><code>description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the number should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -234,7 +263,9 @@
       <div class="api-item"><a name="enumeration(kotlin.collections.List, kotlin.String, kotlin.Boolean)"></a><a name="enumeration-kotlin.collections.List-kotlin.String-kotlin.Boolean-"></a><a name="enumeration"></a>
         <h3 class="api-name" id="enumeration(kotlin.collections.List,kotlin.String,kotlin.Boolean)">enumeration</h3>
         <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#enumeration(kotlin.collections.List,kotlin.String,kotlin.Boolean)">enumeration</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;values:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false<br>):&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></pre>
-        <p>Returns a schema for an enumeration</p>
+        <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for an enumeration.</p>
+        <p>For example, the cardinal directions can be represented as:</p>
+        <pre class="prettyprint">Schema.enumeration(listOf(&quot;north&quot;, &quot;east&quot;, &quot;south&quot;, &quot;west&quot;), &quot;Cardinal directions&quot;)</pre>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -250,19 +281,19 @@
               <tr>
                 <td><code>values:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>&gt;</code></td>
                 <td>
-                  <p>: The list of valid values for this enumeration</p>
+                  <p>The list of valid values for this enumeration</p>
                 </td>
               </tr>
               <tr>
                 <td><code>description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>The description of what the parameter should contain or represent</p>
                 </td>
               </tr>
               <tr>
                 <td><code>nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -272,7 +303,8 @@
       <div class="api-item"><a name="float(kotlin.String, kotlin.Boolean)"></a><a name="float-kotlin.String-kotlin.Boolean-"></a><a name="float"></a>
         <h3 class="api-name" id="float(kotlin.String,kotlin.Boolean)">float</h3>
         <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#float(kotlin.String,kotlin.Boolean)">float</a>(description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false):&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></pre>
-        <p>Returns a schema for a floating point number</p>
+        <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a single-precision floating-point number.</p>
+        <p><b>Important:</b> This <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> provides a hint to the model that it should generate a single-precision floating-point number, but only guarantees that the value will be a number. Therefore it's <em>possible</em> that decoding it as a <code>Float</code> variable (or <code>float</code> in Java) could overflow.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -288,13 +320,13 @@
               <tr>
                 <td><code>description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the number should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -304,7 +336,8 @@
       <div class="api-item"><a name="integer(kotlin.String, kotlin.Boolean)"></a><a name="integer-kotlin.String-kotlin.Boolean-"></a><a name="integer"></a>
         <h3 class="api-name" id="integer(kotlin.String,kotlin.Boolean)">integer</h3>
         <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#integer(kotlin.String,kotlin.Boolean)">integer</a>(description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false):&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></pre>
-        <p>Returns a schema for a 32-bit integer number</p>
+        <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a 32-bit signed integer number.</p>
+        <p><b>Important:</b> This <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> provides a hint to the model that it should generate a 32-bit integer, but only guarantees that the value will be an integer. Therefore it's <em>possible</em> that decoding it as an <code>Int</code> variable (or <code>int</code> in Java) could overflow.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -320,13 +353,13 @@
               <tr>
                 <td><code>description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the integer should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -336,7 +369,7 @@
       <div class="api-item"><a name="long(kotlin.String, kotlin.Boolean)"></a><a name="long-kotlin.String-kotlin.Boolean-"></a><a name="long"></a>
         <h3 class="api-name" id="long(kotlin.String,kotlin.Boolean)">long</h3>
         <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#long(kotlin.String,kotlin.Boolean)">long</a>(description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null,&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false):&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></pre>
-        <p>Returns a schema for a 64-bit integer number</p>
+        <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a 64-bit signed integer number.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -352,13 +385,13 @@
               <tr>
                 <td><code>description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the number should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -368,7 +401,10 @@
       <div class="api-item"><a name="obj(kotlin.collections.Map, kotlin.collections.List, kotlin.String, kotlin.Boolean)"></a><a name="obj-kotlin.collections.Map-kotlin.collections.List-kotlin.String-kotlin.Boolean-"></a><a name="obj"></a>
         <h3 class="api-name" id="obj(kotlin.collections.Map,kotlin.collections.List,kotlin.String,kotlin.Boolean)">obj</h3>
         <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#obj(kotlin.collections.Map,kotlin.collections.List,kotlin.String,kotlin.Boolean)">obj</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;properties:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html">Map</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>,&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;optionalProperties:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>&gt; = emptyList(),<br>&nbsp;&nbsp;&nbsp;&nbsp;description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false<br>):&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></pre>
-        <p>Returns a schema for a complex object. In a function, it will be returned as a JSONObject.</p>
+        <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a complex data type.</p>
+        <p>This schema instructs the model to produce data of type object, which has keys of type <code>String</code> and values of type <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code>.</p>
+        <p><b>Example:</b> A <code>city</code> could be represented with the following object <code>Schema</code>.</p>
+        <pre class="prettyprint">Schema.obj(mapOf(<br>  &quot;name&quot;  to Schema.string(),<br>  &quot;population&quot; to Schema.integer()<br>))</pre>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -384,19 +420,25 @@
               <tr>
                 <td><code>properties:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html">Map</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>,&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a>&gt;</code></td>
                 <td>
-                  <p>: The map of the object's fields to their schema</p>
+                  <p>The map of the object's property names to their <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code>s.</p>
+                </td>
+              </tr>
+              <tr>
+                <td><code>optionalProperties:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>&gt; = emptyList()</code></td>
+                <td>
+                  <p>The list of optional properties. They must correspond to the keys provided in the <code>properties</code> map. By default it's empty, signaling the model that all properties are to be included.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the object represents.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
             </tbody>
@@ -406,7 +448,7 @@
       <div class="api-item"><a name="string(kotlin.String, kotlin.Boolean, com.google.firebase.vertexai.type.StringFormat)"></a><a name="string-kotlin.String-kotlin.Boolean-com.google.firebase.vertexai.type.StringFormat-"></a><a name="string"></a>
         <h3 class="api-name" id="string(kotlin.String,kotlin.Boolean,com.google.firebase.vertexai.type.StringFormat)">string</h3>
         <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.Companion.html#string(kotlin.String,kotlin.Boolean,com.google.firebase.vertexai.type.StringFormat)">string</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null,<br>&nbsp;&nbsp;&nbsp;&nbsp;nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false,<br>&nbsp;&nbsp;&nbsp;&nbsp;format:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/StringFormat.html">StringFormat</a>? = null<br>):&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></pre>
-        <p>Returns a schema for a string</p>
+        <p>Returns a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code> for a string.</p>
         <div class="devsite-table-wrapper">
           <table class="responsive">
             <colgroup>
@@ -422,19 +464,19 @@
               <tr>
                 <td><code>description:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null</code></td>
                 <td>
-                  <p>: The description of what the parameter should contain or represent</p>
+                  <p>An optional description of what the string should contain or represent.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>nullable:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a> = false</code></td>
                 <td>
-                  <p>: Whether null is a valid value for this schema</p>
+                  <p>Indicates whether the value can be <code>null</code>. Defaults to <code>false</code>.</p>
                 </td>
               </tr>
               <tr>
                 <td><code>format:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/StringFormat.html">StringFormat</a>? = null</code></td>
                 <td>
-                  <p>: The pattern that values need to adhere to</p>
+                  <p>An optional pattern that values need to adhere to.</p>
                 </td>
               </tr>
             </tbody>
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/package-summary.html	2024-11-01 16:12:48.509033369 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/package-summary.html	2024-11-01 16:10:43.386591262 +0000
@@ -196,7 +196,7 @@
           <tr>
             <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/Schema.html">Schema</a></code></td>
             <td>
-              <p>Represents a schema</p>
+              <p>Definition of a data type.</p>
             </td>
           </tr>
           <tr>

Copy link
Contributor

Vertex AI Mock Responses Check ⚠️

A newer major version of the mock responses for Vertex AI unit tests is available. update_responses.sh should be updated to clone the latest version of the responses: v5.1

@rlazo
Copy link
Collaborator Author

rlazo commented Oct 31, 2024

cc @andrewheard

Copy link
Contributor

github-actions bot commented Oct 31, 2024

Test Results

 20 files  ±0   20 suites  ±0   14s ⏱️ -1s
112 tests ±0  112 ✅ ±0  0 💤 ±0  0 ❌ ±0 
224 runs  ±0  224 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit ed57ff6. ± Comparison against base commit 5687f6d.

♻️ This comment has been updated with latest results.

firebase-vertexai/CHANGELOG.md Outdated Show resolved Hide resolved
@rlazo rlazo enabled auto-merge (squash) November 1, 2024 16:08
@rlazo rlazo merged commit 22ace25 into main Nov 1, 2024
27 checks passed
@rlazo rlazo deleted the rl.schema.doc.improv branch November 1, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants