Skip to content

POC: support input stream execution#214

Draft
kalenkevich wants to merge 1 commit intomainfrom
feat/input_stream
Draft

POC: support input stream execution#214
kalenkevich wants to merge 1 commit intomainfrom
feat/input_stream

Conversation

@kalenkevich
Copy link
Copy Markdown
Collaborator

@kalenkevich kalenkevich commented Mar 24, 2026

Description:

  • Implemented runStream in Runner which accepts an AsyncIterable<Content> for continuous input streaming.
  • Developed a concurrent multiplexing model that consumes the user stream, injects events into the SessionService, and triggers or extends the runAsync agent loop dynamically.
  • Introduced an AsyncEventQueue internal helper to synchronize and yield multiplexed input events (from the user stream) and generated events (from the model) as a single streaming output.
  • Added a demonstration in samples/streaming_input_agent.ts showcasing a weather agent interacting with time-delayed stream inputs.

Check example: samples/streaming_input_agent.ts

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.

2 participants