feat: add text and generation tools

This commit is contained in:
2026-08-26 16:08:27 +05:00
parent 56ebe5b53b
commit 2b67414e79
14 changed files with 734 additions and 22 deletions
+3 -1
View File
@@ -26,7 +26,9 @@ describe('реестр инструментов', () => {
it.each(TOOLS.map((t) => [t.id, t] as const))('%s: исполнители определены', (_, tool) => {
if (tool.resultType === 'text') {
expect(typeof tool.toText).toBe('function');
expect(
typeof tool.toText === 'function' || typeof tool.textToText === 'function'
).toBe(true);
} else if (tool.sourceMode === 'none') {
expect(typeof tool.generate).toBe('function');
} else {