Skip to content

Commit

Permalink
BREAKING_CHANGE: Remove disable_attribution from SDK interfaces
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 663776030
  • Loading branch information
happy-qiao authored and copybara-github committed Aug 16, 2024
1 parent 387a194 commit 11a39e3
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions vertexai/generative_models/_generative_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2296,36 +2296,7 @@ def __init__(
datastore=datastore,
)

class GoogleSearchRetrieval:
r"""Tool to retrieve public web data for grounding, powered by
Google Search.
Attributes:
disable_attribution (bool):
Optional. Disable using the result from this
tool in detecting grounding attribution. This
does not affect how the result is given to the
model for generation.
"""

def __init__(
self,
disable_attribution: Optional[
bool
] = None, # pylint: disable=unused-argument
):
"""Initializes a Google Search Retrieval tool.
Args:
disable_attribution (bool):
Optional. This field is Deprecated. Disable using the result
from this tool in detecting grounding attribution. This
does not affect how the result is given to the
model for generation.
"""
if disable_attribution is not None:
warnings.warn("disable_attribution is deprecated.")
self._raw_google_search_retrieval = gapic_tool_types.GoogleSearchRetrieval()
GoogleSearchRetrieval = grounding.GoogleSearchRetrieval


def _to_content(
Expand Down

0 comments on commit 11a39e3

Please sign in to comment.