generative-ai-cdk-constructs

@cdklabs/generative-ai-cdk-constructsDocs


@cdklabs/generative-ai-cdk-constructs / LangchainLayerProps

Interface: LangchainLayerProps

The properties for the LangchainLayerProps class.

Extends

Properties

additionalPackages?

readonly optional additionalPackages: string[]

A prop allowing additional python pip libraries to be installed with this langchain layer

Default

- none

architecture

readonly architecture: Architecture

Required. Lambda function architecture compatible with this Layer.


autoUpgrade?

readonly optional autoUpgrade: boolean

Optional: Add ‘–upgrade’ to pip install requirements.txt In case of a LangchainCommonLayer, this parameter is not used.

Default

- false

description?

readonly optional description: string

The description the this Lambda Layer.

Default

- No description.

Stability

stable

Inherited from

LangchainProps.description


layerVersionName?

readonly optional layerVersionName: string

The name of the layer.

Default

- A name will be generated.

Stability

stable

Inherited from

LangchainProps.layerVersionName


license?

readonly optional license: string

The SPDX licence identifier or URL to the license file for this layer.

Default

- No license information will be recorded.

Stability

stable

Inherited from

LangchainProps.license


local?

readonly optional local: "python" | "python3"

Optional: Local compute will be used when installing requirements.txt. By default, a docker container will be spun up to install requirements. To override this behavior, use the python alias string of python or python3 The string value will be the python alias used to install requirements.

Default

- none

removalPolicy?

readonly optional removalPolicy: RemovalPolicy

Whether to retain this version of the layer when a new version is added or when the stack is deleted.

Default

RemovalPolicy.DESTROY

Stability

stable

Inherited from

LangchainProps.removalPolicy


runtime

readonly runtime: Runtime

Required. Lambda function runtime compatible with this Layer.