Prerequisites
The following example requires thenewspaper3k library.
Example
The following agent will summarize the wikipedia article on language models.cookbook/tools/newspaper_tools.py
Toolkit Params
| Parameter | Type | Default | Description | 
|---|---|---|---|
| get_article_text | bool | True | Enables the functionality to retrieve the text of an article. | 
Toolkit Functions
| Function | Description | 
|---|---|
| get_article_text | Retrieves the text of an article from a specified URL. Parameters include urlfor the URL of the article. Returns the text of the article or an error message if the retrieval fails. |