From 23092a273aeb82c30aadea3d225385c338c9097d Mon Sep 17 00:00:00 2001 From: Ankur Sharma Date: Wed, 22 Oct 2025 15:54:59 -0700 Subject: [PATCH] feat: Consolidate external dependencies in a single place PiperOrigin-RevId: 822771891 --- src/google/adk/dependencies/__init__.py | 13 +++++++++++++ src/google/adk/dependencies/rouge_scorer.py | 17 +++++++++++++++++ src/google/adk/dependencies/vertexai.py | 17 +++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 src/google/adk/dependencies/__init__.py create mode 100644 src/google/adk/dependencies/rouge_scorer.py create mode 100644 src/google/adk/dependencies/vertexai.py diff --git a/src/google/adk/dependencies/__init__.py b/src/google/adk/dependencies/__init__.py new file mode 100644 index 00000000..0a2669d7 --- /dev/null +++ b/src/google/adk/dependencies/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/google/adk/dependencies/rouge_scorer.py b/src/google/adk/dependencies/rouge_scorer.py new file mode 100644 index 00000000..cc987deb --- /dev/null +++ b/src/google/adk/dependencies/rouge_scorer.py @@ -0,0 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from __future__ import annotations + +from rouge_score import rouge_scorer diff --git a/src/google/adk/dependencies/vertexai.py b/src/google/adk/dependencies/vertexai.py new file mode 100644 index 00000000..d7e57874 --- /dev/null +++ b/src/google/adk/dependencies/vertexai.py @@ -0,0 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from __future__ import annotations + +import vertexai