Overview
Linkup can be integrate with Agno as a tool to provide real-time web search capabilities to your Agno AI agents.Installation
1
Set Up API Key
-
Get your Linkup API Key:
Get your API key
Create a Linkup account for free to get your API key. -
Set the API key in your environment:
2
Install Linkup SDK
- Install the Linkup SDK using pip:
3
Install Agno
- Install Agno using pip:
Example Usage
The following agent will search the web for the latest news in French politics and print the response.python
Toolkit Functions
Function | Description |
---|---|
web_search_with_linkup | Searches 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
Parameter | Type | Default | Description |
---|---|---|---|
api_key | Optional[str] | None | API key for authentication. If not provided, will check LINKUP_API_KEY environment variable. |
depth | Literal["standard", "deep"] | "standard" | Depth of the search. Use ‘standard’ for fast and affordable web search or ‘deep’ for comprehensive, in-depth web search. |
output_type | Literal["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. |
You can check the Agno documention for more information about agents and tools.
Facing issues? Reach out to our engineering team at support@linkup.so or via our Discord or book a 15 minutes call with a member of our technical team.