UNPKG

@n8n/n8n-nodes-langchain

Version:

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

36 lines (31 loc) 950 B
/** * OpenAI Node - Version 2.1 * Discriminator: resource=text, operation=classify */ interface Credentials { openAiApi: CredentialReference; } /** Check whether content complies with usage policies */ export type LcOpenAiV21TextClassifyParams = { resource: 'text'; operation: 'classify'; /** * The input text to classify if it is violates the moderation policy */ input?: string | Expression<string> | PlaceholderValue; /** * Whether to return a simplified version of the response instead of the raw data * @default false */ simplify?: boolean | Expression<boolean>; }; export interface LcOpenAiV21TextClassifySubnodeConfig { tools?: ToolInstance[]; memory?: MemoryInstance; } export type LcOpenAiV21TextClassifyNode = { type: '@n8n/n8n-nodes-langchain.openAi'; version: 2.1; credentials?: Credentials; config: NodeConfig<LcOpenAiV21TextClassifyParams> & { subnodes?: LcOpenAiV21TextClassifySubnodeConfig }; };