UNPKG

n8n-nodes-langsmith-prompt

Version:

n8n node to use LangSmith prompt templates with variable substitution

35 lines 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LangSmithApi = void 0; class LangSmithApi { constructor() { this.name = 'langSmithApi'; this.displayName = 'LangSmith API'; this.documentationUrl = 'https://docs.smith.langchain.com/reference/authentication'; this.properties = [ { displayName: 'LangSmith API Key', name: 'langSmithApiKey', type: 'string', typeOptions: { password: true, }, default: '', required: true, description: 'Your LangSmith API Key', }, ]; this.test = { request: { baseURL: 'https://api.smith.langchain.com', url: '/api/v1/prompts/', method: 'GET', headers: { 'x-api-key': '={{$credentials.langSmithApiKey}}', }, }, }; } } exports.LangSmithApi = LangSmithApi; //# sourceMappingURL=LangSmithApi.credentials.js.map