simple-math

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Simple Math Skill

Simple Math Skill

Performs basic arithmetic operations safely.
安全执行基本算术运算。

Features

特性

  • Addition, subtraction, multiplication, division
  • No eval() or exec()
  • Input validation
  • Safe implementation
  • 加法、减法、乘法、除法
  • 不使用eval()或exec()
  • 输入验证
  • 安全的实现方式

Usage

使用方法

When user requests calculations, use standard Python operators.
当用户请求计算时,使用标准Python运算符。

Example

示例

User: "What's 25 + 17?" Agent: uses simple-math skill The result is 42.
用户:“25加17等于多少?” Agent:使用simple-math skill 结果是42。