chore(plugins): drop a stale note about uncached tool declarations

Co-authored-by: George Weale <gweale@google.com>
PiperOrigin-RevId: 958554447
This commit is contained in:
George Weale
2026-08-03 13:41:14 -07:00
committed by Copybara-Service
parent 07add3b888
commit da46f8a4b0
@@ -374,11 +374,6 @@ def _extract_tool_declarations(
# The parameter schema lives on the tool's FunctionDeclaration, which some
# tools (e.g. built-in tools) do not provide. Resolve defensively so a
# single failing tool does not discard the whole tools list.
#
# Note: FunctionTool._get_declaration() rebuilds the declaration from the
# function signature on each call (no caching), so this repeats work the
# framework already did when assembling the request. Acceptable for typical
# toolsets; revisit with a cache if it shows up on the hot path.
declaration = None
try:
get_declaration = getattr(tool, "_get_declaration", None)