| 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 { InvokeModelWithResponseStream } from "./InvokeModelWithResponseStream.ts"; |
| 5 | |
| 6 | export const InvokeModelWithResponseStreamHttp = Layer.effect( |
| 7 | InvokeModelWithResponseStream, |
| 8 | makeModelScopedHttpBinding({ |
| 9 | tag: "AWS.Bedrock.InvokeModelWithResponseStream", |
| 10 | operation: bedrock.invokeModelWithResponseStream, |
| 11 | // Streaming operations authorize against this action, not |
| 12 | // bedrock:InvokeModel. |
| 13 | actions: ["bedrock:InvokeModelWithResponseStream"], |
| 14 | }), |
| 15 | ); |