Overview
Use this skill when the user asks for addition calculations.
When to Use
- - User asks to add two or more numbers.
- User inputs expressions like
3 + 5, 1.2 + 3.4 + 5, -2 + 9.
Scope
- - Supported: addition only.
- Not supported: subtraction, multiplication, division, equations, symbolic algebra.
Input Handling
- - Accept numbers separated by
+, spaces, commas, or Chinese wording (for example: 加). - Normalize full-width symbols to half-width symbols before parsing.
Workflow
- 1. Extract all numeric values from user input.
- Verify at least two valid numbers are present.
- Compute the sum.
- Return:
- Parsed numbers
- Expression
- Final result
Output Format
Always return:
- 1. Expression used
- Result
- Optional one-line check
Example:
- - Expression: INLINECODE5
- Result: INLINECODE6
Safety and Accuracy Rules
- - Do not invent missing numbers.
- If input is ambiguous, ask user to rewrite in explicit form.
- Preserve decimal precision as entered when reasonable.
概述
当用户请求进行加法计算时使用此技能。
使用场景
- - 用户要求对两个或多个数字进行加法运算。
- 用户输入类似 3 + 5、1.2 + 3.4 + 5、-2 + 9 的表达式。
适用范围
- - 支持:仅加法运算。
- 不支持:减法、乘法、除法、方程式、符号代数。
输入处理
- - 接受以 +、空格、逗号或中文表述(例如:加)分隔的数字。
- 解析前将全角符号转换为半角符号。
工作流程
- 1. 从用户输入中提取所有数值。
- 验证至少存在两个有效数字。
- 计算总和。
- 返回:
- 解析出的数字
- 表达式
- 最终结果
输出格式
始终返回:
- 1. 使用的表达式
- 结果
- 可选的一行验证
示例:
- - 表达式:1.2 + 3.4 + 5
- 结果:9.6
安全与准确性规则
- - 不得虚构缺失的数字。
- 如果输入存在歧义,要求用户以明确形式重新输入。
- 在合理范围内保留输入的小数精度。