You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
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
This commit is contained in:
committed by
Copybara-Service
parent
6da6c2a44c
commit
0e28d64712
@@ -17,6 +17,7 @@ from ..auth.auth_tool import AuthToolArguments
|
||||
from .agent_tool import AgentTool
|
||||
from .apihub_tool.apihub_toolset import APIHubToolset
|
||||
from .base_tool import BaseTool
|
||||
from .enterprise_search_tool import enterprise_web_search_tool as enterprise_web_search
|
||||
from .example_tool import ExampleTool
|
||||
from .exit_loop_tool import exit_loop
|
||||
from .function_tool import FunctionTool
|
||||
@@ -36,6 +37,7 @@ __all__ = [
|
||||
'APIHubToolset',
|
||||
'AuthToolArguments',
|
||||
'BaseTool',
|
||||
'enterprise_web_search',
|
||||
'google_search',
|
||||
'url_context',
|
||||
'VertexAiSearchTool',
|
||||
|
||||
@@ -65,3 +65,6 @@ class EnterpriseWebSearchTool(BaseTool):
|
||||
'Enterprise web search tool is not supported for model'
|
||||
f' {llm_request.model}'
|
||||
)
|
||||
|
||||
|
||||
enterprise_web_search_tool = EnterpriseWebSearchTool()
|
||||
|
||||
Reference in New Issue
Block a user