UNPKG

@n8n/n8n-nodes-langchain

Version:

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

57 lines (52 loc) 1.5 kB
/** * Anthropic Node - Version 1 * Discriminator: resource=prompt, operation=templatize */ interface Credentials { anthropicApi: CredentialReference; } /** Templatize a prompt for a model */ export type LcAnthropicV1PromptTemplatizeParams = { resource: 'prompt'; operation: 'templatize'; /** * Messages that constitute the prompt to be templatized * @default {"values":[{"content":"","role":"user"}]} */ messages?: { /** Values */ values?: Array<{ /** The content of the message to be sent */ content?: string | Expression<string> | PlaceholderValue; /** Role in shaping the model's response, it tells the model how it should behave and interact with the user * @default user */ role?: 'user' | 'assistant' | Expression<string>; }>; }; /** * Whether to return a simplified version of the response instead of the raw data * @default true */ simplify?: boolean | Expression<boolean>; /** * Options * @default {} */ options?: { /** The existing system prompt to templatize */ system?: string | Expression<string> | PlaceholderValue; }; }; export interface LcAnthropicV1PromptTemplatizeSubnodeConfig { tools?: ToolInstance[]; } export type LcAnthropicV1PromptTemplatizeNode = { type: '@n8n/n8n-nodes-langchain.anthropic'; version: 1; credentials?: Credentials; config: NodeConfig<LcAnthropicV1PromptTemplatizeParams> & { subnodes?: LcAnthropicV1PromptTemplatizeSubnodeConfig }; };