| 1 | import * as bedrock from "@distilled.cloud/aws/bedrock-runtime"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeModelScopedHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { ConverseStream } from "./ConverseStream.ts"; |
| 5 | |
| 6 | export const ConverseStreamHttp = Layer.effect( |
| 7 | ConverseStream, |
| 8 | makeModelScopedHttpBinding({ |
| 9 | tag: "AWS.Bedrock.ConverseStream", |
| 10 | operation: bedrock.converseStream, |
| 11 | // Streaming operations authorize against this action, not |
| 12 | // bedrock:InvokeModel. |
| 13 | actions: ["bedrock:InvokeModelWithResponseStream"], |
| 14 | }), |
| 15 | ); |