"""
* For the Brand API, set `brand` parameter to True. (default: True)
* For the Brand Search API, set the `search` parameter to True. (default: False)
Refer to https://developers.brandfetch.com/dashboard/brand-search-api in the provided URL after `c=...` for details.
"""
import asyncio
from agno.agent import Agent
from agno.tools.brandfetch import BrandfetchTools
# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
# Brand API
# agent = Agent(
# tools=[BrandfetchTools()],
# description="You are a Brand research agent. Given a company name or company domain, you will use the Brandfetch API to retrieve the company's brand information.",
# )
# agent.print_response("What is the brand information of Google?", markdown=True)
# Brand Search API
agent = Agent(
tools=[BrandfetchTools(async_tools=True)],
description="You are a Brand research agent. Given a company name or company domain, you will use the Brandfetch API to retrieve the company's brand information.",
)
# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
asyncio.run(
agent.aprint_response("What is the brand information of Agno?", markdown=True)
)