@n8n/n8n-nodes-langchain
Version:

50 lines (44 loc) • 1.76 kB
text/typescript
/**
* AWS Bedrock Chat Model Node - Version 1.1
* Language Model AWS Bedrock
*/
export interface LcLmChatAwsBedrockV11Params {
/**
* Choose between on-demand foundation models or inference profiles
* @default onDemand
*/
modelSource?: 'onDemand' | 'inferenceProfile' | Expression<string>;
/**
* The model which will generate the completion. <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/foundation-models.html">Learn more</a>.
* @builderHint Default to the latest Claude Sonnet on Bedrock (anthropic.claude-sonnet-4-6 family). For Claude Sonnet 4+, switch Model Source to Inference Profiles. Avoid claude-sonnet-4-5, claude-3.x, and non-Claude legacy models unless requested.
* @displayOptions.hide { modelSource: ["inferenceProfile"] }
*/
model?: string | Expression<string>;
/**
* Additional options to add
* @default {}
*/
options?: {
/** The maximum number of tokens to generate in the completion
* @default 2000
*/
maxTokensToSample?: number | Expression<number>;
/** Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.
* @default 0.7
*/
temperature?: number | Expression<number>;
};
}
export interface LcLmChatAwsBedrockV11Credentials {
aws: CredentialReference;
}
interface LcLmChatAwsBedrockV11NodeBase {
type: '@n8n/n8n-nodes-langchain.lmChatAwsBedrock';
version: 1.1;
credentials?: LcLmChatAwsBedrockV11Credentials;
isTrigger: true;
}
export type LcLmChatAwsBedrockV11ParamsNode = LcLmChatAwsBedrockV11NodeBase & {
config: NodeConfig<LcLmChatAwsBedrockV11Params>;
};
export type LcLmChatAwsBedrockV11Node = LcLmChatAwsBedrockV11ParamsNode;