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