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


interface Credentials {
  openAiApi: CredentialReference;
}

/** Check whether content complies with usage policies */
export type LcOpenAiV13TextClassifyParams = {
  resource: 'text';
  operation: 'classify';
/**
 * The input text to classify if it is violates the moderation policy
 */
    input?: string | Expression<string>;
/**
 * Whether to return a simplified version of the response instead of the raw data
 * @default false
 */
    simplify?: boolean | Expression<boolean>;
/**
 * Options
 * @default {}
 */
    options?: {
    /** Whether to use the stable version of the model instead of the latest version, accuracy may be slightly lower
     * @default false
     */
    useStableModel?: boolean | Expression<boolean>;
  };
};

export interface LcOpenAiV13TextClassifySubnodeConfig {
  tools?: ToolInstance[];
  memory?: MemoryInstance;
}

export type LcOpenAiV13TextClassifyNode = {
  type: '@n8n/n8n-nodes-langchain.openAi';
  version: 1.3;
  credentials?: Credentials;
  isTrigger: true;
  config: NodeConfig<LcOpenAiV13TextClassifyParams> & { subnodes?: LcOpenAiV13TextClassifySubnodeConfig };
};