“Rewind” 的意思是“倒带”或“回退到之前的状态”。在技术或日常语境中,它可以指:
1. **倒带功能**:例如,录像机或音频播放器的倒带按钮,用于将播放内容恢复到之前的时间点。
2. **撤销操作**:在软件或系统中,某些操作可以“撤销”(undo),使系统回到之前的状态。
3. **时间回溯**:在某些故事或场景中,角色或事件会“倒退”到过去的时间点。
例如:
- 你可以使用录像机的“Rewind”按钮来重新观看视频的开始部分。
- 在编辑文档时,你可以使用“撤销”功能来取消之前的修改。
- 在游戏中,有时玩家可以通过“时间回溯”来改变剧情的发展。Async
Rewinds the session to before the specified invocation.
Appends a synthetic user-authored event with reversing stateDelta and artifactDelta entries that restore session state and artifacts to what they were at the start of rewindBeforeInvocationId. State and artifact keys prefixed with app: and user: are preserved (they outlive the rewound invocation). Mirrors Python ADK runners.py:rewind_async.
The default implementation throws NotImplementedError for temporary backward compatibility with existing Runner implementations; override to support session rewind.
Parameters
userId
The user ID of the session.
sessionId
The session ID of the session.
rewindBeforeInvocationId
The invocation to rewind before.
Throws
if no event in the session has the given invocation id.