← 返回
未分类 Key 中文

Wolfram Alpha (LLM API)

Delegate precise, formalizable computations and factual lookups to Wolfram|Alpha via its LLM API (HTTP) to get verified results and reduce arithmetic/modelin...
通过 Wolfram|Alpha LLM API 委托精确的可形式化计算和事实查询,以获取经核实的结果并减少算术或模型错误。
firefrog-pepe
未分类 clawhub v0.1.0 1 版本 99829.1 Key: 需要
★ 0
Stars
📥 584
下载
💾 4
安装
1
版本
#latest

概述

Wolfram|Alpha (LLM API) skill

Use the bundled wrapper script to call Wolfram|Alpha's LLM API and return concise, model-ingestible results.

Preconditions

  • Environment variable WOLFRAM_APP_ID must be set (your Wolfram|Alpha AppID). If it is not set, ask your human to set it (do not guess or hardcode keys).

Quick start

Run:

# default: cache ON (7d), auth via bearer header (keeps AppID out of URL)
python3 skills/wolfram-alpha-llm/scripts/wa_llm.py \
  --input "solve x^2 + 3x + 2 = 0"

What to send as --input

  • Prefer short English keyword-style queries when possible.
  • If the user asked in another language, translate to English for the API call, then answer in the user’s original language.
  • When you need an exact computation, be explicit (e.g., integrate sin(x)^2 from 0 to pi).

Core parameters (use these most)

  • --input (required): the query.
  • --maxchars (optional, default 2500): cap response length.
  • --units (optional): set units system, if needed for conversions/physics (metric is often a good default when unspecified).
  • --assumption (optional, repeatable): disambiguate when WA returns irrelevant interpretation or offers assumptions.

High-value optional parameters (use when relevant)

  • Localization / context:
  • --countrycode, --languagecode
  • --timezone
  • One of: --ip | --latlong | --location (pick exactly one)
  • Finance:
  • --currency (e.g., USD, EUR)
  • Performance / robustness:
  • --scantimeout, --parsetimeout, --formattimeout, --totaltimeout

Output handling guidance

  • Treat output as computed evidence: quote the key result, then add minimal interpretation.
  • If the result is too long/noisy, rerun with a smaller --maxchars.
  • Heuristic: for simple conversions / arithmetic / single-value answers, try --maxchars 800.
  • Keep default --maxchars 2500 for most multi-line or explanation-heavy results.
  • If the interpretation is wrong:

1) retry with --assumption ... (use WA-provided suggestions when available),

2) only then rephrase/simplify --input.

Wrapper script

  • Script: skills/wolfram-alpha-llm/scripts/wa_llm.py
  • Auth:
  • default --auth bearer: sends Authorization: Bearer header (keeps AppID out of the URL)
  • --auth query: sends appid as URL parameter
  • Cache:
  • default --cache on with --cache-ttl 604800 (7d)
  • stores best-effort results in: ~/.cache/openclaw-wolfram-alpha/
  • Returns:
  • stdout: API text body
  • stderr: errors, HTTP status context

For parameter details and error behaviors, see:

  • skills/wolfram-alpha-llm/references/llm-api.md
  • skills/wolfram-alpha-llm/references/full-api-params.md

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 07:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

skill-guard w Snyk Agent Scan

firefrog-pepe
安装前扫描 ClawHub 技能安全漏洞。用于检测提示注入、恶意载荷等威胁。
★ 0 📥 647
communication-collaboration

Luma Events Enhanced

firefrog-pepe
从 Luma (lu.ma) 获取任意城市的即将到来的活动。用户询问技术活动、创业聚会、社交活动、会议或类似事项时使用。
★ 0 📥 528

DDGS Metasearch via local MCP

firefrog-pepe
通过mcporter使用本地DDGS MCP服务器(SSE),无需API密钥即可访问快速网络搜索工具(文本/新闻/图片/视频/书籍)。适用于用户请求通用网络搜索时使用。
★ 0 📥 499