🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@effect-aws/client-bedrock-runtime

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect-aws/client-bedrock-runtime

Effectful AWS Bedrock Runtime client

latest
Source
npmnpm
Version
1.10.3
Version published
Maintainers
1
Created
Source

@effect-aws/client-bedrock-runtime

npm version npm downloads

Installation

npm install --save @effect-aws/client-bedrock-runtime

Usage

With default BedrockRuntimeClient instance:

import { BedrockRuntime } from "@effect-aws/client-bedrock-runtime";

const program = BedrockRuntime.invokeModel(args);

const result = pipe(
  program,
  Effect.provide(BedrockRuntime.defaultLayer),
  Effect.runPromise,
);

With custom BedrockRuntimeClient instance:

import { BedrockRuntime } from "@effect-aws/client-bedrock-runtime";

const program = BedrockRuntime.invokeModel(args);

const result = await pipe(
  program,
  Effect.provide(
    BedrockRuntime.baseLayer(() => new BedrockRuntimeClient({ region: "eu-central-1" })),
  ),
  Effect.runPromise,
);

With custom BedrockRuntimeClient configuration:

import { BedrockRuntime } from "@effect-aws/client-bedrock-runtime";

const program = BedrockRuntime.invokeModel(args);

const result = await pipe(
  program,
  Effect.provide(BedrockRuntime.layer({ region: "eu-central-1" })),
  Effect.runPromiseExit,
);

or use BedrockRuntime.baseLayer((default) => new BedrockRuntimeClient({ ...default, region: "eu-central-1" }))

FAQs

Package last updated on 17 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts