Skip to content

Commit deabb2a

Browse files
GWealecopybara-github
authored andcommitted
chore: remove closed bug ref from built-in-tool workaround TODOs
The referenced tracker was auto-closed in a backlog cleanup, not because the workaround was resolved. The built-in tools still cannot be combined with other tools, so the workaround stays; only the dead ref is dropped. Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 944614967
1 parent 8d2e9d1 commit deabb2a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/google/adk/agents/llm_agent.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ async def _convert_tool_union_to_tools(
147147

148148
# Wrap google_search tool with AgentTool if there are multiple tools because
149149
# the built-in tools cannot be used together with other tools.
150-
# TODO(b/448114567): Remove once the workaround is no longer needed.
150+
# TODO: Remove once the workaround is no longer needed.
151151
if multiple_tools and isinstance(tool_union, GoogleSearchTool):
152152
from ..tools.google_search_agent_tool import create_google_search_agent
153153
from ..tools.google_search_agent_tool import GoogleSearchAgentTool
@@ -159,7 +159,7 @@ async def _convert_tool_union_to_tools(
159159
# Replace VertexAiSearchTool with DiscoveryEngineSearchTool if there are
160160
# multiple tools because the built-in tools cannot be used together with
161161
# other tools.
162-
# TODO(b/448114567): Remove once the workaround is no longer needed.
162+
# TODO: Remove once the workaround is no longer needed.
163163
if multiple_tools and isinstance(tool_union, VertexAiSearchTool):
164164
from ..tools.discovery_engine_search_tool import DiscoveryEngineSearchTool
165165

@@ -742,7 +742,7 @@ async def canonical_tools(
742742
"""
743743
# We may need to wrap some built-in tools if there are other tools
744744
# because the built-in tools cannot be used together with other tools.
745-
# TODO(b/448114567): Remove once the workaround is no longer needed.
745+
# TODO: Remove once the workaround is no longer needed.
746746
multiple_tools = len(self.tools) > 1
747747
model = self.canonical_model
748748

‎src/google/adk/flows/llm_flows/base_llm_flow.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ async def _handle_after_model_callback(
269269
agent = invocation_context.agent
270270

271271
# Add grounding metadata to the response if needed.
272-
# TODO(b/448114567): Remove this function once the workaround is no longer needed.
272+
# TODO: Remove this function once the workaround is no longer needed.
273273
async def _maybe_add_grounding_metadata(
274274
response: Optional[LlmResponse] = None,
275275
) -> Optional[LlmResponse]:

‎src/google/adk/tools/google_search_agent_tool.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class GoogleSearchAgentTool(AgentTool):
4343
"""A tool that wraps a sub-agent that only uses google_search tool.
4444
4545
This is a workaround to support using google_search tool with other tools.
46-
TODO(b/448114567): Remove once the workaround is no longer needed.
46+
TODO: Remove once the workaround is no longer needed.
4747
4848
Attributes:
4949
model: The model to use for the sub-agent.

0 commit comments

Comments
 (0)