1import * as bedrock from "@distilled.cloud/aws/bedrock-runtime";
2import * as Layer from "effect/Layer";
3import { makeModelScopedHttpBinding } from "./BindingHttp.ts";
4import { InvokeModelWithResponseStream } from "./InvokeModelWithResponseStream.ts";
5
6export 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);