aws

2025-08-22T21:09:41.405579Z

Should https://github.com/cognitect-labs/aws-api support streaming event responses? It seems like there are a few operations across all of aws that return streaming events, formatted according to this: https://smithy.io/2.0/aws/amazon-eventstream.html I'm looking specifically at https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html, which currently is broken with aws-api, but I'm pretty sure I could get it "working" with interceptors/modify-http-request to return an input-stream :body in the response that I can then parse into the events according to the above spec. But are "first class" event streams worth supporting? Even if not, I'm curious what that might look like, as I've been working with these request-to-possibly-streaming response APIs a lot generally and haven't settled on the best way to deal with them generally. I guess the obvious choices are a new function like (invoke-stream client opmap channel) or just allow invoke-async to put multiple things on the response channel and close it when done (though I think that could break things).