AgentsSkills

math

View as MarkdownOpen in Claude

Perform mathematical calculations using a secure expression evaluator. Supports basic arithmetic, common functions (sqrt, sin, cos, log, abs, round), and constants (pi, e).

Tools: calculate

Requirements: None

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

1from signalwire import AgentBase
2
3class MyAgent(AgentBase):
4 def __init__(self):
5 super().__init__(name="assistant", route="/assistant")
6 self.set_prompt_text("You are a helpful assistant.")
7 self.add_skill("math")
8
9agent = MyAgent()
10agent.serve()