chore(main): release 1.69.0-SNAPSHOT - #1205
Merged
Merged
Conversation
yyyu-google
approved these changes
Aug 25, 2026
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
…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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 I have created a release beep boop
Updating meta-information for bleeding-edge SNAPSHOT release.
This PR was generated with Release Please. See documentation.