diff --git a/src/main/java/com/google/genai/types/FunctionCall.java b/src/main/java/com/google/genai/types/FunctionCall.java index 2e763946034..6094f0b4541 100644 --- a/src/main/java/com/google/genai/types/FunctionCall.java +++ b/src/main/java/com/google/genai/types/FunctionCall.java @@ -31,13 +31,16 @@ import java.util.Map; import java.util.Optional; -/** A function call. */ +/** + * A predicted FunctionCall returned from the model that contains a string representing the + * FunctionDeclaration.name and a structured JSON object containing the parameters and their values. + */ @AutoValue @JsonDeserialize(builder = FunctionCall.Builder.class) public abstract class FunctionCall extends JsonSerializable { /** - * The unique id of the function call. If populated, the client to execute the `function_call` and - * return the response with the matching `id`. + * Optional. The unique id of the function call. If populated, the client to execute the + * `function_call` and return the response with the matching `id`. */ @JsonProperty("id") public abstract Optional id(); @@ -88,7 +91,7 @@ private static Builder create() { /** * Setter for id. * - *

id: The unique id of the function call. If populated, the client to execute the + *

id: Optional. The unique id of the function call. If populated, the client to execute the * `function_call` and return the response with the matching `id`. */ @JsonProperty("id") diff --git a/src/main/java/com/google/genai/types/LatLng.java b/src/main/java/com/google/genai/types/LatLng.java index 80f98e5f8b9..8fcfe133590 100644 --- a/src/main/java/com/google/genai/types/LatLng.java +++ b/src/main/java/com/google/genai/types/LatLng.java @@ -27,12 +27,9 @@ import java.util.Optional; /** - * An object that represents a latitude/longitude pair. - * - *

This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. - * Unless specified otherwise, this object must conform to the WGS84 standard. - * Values must be within normalized ranges. + * An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to + * represent degrees latitude and degrees longitude. Unless specified otherwise, this object must + * conform to the WGS84 standard. Values must be within normalized ranges. */ @AutoValue @JsonDeserialize(builder = LatLng.Builder.class) @@ -41,7 +38,7 @@ public abstract class LatLng extends JsonSerializable { @JsonProperty("latitude") public abstract Optional latitude(); - /** The longitude in degrees. It must be in the range [-180.0, +180.0] */ + /** The longitude in degrees. It must be in the range [-180.0, +180.0]. */ @JsonProperty("longitude") public abstract Optional longitude(); @@ -84,7 +81,7 @@ public Builder clearLatitude() { /** * Setter for longitude. * - *

longitude: The longitude in degrees. It must be in the range [-180.0, +180.0] + *

longitude: The longitude in degrees. It must be in the range [-180.0, +180.0]. */ @JsonProperty("longitude") public abstract Builder longitude(Double longitude); diff --git a/src/main/java/com/google/genai/types/RetrievalConfig.java b/src/main/java/com/google/genai/types/RetrievalConfig.java index a4a5e2e2454..727b382dcef 100644 --- a/src/main/java/com/google/genai/types/RetrievalConfig.java +++ b/src/main/java/com/google/genai/types/RetrievalConfig.java @@ -30,7 +30,7 @@ @AutoValue @JsonDeserialize(builder = RetrievalConfig.Builder.class) public abstract class RetrievalConfig extends JsonSerializable { - /** Optional. The location of the user. */ + /** The location of the user. */ @JsonProperty("latLng") public abstract Optional latLng(); @@ -59,7 +59,7 @@ private static Builder create() { /** * Setter for latLng. * - *

latLng: Optional. The location of the user. + *

latLng: The location of the user. */ @JsonProperty("latLng") public abstract Builder latLng(LatLng latLng); @@ -67,7 +67,7 @@ private static Builder create() { /** * Setter for latLng builder. * - *

latLng: Optional. The location of the user. + *

latLng: The location of the user. */ @CanIgnoreReturnValue public Builder latLng(LatLng.Builder latLngBuilder) { diff --git a/src/main/java/com/google/genai/types/ToolConfig.java b/src/main/java/com/google/genai/types/ToolConfig.java index 41ff579dcec..59e2766cf75 100644 --- a/src/main/java/com/google/genai/types/ToolConfig.java +++ b/src/main/java/com/google/genai/types/ToolConfig.java @@ -26,11 +26,7 @@ import com.google.genai.JsonSerializable; import java.util.Optional; -/** - * Tool config. - * - *

This config is shared for all tools provided in the request. - */ +/** Tool config. This config is shared for all tools provided in the request. */ @AutoValue @JsonDeserialize(builder = ToolConfig.Builder.class) public abstract class ToolConfig extends JsonSerializable { @@ -43,8 +39,9 @@ public abstract class ToolConfig extends JsonSerializable { public abstract Optional functionCallingConfig(); /** - * If true, the API response will include the server-side tool calls and responses within the - * `Content` message. This allows clients to observe the server's tool invocations. + * Optional. If true, the API response will include the server-side tool calls and responses + * within the `Content` message. This allows clients to observe the server's tool interactions. + * This field is not supported in Vertex AI. */ @JsonProperty("includeServerSideToolInvocations") public abstract Optional includeServerSideToolInvocations(); @@ -127,9 +124,9 @@ public Builder clearFunctionCallingConfig() { /** * Setter for includeServerSideToolInvocations. * - *

includeServerSideToolInvocations: If true, the API response will include the server-side - * tool calls and responses within the `Content` message. This allows clients to observe the - * server's tool invocations. + *

includeServerSideToolInvocations: Optional. If true, the API response will include the + * server-side tool calls and responses within the `Content` message. This allows clients to + * observe the server's tool interactions. This field is not supported in Vertex AI. */ @JsonProperty("includeServerSideToolInvocations") public abstract Builder includeServerSideToolInvocations(