AmazonBedrockLanguageModel.ts overview
Since v1.0.0
Exports Grouped by Category
AiModels
model
Signature
declare const model: (
model: (string & {}) | Model,
config?: Omit<Config.Service, "model">
) => AiModel.Model<"amazon-bedrock", LanguageModel.LanguageModel, AmazonBedrockClient>
Since v1.0.0
Configuration
withConfigOverride
Signature
declare const withConfigOverride: {
(config: Config.Service): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
<A, E, R>(self: Effect.Effect<A, E, R>, config: Config.Service): Effect.Effect<A, E, R>
}
Since v1.0.0
Constructors
make
Signature
declare const make: (options: {
readonly model: (string & {}) | Model
readonly config?: Omit<Config.Service, "model">
}) => Effect.Effect<LanguageModel.Service, never, AmazonBedrockClient>
Since v1.0.0
Context
Config (class)
Signature
declare class Config
Since v1.0.0
Layers
layer
Signature
declare const layer: (options: {
readonly model: (string & {}) | Model
readonly config?: Omit<Config.Service, "model">
}) => Layer.Layer<LanguageModel.LanguageModel, never, AmazonBedrockClient>
Since v1.0.0
Models
Model (type alias)
Signature
type Model = typeof BedrockFoundationModelId.Encoded
Since v1.0.0
Provider Options
AmazonBedrockReasoningInfo (type alias)
Signature
type AmazonBedrockReasoningInfo =
| {
readonly type: "thinking"
/**
* Thinking content as an encrypted string, which is used to verify
* that thinking content was indeed generated by Amazon Bedrock's API.
*/
readonly signature: string
}
| {
readonly type: "redacted_thinking"
/**
* Thinking content which was flagged by Amazon Bedrock's safety systems, and
* was therefore encrypted.
*/
readonly redactedData: string
}
Since v1.0.0
utils
Config (namespace)
Since v1.0.0
Service (interface)
Signature
export interface Service
extends Simplify<Partial<Omit<typeof ConverseRequest.Encoded, "messages" | "system" | "toolConfig">>> {}
Since v1.0.0