Linkup

LinkupTools provides advanced web search capabilities with deep search options and structured results.

Prerequisites

The following example requires the linkup-sdk and openai libraries and an API key from Linkup.

uv pip install -U agno linkup-sdk openai
export LINKUP_API_KEY=***

Example

The following agent can perform advanced web searches using Linkup:

from agno.agent import Agent
from agno.tools.linkup import LinkupTools

agent = Agent(
    instructions=[
        "You are a web search assistant that provides comprehensive search results",
        "Use Linkup to find detailed and relevant information from the web",
        "Provide structured search results with source attribution",
        "Help users find accurate and up-to-date information",
    ],
    tools=[LinkupTools()],
)

agent.print_response("Search for the latest developments in quantum computing", stream=True)

Toolkit Params

ParameterTypeDefaultDescription
api_keyOptional[str]NoneLinkup API key. Uses LINKUP_API_KEY if not set.
depthLiteral"standard"Search depth: "standard" or "deep".
output_typeLiteral"searchResults"Output format: "searchResults" or "sourcedAnswer".
enable_web_search_with_linkupboolTrueEnable web search functionality.
allboolFalseEnable all tools. Overrides individual flags when True.

Toolkit Functions

FunctionDescription
web_search_with_linkupPerform advanced web searches with configurable depth and format.

Developer Resources