Prerequisites
The following example requires thejina library.
Example
The following agent will use Jina API to summarize the content of https://github.com/AgnoAgicookbook/tools/jinareader.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
jina library.
pip install -U jina
from agno.agent import Agent
from agno.tools.jina import JinaReaderTools
agent = Agent(tools=[JinaReaderTools()])
agent.print_response("Summarize: https://github.com/AgnoAgi")
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | - | The API key for authentication purposes, retrieved from the configuration. |
base_url | str | - | The base URL of the API, retrieved from the configuration. |
search_url | str | - | The URL used for search queries, retrieved from the configuration. |
max_content_length | int | - | The maximum length of content allowed, retrieved from the configuration. |
| Function | Description |
|---|---|
read_url | Reads the content of a specified URL using Jina Reader API. Parameters include url for the URL to read. Returns the truncated content or an error message if the request fails. |
search_query | Performs a web search using Jina Reader API based on a specified query. Parameters include query for the search term. Returns the truncated search results or an error message if the request fails. |
Was this page helpful?