| 123456789101112131415161718192021 |
- import fs from 'fs';
- function assert(condition, message) {
- if (!condition) throw new Error(message);
- }
- console.log('\n── Workflow Provider Pass-through ──');
- for (const file of [
- './src/tools/vl-generate.js',
- './src/tools/vl-adjust.js',
- './src/tools/workflow-run.js',
- ]) {
- const source = fs.readFileSync(new URL(file, import.meta.url), 'utf-8');
- assert(
- source.includes('llmProvider: config.llmProvider'),
- `${file} should pass the selected llmProvider into WorkflowExecutor`
- );
- }
- console.log('PASS test-workflow-provider-pass-through.js');
|