Skip to main content

agentchat.contrib.captainagent.tools.information_retrieval.get_wikipedia_text

get_wikipedia_text

def get_wikipedia_text(title)

Retrieves the text content of a Wikipedia page. It does not support tables and other complex formatting.

Arguments:

  • title str - The title of the Wikipedia page.

Returns:

str or None: The text content of the Wikipedia page if it exists, None otherwise.