UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

35 lines (30 loc) 898 B
/** * Anthropic Node - Version 1 * Discriminator: resource=prompt, operation=generate */ interface Credentials { anthropicApi: CredentialReference; } /** Generate a prompt for a model */ export type LcAnthropicV1PromptGenerateParams = { resource: 'prompt'; operation: 'generate'; /** * Description of the prompt's purpose */ task?: string | Expression<string> | PlaceholderValue; /** * Whether to return a simplified version of the response instead of the raw data * @default true */ simplify?: boolean | Expression<boolean>; }; export interface LcAnthropicV1PromptGenerateSubnodeConfig { tools?: ToolInstance[]; } export type LcAnthropicV1PromptGenerateNode = { type: '@n8n/n8n-nodes-langchain.anthropic'; version: 1; credentials?: Credentials; config: NodeConfig<LcAnthropicV1PromptGenerateParams> & { subnodes?: LcAnthropicV1PromptGenerateSubnodeConfig }; };