@n8n/n8n-nodes-langchain
Version:

35 lines (30 loc) • 898 B
text/typescript
/**
* 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 };
};