tool · inferred from evidence
wikipedia.summary
A function in the wikipedia library that fetches a summary for a given query.
- Handling DisambiguationError in the python wikipedia library
Catch the exception and use its options attribute: the DisambiguationError carries the list of candidate article titles. Pattern from the maintainer: