Skip to content

Commit 0e28d64

Browse files
wuliang229copybara-github
authored andcommitted
feat(tools): create enterprise_web_search_tool as a tool instance
There is no argument for the tool, so just like google_search, we should make it an easy-to-use tool instance. PiperOrigin-RevId: 791266806
1 parent 6da6c2a commit 0e28d64

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/google/adk/tools/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from .agent_tool import AgentTool
1818
from .apihub_tool.apihub_toolset import APIHubToolset
1919
from .base_tool import BaseTool
20+
from .enterprise_search_tool import enterprise_web_search_tool as enterprise_web_search
2021
from .example_tool import ExampleTool
2122
from .exit_loop_tool import exit_loop
2223
from .function_tool import FunctionTool
@@ -36,6 +37,7 @@
3637
'APIHubToolset',
3738
'AuthToolArguments',
3839
'BaseTool',
40+
'enterprise_web_search',
3941
'google_search',
4042
'url_context',
4143
'VertexAiSearchTool',

src/google/adk/tools/enterprise_search_tool.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,6 @@ async def process_llm_request(
6565
'Enterprise web search tool is not supported for model'
6666
f' {llm_request.model}'
6767
)
68+
69+
70+
enterprise_web_search_tool = EnterpriseWebSearchTool()

0 commit comments

Comments
 (0)