Add cancel() and isBusy to InferenceEngine protocol#32
Merged
Conversation
4e5d422 to
f1a8bf3
Compare
1fd5faa to
50386a3
Compare
carinapeng
reviewed
Jun 12, 2026
342fd81 to
f666779
Compare
f666779 to
1a754e1
Compare
tjia1818
approved these changes
Jun 15, 2026
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.
Adds lifecycle management APIs to the InferenceEngine protocol so callers can gracefully cancel in-flight generation and query busy state.
All three engine implementations (Sequential, Pipelined, StaticShape) and MockEngine are updated with concrete implementations.
CoreAILanguageModel now calls cancel() before reset() to ensure clean state transitions.