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.

from signalwire import AgentBase
class MyAgent(AgentBase):
def __init__(self):
super().__init__(name="assistant", route="/assistant")
self.set_prompt_text("You are a helpful assistant.")
self.add_skill("math")
agent = MyAgent()
agent.serve()