UNPKG

@n8n/n8n-nodes-langchain

Version:

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

35 lines 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.description = void 0; exports.execute = execute; const n8n_workflow_1 = require("n8n-workflow"); const transport_1 = require("../../../transport"); const properties = [ { displayName: 'Conversation ID', name: 'conversationId', type: 'string', default: '', placeholder: 'conv_1234567890', description: 'The ID of the conversation to delete', required: true, }, ]; const displayOptions = { show: { operation: ['remove'], resource: ['conversation'], }, }; exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties); async function execute(i) { const conversationId = this.getNodeParameter('conversationId', i, ''); const response = await transport_1.apiRequest.call(this, 'DELETE', `/conversations/${conversationId}`); return [ { json: response, pairedItem: { item: i }, }, ]; } //# sourceMappingURL=remove.operation.js.map