Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Make rewind session upon cancellation accessible via API server

Đang mở
#7,177 3 bình luận 0 reaction 1 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api

Hướng nghiên cứu

Start in api_server.py and compare the existing API behavior with the cancellation and rewind flow exposed by the Debug Web UI. Investigate the proposed runner.rewind_async entry point and determine how it should be exposed through an API endpoint. Done means the API server can cancel generation and rewind the session to its previous state without requiring clients to save, delete, and recreate sessions.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

request clarification services

** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.

🔴 Required Information

Please ensure all items in this section are completed to allow for efficient
triaging. Requests without complete information may be rejected / deprioritized.
If an item is not applicable to you - please mark it as N/A

Is your feature request related to a specific problem?

Agents may sometimes exhibit a heavy tool use, resulting in long processing times. In such a situation, one often wants to abort the generation, return to the last state, and rephrase the query. When interacting with our agents, we heavily rely on the ADK API (adk api_server), which doesn't seem to support a clean way to abort a generation and rewind the session to the previous state.

Describe the Solution You'd Like

The Debug Web UI (adk web) provides a button that allows to cancel the generation and rewind the session to the previous state. An analogous feature for the ADK API (adk api_server) is needed.

Impact on your work

Since we are currently not able to abort generation in a clean way, users often get frustrated when the agents take a wrong path and get lost in the various tools.

Willingness to contribute

N/A

🟡 Recommended Information

Describe Alternatives You've Considered

The only alternative we see with the ADK API so far would be save the session before every turn, delete it upon cancellation, and regenerate the session with the previous copy (create with id), but this seems overly excessive, especially since the ADK Web UI already has the functionality we are looking for.

Proposed API / Implementation

I'd expect that something like runner.rewind_async would be present in the api_server.py and accessible through one of the endpoints.

Additional Context

N/A

Ngôn ngữ chính
Python
Star
21.6k
Fork
4k
Merge trung bình
13 giờ 49 phút
Pull request đã merge (30 ngày)
10

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của google/adk-python

Tất cả issue của google/adk-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.