Skip to content

feat: add smart routing pattern detector#52

Closed
saurabhhhcodes wants to merge 1 commit into
Ruthwik000:mainfrom
saurabhhhcodes:feat/pattern-detector-18-v2
Closed

feat: add smart routing pattern detector#52
saurabhhhcodes wants to merge 1 commit into
Ruthwik000:mainfrom
saurabhhhcodes:feat/pattern-detector-18-v2

Conversation

@saurabhhhcodes
Copy link
Copy Markdown

Closes #18

Summary

  • add a bounded regex-based detectByPatterns() smart-routing detector
  • return task type, confidence, selected model, reason, matched regexes/keywords, timeout status, and elapsed time
  • cover code generation/review, math, document analysis, Chinese, data extraction, custom patterns, bounded long input, and empty prompts

Validation

  • npm ci
  • npm run build
  • node tests/pattern-detector.test.js
  • node tests/cross-provider.test.js
  • git diff --check

@saurabhhhcodes
Copy link
Copy Markdown
Author

Closing this as a duplicate of the existing pattern-detector PR #44 for issue #18. I created this from a fresh branch after noticing an old remote branch conflict, but #44 is already open and mergeable, so keeping one review thread is cleaner for maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GSSoC'26] Implement Pattern Detector

1 participant