Implement Runner streaming and stateless execution#142
Merged
Conversation
kalenkevich
reviewed
Feb 13, 2026
Collaborator
kalenkevich
left a comment
There was a problem hiding this comment.
can we please also include some tests for those changes?
kalenkevich
reviewed
Feb 13, 2026
kalenkevich
reviewed
Feb 13, 2026
kalenkevich
reviewed
Feb 23, 2026
Collaborator
Author
|
@kalenkevich I think I've resolved all of your comments, and updated the PR description to match the revised API. PTAL, and thank you! |
kalenkevich
reviewed
Feb 23, 2026
kalenkevich
reviewed
Feb 23, 2026
Collaborator
kalenkevich
left a comment
There was a problem hiding this comment.
A bit more comments, sorry
…ctured event interfaces
Collaborator
Author
|
Thanks for the additional round of comments, @kalenkevich! The code is better for it. All suggestions and fixes incorporated. PTAL. |
This was referenced Feb 24, 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.
This PR implements the core streaming and session management improvements for the Runner class, ensuring architectural parity with the ADK Python implementation.
Key Features:
runAsync): The primary entry point for streaming. Returns an AsyncGenerator, yielding raw, non-lossy ADK events in real-time as the model processes the request.runEphemeral): A helper method that creates a temporary session, executes a stream (with an optional initial stateDelta), and automatically cleans up the session data upon completion.toStructuredEvents): An optional, standalone utility that parses raw ADK events into a strongly-typed list ofStructuredEventobjects. It categorizes parts into high-level actions (ThoughtEvent,ContentEvent,ToolCallEvent,CallCodeEvent, etc.) to simplify client-side event handling for complex UI or CLI integrations.Reference: docs/adk-ts-improvements.md
Fixes #141.