@n8n/n8n-nodes-langchain
Version:
43 lines (37 loc) • 1.93 kB
text/typescript
/**
* Cohere Chat Model Node - Version 1
* For advanced usage with an AI chain
*/
export interface LcLmChatCohereV1Params {
/**
* The model which will generate the completion. <a href="https://docs.cohere.com/docs/models">Learn more</a>.
* @builderHint Choose a current Command model from the connected credential's model list. Check tool support when connecting it to an agent. Keep a working or explicitly requested model unless provider evidence shows it is unavailable or unsuitable. When choosing a new model, select a current stable model supported by this node version, the configured API, and the required operation. Use the declared model-list lookup with the connected credential when available. Gateway credits can restrict that list. For a new choice without credentials, use current provider catalog information. Choose a model that fits the task and budget. Copy the exact model ID. Do not rely on node defaults, invent model IDs, or treat an unfamiliar model as invalid.
* @default command-a-03-2025
*/
model?: string | Expression<string>;
/**
* Additional options to add
* @default {}
*/
options?: {
/** 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>;
/** Maximum number of retries to attempt
* @default 2
*/
maxRetries?: number | Expression<number>;
};
}
export interface LcLmChatCohereV1Credentials {
cohereApi: CredentialReference;
}
interface LcLmChatCohereV1NodeBase {
type: '@n8n/n8n-nodes-langchain.lmChatCohere';
version: 1;
}
export type LcLmChatCohereV1ParamsNode = LcLmChatCohereV1NodeBase & {
config: NodeConfig<LcLmChatCohereV1Params> & { credentials?: LcLmChatCohereV1Credentials };
};
export type LcLmChatCohereV1Node = LcLmChatCohereV1ParamsNode;