Skip to content

Module '"@ruvector/router"' has no exported member 'SemanticRouter' #67

@DogaOztuzun

Description

@DogaOztuzun

Bug: SemanticRouter documented in README but not exported

The README documents SemanticRouter as the main class for semantic routing, but the package only exports VectorDb and DistanceMetric. The documented API is not available.

Expected Behavior (per README)

import { SemanticRouter } from '@ruvector/router';

const router = new SemanticRouter({ dimension: 384 });

router.addIntent({
  name: 'weather',
  utterances: ['What is the weather today?', 'Will it rain tomorrow?'],
  metadata: { handler: 'weather_agent' }
});

const results = await router.route('What will the weather be like?');

Actual Behavior

import { SemanticRouter } from '@ruvector/router';
// ❌ Error: Module '"@ruvector/router"' has no exported member 'SemanticRouter'
  • Version: 0.1.25
  • Node: v20.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions