chore: Copies latest session state to the passed-in session for runAsync with Session#509
Merged
copybara-service[bot] merged 1 commit intomaingoogle/adk-java:mainfrom Oct 17, 2025
Merged
chore: Copies latest session state to the passed-in session for runAsync with Session#509copybara-service[bot] merged 1 commit intomaingoogle/adk-java:mainfrom
copybara-service[bot] merged 1 commit intomaingoogle/adk-java:mainfrom
Conversation
1cafa7d to
a9a382f
Compare
…ync with Session NOTE: `runAsync` with `Session` object was an early interface and doesn't comply with ADK interfaces across languages. Adding this behavior back is to temporarily restore previous behavior. Here are some clarifications of the behavior: - Any changes to the passed-in `Session` object at `runAsync` callsite won't affect agent run; - Callsite should always use session service to get latest session if they need to access session, instead of reading into the passed-in session object. - All runAsync with Session object will be deprecated and removed in future versions. PiperOrigin-RevId: 820571672
a9a382f to
ab4cb4c
Compare
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.
chore: Copies latest session state to the passed-in session for runAsync with Session
NOTE:
runAsyncwithSessionobject was an early interface and doesn't comply with ADK interfaces across languages. Adding this behavior back is to temporarily restore previous behavior.Here are some clarifications of the behavior:
Sessionobject atrunAsynccallsite won't affect agent run;