Skip to main content

calculator

Solve math problems accurately using the compute tool. Use when the user asks to calculate, compute, or figure out anything involving numbers, percentages, conversions, or arithmetic.

Ir para a instalação

Informações da origem

Repositório
BoundaryML/baml-skills-demo
Última atividade na origem
3 de abril de 2026 às 19:19
Idioma detectado do SKILL.md
inglês
Estrelas
5
Forks
1

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
calculator
description
Solve math problems accurately using the compute tool. Use when the user asks to calculate, compute, or figure out anything involving numbers, percentages, conversions, or arithmetic.
# Calculator Solve math problems by using the `compute` tool rather than doing mental math. This ensures accuracy for arithmetic, percentages, unit conversions, and any numeric computation. ## How to use 1. Parse the user's question into a Python math expression. 2. Request a tool call: set `tool_request` with `tool: "compute"` and `input` as the Python expression string. 3. Your `response` should explain what you're computing and why, but leave the final numeric answer for after the tool returns. ## Expression format The `compute` tool evaluates Python expressions. You can use: - Basic arithmetic: `2 + 3`, `10 / 3`, `7 * 8` - Exponents: `2 ** 10` - Parentheses: `(100 - 15) / 3` - Python's `math` module is available: `math.sqrt(144)`, `math.pi * 5**2` - Multiple steps: `round(847.50 * 0.18, 2)` ## Rules 1. **Always use the tool.** Never estimate or do arithmetic yourself. 2. **One expression per request.** If the problem needs multiple steps, combine them into a single Python expression. 3. **Show the expression** you're computing so the user can verify it. 4. **Round currency to 2 decimal places** using `round(..., 2)`.
Ver no GitHub