Skip to content

Commit 53e947d

Browse files
committed
update
1 parent cc4dd4b commit 53e947d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libs/agno/agno/tools/agentql.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from typing import Optional
33

44
from agno.tools import Toolkit
5+
from agno.utils.log import logger
56

67
try:
78
import agentql
@@ -12,7 +13,7 @@
1213

1314
class AgentQLTools(Toolkit):
1415
def __init__(
15-
self, api_key: Optional[str] = None, scrape: bool = True, custom_scrape: bool = False, agentql_query: str = ""
16+
self, api_key: Optional[str] = None, scrape: bool = True, agentql_query: str = ""
1617
):
1718
super().__init__(name="agentql_tools")
1819

@@ -25,7 +26,8 @@ def __init__(
2526
if scrape:
2627
self.register(self.scrape_website)
2728

28-
if custom_scrape:
29+
if agentql_query:
30+
logger.info("Custom AgentQL query provided. Registering custom scrape function.")
2931
self.register(self.custom_scrape_website)
3032

3133
def scrape_website(self, url: str) -> str:

0 commit comments

Comments
 (0)