feat: enhance intent classification with advanced confidence scoring and keyword matching

- Improve intent confidence calculation with more nuanced scoring
- Add comprehensive keyword and pattern matching for better intent detection
- Refactor confidence calculation to handle various input scenarios
- Implement more aggressive boosting for specific action keywords
- Adjust parameter extraction logic for more robust intent parsing
This commit is contained in:
jango-blockchained
2025-02-05 09:26:02 +01:00
parent 00cd0a5b5a
commit c42f981f55
4 changed files with 58 additions and 19 deletions

View File

@@ -45,6 +45,7 @@ describe('Home Assistant MCP Server', () => {
// Setup default response
mockFetch = createMockFetch({ state: 'connected' });
globalThis.fetch = mockFetch;
await Promise.resolve();
});
afterEach(() => {