Skip to content

Streaming input #2

@tobymarsden

Description

@tobymarsden

I'd be super keen to handle streaming JSON input. I can imagine there are different ways to approach it, but sufficient for our particular needs would be to support multiple query() calls on the same queryBuilder object by:

  • spawning a new process if there isn't already one or the previous one has already finished
  • passing the message to the existing process stdin if it has started but not yet completed

I realize there are some thorny issues in there but the payoff is the ability to inject guidance into a long-running agent process which is really game changing UX.

Happy to maintain a private fork with this, but if I did find a way that wasn't awful would you consider it in-scope of this package for a PR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions