Skip to content
TypeScript
426 B
Raw Blame
import * as bedrock from "@distilled.cloud/aws/bedrock-runtime";
import * as Layer from "effect/Layer";
import { makeModelScopedHttpBinding } from "./BindingHttp.ts";
import { InvokeModel } from "./InvokeModel.ts";

export const InvokeModelHttp = Layer.effect(
  InvokeModel,
  makeModelScopedHttpBinding({
    tag: "AWS.Bedrock.InvokeModel",
    operation: bedrock.invokeModel,
    actions: ["bedrock:InvokeModel"],
  }),
);