{"record":{"id":"6d1564d30d0d49ef","repo":"n8n-io/n8n","slug":"cannot-combine-langsmith-with-backend-local","errorCode":null,"errorMessage":"Cannot combine `--langsmith` with `--backend local`","messagePattern":"Cannot combine `--langsmith` with `--backend local`","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@n8n/ai-workflow-builder.ee/evaluations/cli/argument-parser.ts","lineNumber":519,"sourceCode":"\tif (args.technique && !filters.technique) filters.technique = args.technique;\n\n\tconst hasAny = Object.values(filters).some((v) => typeof v === 'string' && v.length > 0);\n\treturn hasAny ? filters : undefined;\n}\n\nexport function parseEvaluationArgs(argv: string[] = process.argv.slice(2)): EvaluationArgs {\n\t// Check for help flag before parsing\n\tif (argv.includes('--help') || argv.includes('-h')) {\n\t\tprintHelp();\n\t\tprocess.exit(0);\n\t}\n\n\tconst { values, seenKeys } = parseCli(argv);\n\n\tif (values.langsmith === true) {\n\t\tconst backendWasExplicit = seenKeys.has('backend');\n\t\tif (backendWasExplicit && values.backend !== 'langsmith') {\n\t\t\tthrow new Error('Cannot combine `--langsmith` with `--backend local`');\n\t\t}\n\t\tvalues.backend = 'langsmith';\n\t}\n\n\tconst parsed = cliSchema.parse(values);\n\n\tconst featureFlags = parseFeatureFlags({\n\t\tsuite: parsed.suite,\n\t});\n\n\tconst filters = parseFilters({\n\t\tfilter: parsed.filter,\n\t\tnotionId: parsed.notionId,\n\t\ttechnique: parsed.technique,\n\t});\n\n\tif (parsed.suite !== 'pairwise' && (filters?.doSearch || filters?.dontSearch)) {\n\t\tthrow new Error(","sourceCodeStart":501,"sourceCodeEnd":537,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/ai-workflow-builder.ee/evaluations/cli/argument-parser.ts#L501-L537","documentation":"Error \"Cannot combine `--langsmith` with `--backend local`\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/ai-workflow-builder.ee/evaluations/cli/argument-parser.ts:519 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}