tasq/node_modules/@ruvector/ruvllm/dist/esm/index.d.ts

64 lines
1.9 KiB
TypeScript

/**
* @ruvector/ruvllm - Self-learning LLM orchestration
*
* RuvLLM combines SONA adaptive learning with HNSW memory,
* FastGRNN routing, and SIMD-optimized inference.
*
* @example
* ```typescript
* import { RuvLLM, SessionManager, SonaCoordinator } from '@ruvector/ruvllm';
*
* const llm = new RuvLLM({ learningEnabled: true });
* const sessions = new SessionManager(llm);
* const sona = new SonaCoordinator();
*
* // Query with session context
* const session = sessions.create();
* const response = sessions.chat(session.id, 'What is AI?');
*
* // Track learning trajectory
* const trajectory = new TrajectoryBuilder()
* .startStep('query', 'What is AI?')
* .endStep(response.text, response.confidence)
* .complete('success');
*
* sona.recordTrajectory(trajectory);
* ```
*
* @example Federated Learning
* ```typescript
* import { EphemeralAgent, FederatedCoordinator } from '@ruvector/ruvllm';
*
* // Central coordinator
* const coordinator = new FederatedCoordinator('coord-1');
*
* // Ephemeral agents process tasks and export
* const agent = new EphemeralAgent('agent-1');
* agent.processTask(embedding, 0.9);
* const exportData = agent.exportState();
*
* // Aggregate learning
* coordinator.aggregate(exportData);
* ```
*
* @example LoRA Adapters
* ```typescript
* import { LoraAdapter, LoraManager } from '@ruvector/ruvllm';
*
* const adapter = new LoraAdapter({ rank: 8, alpha: 16 });
* const output = adapter.forward(input);
* ```
*/
export * from './types';
export * from './engine';
export * from './simd';
export * from './session';
export * from './streaming';
export * from './sona';
export * from './federated';
export * from './lora';
export * from './export';
export * from './training';
export { version, hasSimdSupport } from './native';
export { RuvLLM as default } from './engine';
//# sourceMappingURL=index.d.ts.map