feat: Add Math Assistant ability#120
Open
AstralDrift wants to merge 5 commits intoopenhome-dev:devfrom
Open
Conversation
A voice-enabled math assistant that performs: - Basic calculations (add, subtract, multiply, divide) - Unit conversions (miles/km, feet/meters, lbs/kg, F/C) - Equation solving (simple linear equations) - Percentage calculations - Powers and roots - Random number generation (dice, coin flip) Features: - Natural language math expression support - Safe evaluation (no code injection) - Conversational multi-turn interface - No external API required - Graceful error handling Example triggers: - 'calculate 5 plus 3' - 'convert 5 miles to kilometers' - 'solve 2x plus 3 equals 7' - 'roll a dice'
Contributor
✅ Ability Validation Passed |
Contributor
🔍 Lint Results✅
|
Contributor
🔀 Branch Merge CheckPR direction: ✅ Passed — |
- Removed all eval() calls for security compliance - Implemented safe token-based math parser using shunting yard algorithm - Added resume_normal_flow() calls before all exit points - All validation checks now pass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Math Assistant Ability
A voice-enabled math assistant that performs calculations, solves equations, converts units, and explains mathematical concepts.
Features
Example Triggers
Technical Details
Testing