Code

cookbook/tools/oxylabs_tools.py
from agno.agent import Agent
from agno.tools.oxylabs import OxylabsTools

agent = Agent(
    tools=[OxylabsTools()],
    markdown=True,
    show_tool_calls=True,
)

agent.print_response("""
Let's search for 'latest iPhone reviews' and provide a summary of the top 3 results. 
""")

print(response)

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.

python3 -m venv .venv
source .venv/bin/activate
2

Set your API keys

export OXYLABS_USERNAME=your_oxylabs_username
export OXYLABS_PASSWORD=your_oxylabs_password
3

Install libraries

pip install -U oxylabs agno openai
4

Run the example

python cookbook/tools/oxylabs_tools.py