Google Search
Prerequisites
pip install -U googlesearch-python pycountryExample
from bitca.agent import Agent
from bitca.tools.googlesearch import GoogleSearch
agent = Agent(
tools=[GoogleSearch()],
description="You are a news agent that helps users find the latest news.",
instructions=[
"Given a topic by the user, respond with 4 latest news items about that topic.",
"Search for 10 news items and select the top 4 unique items.",
"Search in English and in French.",
],
show_tool_calls=True,
debug_mode=True,
)
agent.print_response("Mistral AI", markdown=True)Toolkit Params
Parameter
Type
Default
Description
Toolkit Functions
Function
Description
Last updated