π Linkup Web Search Tool
Perform real-time web search using Linkup API.
π¬ Enter a query and click Search to begin.
π Tool Documentation
π Linkup Web Search Tool
The Linkup Search Tool is a SmolAgentsβcompatible tool that allows agents to search the public and premium web in real-time using the Linkup API.
Powered by advanced depth-aware search logic (standard
vs deep
), this tool is ideal for retrieving up-to-date insights, articles, and structured search summaries β all within your SmolAgents or Python workflows.
π Features
- π Web-wide, real-time search via Linkup API
- π§ Supports depth-aware querying (
standard
ordeep
) - π€ Compatible with
smolagents.CodeAgent
and manual usage
π¦ Installation
pip install linkup-sdk smolagents
Youβll also need a Linkup API key to use the tool. You get $5 credits on signing up to try it out.
π Setup API Key
You can provide the API key:
- At runtime
- Or by setting the environment variable:
export LINKUP_API_KEY="your-linkup-api-key"
You must however pass the linkup_api_key
as a parameter in the space plug-and-play.
This ensures safe and personalized access to your Linkup account in public environments.
π§ Usage with SmolAgents
from smolagents import load_tool
tool = load_tool("Linkup-Platform/linkup-search-tool", trust_remote_code=True)
tool.forward(
query="What are the latest trends in generative AI?",
depth="deep",
)
π― When to Use standard
vs deep
Mode | Best For |
---|---|
standard |
Quick factual lookups, direct answers |
deep |
Complex topics, analysis, multiple perspectives, latest news |
π¬ Example Result (truncated)
**Search Results:**
1. **The State of Generative AI 2024**
URL: https://venturebeat.com/generative-ai-2024
Generative AI is reshaping industries, with key players like OpenAI, Anthropic, and Google DeepMind...
2. **AI Trends: What's Coming Next?**
URL: https://techcrunch.com/ai-trends-2024
This year weβll see more foundation model APIs, compliance tooling, and multi-modal agents...
For questions or API access, visit linkup.so.
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference