Skip to content

AmazonBedrockLanguageModel

8 exports Added in v1.0.0 Source

AiModels

model

Added in v1.0.0 Source

Signature

declare function model(
  model: any,
  config?: Omit<Service, "model">,
): Model<"amazon-bedrock", LanguageModel, AmazonBedrockClient>;

Configuration

Signature

declare const withConfigOverride: {
  (config: Service): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, R>;
  <A, E, R>(self: Effect<A, E, R>, config: Service): Effect<A, E, R>;
};

Constructors

make

Added in v1.0.0 Source

Signature

declare const make: (
  ...args: [
    options: {
      readonly config?: Omit<Service, "model">;
      readonly model: any;
    },
  ]
) => Effect<any, unknown, unknown>;

Context

Config

Added in v1.0.0 Source

Signature

declare class Config extends any {
  constructor();
  static readonly getOrUndefined: Effect<any>;
}

Layers

layer

Added in v1.0.0 Source

Signature

declare function layer(options: {
  readonly config?: Omit<Service, "model">;
  readonly model: any;
}): Layer<LanguageModel, never, AmazonBedrockClient>;

Models

Model type

Added in v1.0.0 Source

Signature

type Model = typeof BedrockFoundationModelId.Encoded;

Other

Config

Added in v1.0.0 Source

Provider Options

Signature

type AmazonBedrockReasoningInfo =
  | {
      readonly signature: string;
      readonly type: "thinking";
    }
  | {
      readonly redactedData: string;
      readonly type: "redacted_thinking";
    };