Skip to content

chore(main): release 1.69.0-SNAPSHOT - #1205

Merged
yyyu-google merged 1 commit into
mainfrom
release-please--branches--main
Aug 25, 2026
Merged

chore(main): release 1.69.0-SNAPSHOT#1205
yyyu-google merged 1 commit into
mainfrom
release-please--branches--main

Conversation

@release-please

Copy link
Copy Markdown
Contributor

🤖 I have created a release beep boop

Updating meta-information for bleeding-edge SNAPSHOT release.


This PR was generated with Release Please. See documentation.

@yyyu-google
yyyu-google merged commit 3d4c9f0 into main Aug 25, 2026
14 of 15 checks passed
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
…nAI SDK

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 971326432
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
…nAI SDK

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 971326432
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
…nAI SDK

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 971326432
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
…nAI SDK

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 971326432
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
Ignore the target/ build output directory in Git workspaces. This prevents Maven build artifacts from appearing as untracked or dirty files in Git and downstream tooling.

Ported from #757.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 964723612
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
…tory.

Provide clear step-by-step instructions for developers to run SDK examples using Maven from the cloned repository.

Ported from #802.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 964723611
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
…for contributors.

The current instruction coverage ratios for `com.google.genai` and `com.google.genai.types` fell below the configured JaCoCo minimum thresholds, causing Maven builds to fail during `mvn test`.

Ported from #800.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 964723613
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
The testForkedJvmExitsImmediatelyWithout60sTimeout test verifies that the forked JVM process running SampleApp exits immediately without hanging for 60 seconds (which would occur if OkHttp's idle thread keep-alive was not properly terminated on close).

However, on busy CI runners, cold-starting a full JVM process and running class initialization can occasionally exceed the strict 5-second assertion threshold (e.g. 5035ms), causing spurious test failures.

Increase the process waitFor timeout and elapsed threshold from 10s/5s to 30s, which provides ample buffer for heavy CI machine load while still reliably catching the 60-second hang.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 970000426
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
…le GenAI Java SDK.

Automatic Function Calling (AFC) previously restricted function declarations and invocations to public static methods only, throwing an `IllegalArgumentException` ("Instance methods are not supported. Please use static methods.") if an instance method was provided. This forced users to encapsulate state in static fields or create static wrappers when calling methods on service objects.

Support passing an instance or instance mapping along with `Method` references when configuring tools for Automatic Function Calling:
- Remove static modifier validation in `FunctionDeclaration.fromMethod(...)` so schemas can be generated from instance methods.
- Add `function_instances` mapping field to `Tool` definition and builder overloads to `Tool.Builder`:
  - `functions(Method, Object)`
  - `functions(List<Method>, Object)`
  - `functions(Map<Method, Object>)`
- Update `AfcUtil` to extract function instances from `GenerateContentConfig` and invoke target methods with their bound instance (`method.invoke(instance, args)`).
- Pass `functionInstanceMap` across synchronous and asynchronous model generation loops (`Models`, `AsyncModels`, `Chat`, and `AsyncChat`).
- Add unit tests in `FunctionDeclarationTest`, `AfcUtilTest`, and `PrivateChatAfcTest`.

Closes #807

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 964733917
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 970786393
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
The testForkedJvmExitsImmediatelyWithout60sTimeout test verifies that the forked JVM process running SampleApp exits immediately without hanging for 60 seconds (which would occur if OkHttp's idle thread keep-alive was not properly terminated on close).

However, on busy CI runners, cold-starting a full JVM process and running class initialization can occasionally exceed the strict 5-second assertion threshold (e.g. 5035ms), causing spurious test failures.

Increase the process waitFor timeout and elapsed threshold from 10s/5s to 30s, which provides ample buffer for heavy CI machine load while still reliably catching the 60-second hang.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 970000426
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
…nAI SDK

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 971326432
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
…le GenAI Java SDK.

Automatic Function Calling (AFC) previously restricted function declarations and invocations to public static methods only, throwing an `IllegalArgumentException` ("Instance methods are not supported. Please use static methods.") if an instance method was provided. This forced users to encapsulate state in static fields or create static wrappers when calling methods on service objects.

Support passing an instance or instance mapping along with `Method` references when configuring tools for Automatic Function Calling:
- Remove static modifier validation in `FunctionDeclaration.fromMethod(...)` so schemas can be generated from instance methods.
- Add `function_instances` mapping field to `Tool` definition and builder overloads to `Tool.Builder`:
  - `functions(Method, Object)`
  - `functions(List<Method>, Object)`
  - `functions(Map<Method, Object>)`
- Update `AfcUtil` to extract function instances from `GenerateContentConfig` and invoke target methods with their bound instance (`method.invoke(instance, args)`).
- Pass `functionInstanceMap` across synchronous and asynchronous model generation loops (`Models`, `AsyncModels`, `Chat`, and `AsyncChat`).
- Add unit tests in `FunctionDeclarationTest`, `AfcUtilTest`, and `PrivateChatAfcTest`.

Closes #807

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 964733917
copybara-service Bot pushed a commit that referenced this pull request Aug 26, 2026
…nAI SDK

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 971326432
copybara-service Bot pushed a commit that referenced this pull request Aug 27, 2026
…nAI SDK

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 971326432
copybara-service Bot pushed a commit that referenced this pull request Aug 27, 2026
…nAI SDK

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 971326432
copybara-service Bot pushed a commit that referenced this pull request Aug 27, 2026
…nAI SDK

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1205 from googleapis:release-please--branches--main e684dd0
PiperOrigin-RevId: 971326432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant