/**
 * OpenAI Node - Version 2.2
 * Discriminator: resource=text, operation=classify
 */


interface Credentials {
  openAiApi: CredentialReference;
}

/** Check whether content complies with usage policies */
export type LcOpenAiV22TextClassifyParams = {
  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 LcOpenAiV22TextClassifySubnodeConfig {
  tools?: ToolInstance[];
  memory?: MemoryInstance;
}

export type LcOpenAiV22TextClassifyNode = {
  type: '@n8n/n8n-nodes-langchain.openAi';
  version: 2.2;
  credentials?: Credentials;
  config: NodeConfig<LcOpenAiV22TextClassifyParams> & { subnodes?: LcOpenAiV22TextClassifySubnodeConfig };
};