Skip to content

Add last-prompt editing and regeneration to ChatSession - #2898

Open
medisean wants to merge 2 commits into
googleapis:mainfrom
medisean:codex/edit-last-chat-prompt
Open

Add last-prompt editing and regeneration to ChatSession#2898
medisean wants to merge 2 commits into
googleapis:mainfrom
medisean:codex/edit-last-chat-prompt

Conversation

@medisean

@medisean medisean commented Aug 23, 2026

Copy link
Copy Markdown

Fixes #2833\n\nSummary:\n- Add synchronous and asynchronous update_last_prompt APIs.\n- Add regenerate_last_turn helpers that reuse the prior user content.\n- Support the same text, media, and audio part inputs accepted by send_message.\n- Add history replacement and regeneration coverage.\n\nTests:\n- git diff --check passed.\n- Python syntax compilation passed.

@google-cla

google-cla Bot commented Aug 23, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support editing the last prompt with full input options (Text, Media & Audio) in ChatSession

1 participant