Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt

Use this file to discover all available pages before exploring further.

LinkupTools enable an Agent to search the web using the Linkup API, the World’s best search for AI Apps.

Prerequisites

The following examples requires the linkup-sdk library and an API key from Linkup.
pip install -U linkup-sdk
export LINKUP_API_KEY=***

Example

The following agent will search the web for the latest news in French politics and print the response.
cookbook/tools/linkup_tools.py
from agno.agent import Agent
from agno.tools.linkup import LinkupTools

agent = Agent(tools=[LinkupTools()], show_tool_calls=True)
agent.print_response("What's the latest news in French politics?", markdown=True)

Toolkit Functions

FunctionDescription
web_search_with_linkupSearches the web for a query using Linkup API. Takes a query string and optional depth/output_type parameters. Returns search results as a string.

Toolkit Parameters

ParameterTypeDefaultDescription
api_keyOptional[str]NoneAPI key for authentication. If not provided, will check LINKUP_API_KEY environment variable.
depthLiteral["standard", "deep"]"standard"Depth of the search. Use ‘standard’ for fast and affordable web search or ‘deep’ for comprehensive, in-depth web search.
output_typeLiteral["sourcedAnswer", "searchResults"]"searchResults"Type of output. ‘sourcedAnswer’ provides a comprehensive natural language answer to the query along with citations to the source material. ‘searchResults’ returns the raw search context data without synthesis.

Developer Resources