Prerequisites
The following example requires thewikipedia library.
Example
The following agent will run seach wikipedia for “ai” and print the response.cookbook/tools/wikipedia_tools.py
Toolkit Params
| Name | Type | Default | Description |
|---|---|---|---|
knowledge | Knowledge | - | The knowledge base associated with Wikipedia, containing various data and resources linked to Wikipedia’s content. |
all | bool | False | Enable all functionality. |
Toolkit Functions
| Function Name | Description |
|---|---|
search_wikipedia_and_update_knowledge_base | This function searches wikipedia for a topic, adds the results to the knowledge base and returns them. |
search_wikipedia | Searches Wikipedia for a query. |