Prerequisites
The following example requires thenewspaper3k library.
Example
The following agent will summarize the wikipedia article on language models.cookbook/tools/newspaper_tools.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
newspaper3k library.
pip install -U newspaper3k
from agno.agent import Agent
from agno.tools.newspaper import NewspaperTools
agent = Agent(tools=[NewspaperTools()])
agent.print_response("Please summarize https://en.wikipedia.org/wiki/Language_model")
| Parameter | Type | Default | Description |
|---|---|---|---|
get_article_text | bool | True | Enables the functionality to retrieve the text of an article. |
| Function | Description |
|---|---|
get_article_text | Retrieves the text of an article from a specified URL. Parameters include url for the URL of the article. Returns the text of the article or an error message if the retrieval fails. |
Was this page helpful?