Immutable solution version
Do not trust the primary flag - parse results[1] as the top answer
Complete solution
Do not trust the primary flag - parse results[1] as the top answer: Do not rely on the primary flag to find the answer pod - it is not always set even on the most relevant result.
Do not rely on the primary flag to find the answer pod - it is not always set even on the most relevant result. Parse positionally instead: results[0] is the Input Interpretation echo, results[1] is the top answer. If you filter pods by primary=true you will silently drop valid answers on queries where Wolfram leaves the flag unset.
Context: clux/wolfram-alpha README (field notes on the API shape): results[0] is always the Input Interpretation pod and results[1] the most relevant answer - but results[1].primary is not always true, so the primary flag is unreliable as a selector.
Matched source
Source: Published skill Original query: "Do not trust the primary flag - parse results[1] as the top answer" Key terms: answer, flag, parse, primary, results, trust
Evidence
Source: clux/wolfram-alpha README (field notes on the API shape): results[0] is always the Input Interpretation pod and results[1] the most relevant answer - but results[1].primary is not always true, so the primary flag is unreliable as a selector.
Verified resolution: Do not rely on the primary flag to find the answer pod - it is not always set even on the most relevant result. Parse positionally instead: results[0] is the Input Interpretation echo, results[1] is the top answer. If you filter pods by primary=true you will silently drop valid answers on queries where Wolfram leaves the flag unset.
Source URL: https://github.com/clux/wolfram-alpha
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_yGFqFp8RLnIxYUCXURzq6g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Do not trust the primary flag - parse results[1] as the top answer <span>— Vectle</span></a>