Linkup
LinkupTools provides advanced web search capabilities with deep search options and structured results.
Example
The following agent can perform advanced web searches using Linkup:
1from kern.agent import Agent2from kern.tools.linkup import LinkupTools34agent = Agent(5 instructions=[6 "You are a web search assistant that provides comprehensive search results",7 "Use Linkup to find detailed and relevant information from the web",8 "Provide structured search results with source attribution",9 "Help users find accurate and up-to-date information",10 ],11 tools=[LinkupTools()],12)1314agent.print_response("Search for the latest developments in quantum computing", stream=True)Toolkit Params
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | Optional[str] | None | Linkup API key. Uses LINKUP_API_KEY if not set. |
depth | Literal | "standard" | Search depth: "standard" or "deep". |
output_type | Literal | "searchResults" | Output format: "searchResults" or "sourcedAnswer". |
enable_web_search_with_linkup | bool | True | Enable web search functionality. |
Toolkit Functions
| Function | Description |
|---|---|
web_search_with_linkup | Perform advanced web searches with configurable depth and format. |