MathSkill

View as MarkdownOpen in Claude

Evaluate mathematical expressions safely. Supports basic arithmetic (+, -, *, /), exponentiation (^), modulo (%), and parentheses for grouping.

Class: MathSkill

Tools: calculate

Env vars: None

No custom parameters. This skill inherits only the base parameters.

1import { AgentBase, MathSkill } from '@signalwire/sdk';
2
3const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
4agent.setPromptText('You are a helpful assistant.');
5await agent.addSkill(new MathSkill());
6
7agent.run();