Skip to content

Commit 990586b

Browse files
matthew29tangcopybara-github
authored andcommitted
feat: Add domain to Web GroundingChunk
PiperOrigin-RevId: 744869120
1 parent c4b660d commit 990586b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/com/google/genai/types/GroundingChunkWeb.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
@AutoValue
3030
@JsonDeserialize(builder = GroundingChunkWeb.Builder.class)
3131
public abstract class GroundingChunkWeb extends JsonSerializable {
32+
/** Domain of the (original) URI. */
33+
@JsonProperty("domain")
34+
public abstract Optional<String> domain();
35+
3236
/** Title of the chunk. */
3337
@JsonProperty("title")
3438
public abstract Optional<String> title();
@@ -54,6 +58,9 @@ private static Builder create() {
5458
return new AutoValue_GroundingChunkWeb.Builder();
5559
}
5660

61+
@JsonProperty("domain")
62+
public abstract Builder domain(String domain);
63+
5764
@JsonProperty("title")
5865
public abstract Builder title(String title);
5966

0 commit comments

Comments
 (0)