feat(cli): expose session rewind on Agent Engine and api_server - #6704
Open
a2105z wants to merge 1 commit into
Open
feat(cli): expose session rewind on Agent Engine and api_server#6704a2105z wants to merge 1 commit into
a2105z wants to merge 1 commit into
Conversation
Managed Agent Engine deploys could not edit/undo messages because rewind
was only available via runner.rewind_async. Register async_rewind in
Agent Engine class_methods, bind a runtime implementation for
/api/reasoning_engine, and add POST .../sessions/{id}/rewind.
Fixes google#4121
Contributor
Author
|
@wuliang229 @yeesian — this implements #4121 (Agent Engine / api_server session rewind). Ready for your review whenever you have bandwidth. Thanks! |
Contributor
Author
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.
Please ensure you have read the contribution guide before creating a pull request.
Link to Issue or Description of Change
Summary
Expose session rewind for Agent Engine /
adk api_serverdeployments so edit-message / undo flows work without relying on the Vertex SessionsappendEventproto (which rejectsrewind_before_invocation_id).What changed
async_rewindin Agent Engine_AGENT_ENGINE_CLASS_METHODS(deploy metadata + allowlist)async_rewindon the Agent EngineAdkAppinstance used by/api/reasoning_engine(callsrunner.rewind_async, returns updated session)POST /apps/{app}/users/{user}/sessions/{session}/rewindTesting Plan
Unit Tests:
Checklist
Additional context
cc @wuliang229 @yeesian — ready for review when you have a chance.