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.

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