ktx/packages/llm/src/package-exports.test.ts

20 lines
569 B
TypeScript
Raw Permalink Normal View History

2026-05-10 23:12:26 +02:00
import { describe, expect, it } from 'vitest';
2026-05-10 23:51:24 +02:00
describe('@ktx/llm package exports', () => {
2026-05-10 23:12:26 +02:00
it('exports the canonical LLM and embedding surfaces', async () => {
const llm = await import('./index.js');
2026-05-10 23:51:24 +02:00
expect(llm.KTX_MODEL_ROLES).toEqual([
2026-05-10 23:12:26 +02:00
'default',
'triage',
'candidateExtraction',
'curator',
'reconcile',
'repair',
]);
2026-05-10 23:51:24 +02:00
expect(llm.createKtxLlmProvider).toBeTypeOf('function');
expect(llm.KtxMessageBuilder).toBeTypeOf('function');
expect(llm.createKtxEmbeddingProvider).toBeTypeOf('function');
2026-05-10 23:12:26 +02:00
});
});