Linkup Tools

Answer a current-events question with web results from LinkupTools.

linkup_tools.py
"""
Linkup Tools
=============================

Demonstrates linkup tools.
"""

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

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------


agent = Agent(tools=[LinkupTools()])

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    agent.print_response("What's the latest news in French politics?", markdown=True)

Run the Example

Set up your virtual environment

uv venv --python 3.12
source .venv/bin/activate

Install dependencies

uv pip install -U agno linkup-sdk openai

Export your API keys

export LINKUP_API_KEY="your_linkup_api_key_here"
export OPENAI_API_KEY="your_openai_api_key_here"

Run the example

Save the code above as linkup_tools.py, then run:

python linkup_tools.py

Full source: cookbook/91_tools/linkup_tools.py